diff --git a/.gitignore b/.gitignore
index e639446..8fbd4e8 100755
--- a/.gitignore
+++ b/.gitignore
@@ -2,10 +2,8 @@
logs
# Specific
-Specific/ENABLE_ADMIN
Specific/config.php
Specific/config.system.php
-Specific/virtualhosts/baikal.apache2
# Composer stuff
composer.lock
diff --git a/Core/Distrib.php b/Core/Distrib.php
index 7656973..47ce1d3 100644
--- a/Core/Distrib.php
+++ b/Core/Distrib.php
@@ -24,5 +24,5 @@
# This copyright notice MUST APPEAR in all copies of the script!
#################################################################
-define("BAIKAL_VERSION", "0.3.4");
+define("BAIKAL_VERSION", "0.4.0");
define("BAIKAL_HOMEPAGE", "http://baikal-server.com");
diff --git a/Core/Frameworks/Baikal/Model/Config/Standard.php b/Core/Frameworks/Baikal/Model/Config/Standard.php
index e8bb846..1fe4cf4 100644
--- a/Core/Frameworks/Baikal/Model/Config/Standard.php
+++ b/Core/Frameworks/Baikal/Model/Config/Standard.php
@@ -45,14 +45,6 @@ class Standard extends \Baikal\Model\Config {
"type" => "string",
"comment" => "HTTP authentication type for WebDAV; default Digest"
),
- "BAIKAL_ADMIN_ENABLED" => array(
- "type" => "boolean",
- "comment" => "Baïkal Web Admin ON/OFF switch; default TRUE",
- ),
- "BAIKAL_ADMIN_AUTOLOCKENABLED" => array(
- "type" => "boolean",
- "comment" => "Baïkal Web Admin autolock ON/OFF switch; default FALSE",
- ),
"BAIKAL_ADMIN_PASSWORDHASH" => array(
"type" => "string",
"comment" => "Baïkal Web admin password hash; Set via Baïkal Web Admin",
@@ -65,8 +57,6 @@ class Standard extends \Baikal\Model\Config {
"BAIKAL_CARD_ENABLED" => TRUE,
"BAIKAL_CAL_ENABLED" => TRUE,
"BAIKAL_DAV_AUTH_TYPE" => "Digest",
- "BAIKAL_ADMIN_ENABLED" => TRUE,
- "BAIKAL_ADMIN_AUTOLOCKENABLED" => FALSE,
"BAIKAL_ADMIN_PASSWORDHASH" => ""
);
@@ -117,24 +107,6 @@ class Standard extends \Baikal\Model\Config {
$oMorpho->element("BAIKAL_ADMIN_PASSWORDHASH")->setOption("placeholder", $sNotice);
$oMorpho->element("BAIKAL_ADMIN_PASSWORDHASH_CONFIRM")->setOption("placeholder", $sNotice);
}
-
- $oMorpho->add(new \Formal\Element\Checkbox(array(
- "prop" => "BAIKAL_ADMIN_ENABLED",
- "label" => "Enable Web interface (recommended)",
- "popover" => array(
- "title" => "Warning !",
- "content" => "If disabled, you'll lose access to this very admin interface !",
- ),
- )));
-
- $oMorpho->add(new \Formal\Element\Checkbox(array(
- "prop" => "BAIKAL_ADMIN_AUTOLOCKENABLED",
- "label" => "Web interface autolock",
- "popover" => array(
- "title" => "Web admin autolock",
- "content" => "If enabled, you'll have to create a file named ENABLE_ADMIN in the folder Specific/ prior to every admin use.
This enforces security, but might be uncomfortable if you use the admin frequently."
- )
- )));
return $oMorpho;
}
@@ -207,12 +179,6 @@ define("BAIKAL_CAL_ENABLED", TRUE);
# WebDAV authentication type; default Digest
define("BAIKAL_DAV_AUTH_TYPE", "Digest");
-# Baïkal Web Admin ON/OFF switch; default TRUE
-define("BAIKAL_ADMIN_ENABLED", TRUE);
-
-# Baïkal Web Admin autolock ON/OFF switch; default FALSE
-define("BAIKAL_ADMIN_AUTOLOCKENABLED", FALSE);
-
# Baïkal Web admin password hash; Set via Baïkal Web Admin
define("BAIKAL_ADMIN_PASSWORDHASH", "");
CODE;
diff --git a/Core/Frameworks/BaikalAdmin/Controller/Install/Database.php b/Core/Frameworks/BaikalAdmin/Controller/Install/Database.php
index d3a1f8b..f3fd9fb 100644
--- a/Core/Frameworks/BaikalAdmin/Controller/Install/Database.php
+++ b/Core/Frameworks/BaikalAdmin/Controller/Install/Database.php
@@ -60,8 +60,6 @@ class Database extends \Flake\Core\Controller {
if($this->oForm->persisted()) {
- \BaikalAdmin\Core\Auth::lockInstall();
-
$sMessage = "
Baïkal is now installed, and it's database properly configured. For security reasons, this installation wizard is now disabled.
"; $sMessage . ""; $sMessage .= ""; diff --git a/Core/Frameworks/BaikalAdmin/Core/Auth.php b/Core/Frameworks/BaikalAdmin/Core/Auth.php index ed58a60..048878f 100644 --- a/Core/Frameworks/BaikalAdmin/Core/Auth.php +++ b/Core/Frameworks/BaikalAdmin/Core/Auth.php @@ -27,55 +27,6 @@ namespace BaikalAdmin\Core; class Auth { - public static function assertEnabled() { - if(!defined("BAIKAL_ADMIN_ENABLED") || BAIKAL_ADMIN_ENABLED !== TRUE) { - die("