You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2025-08-06 06:42:37 +03:00
login.php, index.php:
- removed the $CONF['configured'] = 'I_know_the_risk_of_not_deleting_setup.php' developer hack (no longer needed since setup.php requires a password) - this also makes index.php redirecting to login.php again (the old check tested for file_exists(setup.php)...) common.php: - removed a superfluous check for $CONF[setup_password] (see mailinglist for details) config.inc.php: - removed a small outdated comment git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@640 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
@@ -40,9 +40,6 @@ if(isset($CONF['configured'])) {
|
|||||||
if($CONF['configured'] == FALSE) {
|
if($CONF['configured'] == FALSE) {
|
||||||
die("Please edit config.inc.php - change \$CONF['configured'] to true after setting your database settings");
|
die("Please edit config.inc.php - change \$CONF['configured'] to true after setting your database settings");
|
||||||
}
|
}
|
||||||
if(!isset($CONF['setup_password'])) {
|
|
||||||
die("You must have a \$CONF['setup_password'] defined - this allows authenticated access to setup.php");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -382,7 +382,7 @@ $CONF['theme_css'] = 'css/default.css';
|
|||||||
// that future updates work without problems, you can use a separate config
|
// that future updates work without problems, you can use a separate config
|
||||||
// file (config.local.php) instead of editing this file and override some
|
// file (config.local.php) instead of editing this file and override some
|
||||||
// settings there.
|
// settings there.
|
||||||
if (file_exists(dirname(__FILE__) . '/config.local.php')) { # for /
|
if (file_exists(dirname(__FILE__) . '/config.local.php')) {
|
||||||
include(dirname(__FILE__) . '/config.local.php');
|
include(dirname(__FILE__) . '/config.local.php');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
$CONF['configured'] = FALSE;
|
$CONF['configured'] = FALSE;
|
||||||
@include_once('config.inc.php'); # hide error message because only $CONF['configured'] is checked here
|
@include_once('config.inc.php'); # hide error message because only $CONF['configured'] is checked here
|
||||||
if (!file_exists (realpath ("./setup.php")) || $CONF['configured'] == 'I_know_the_risk_of_not_deleting_setup.php')
|
if ( $CONF['configured'] === TRUE )
|
||||||
{
|
{
|
||||||
header ("Location: login.php");
|
header ("Location: login.php");
|
||||||
exit;
|
exit;
|
||||||
|
11
login.php
11
login.php
@@ -30,14 +30,9 @@
|
|||||||
|
|
||||||
require_once('common.php');
|
require_once('common.php');
|
||||||
|
|
||||||
if (isset($CONF['configured']) && $CONF['configured'] == 'I_know_the_risk_of_not_deleting_setup.php') {
|
if($CONF['configured'] !== true) {
|
||||||
}
|
print "Installation not yet configured; please edit config.inc.php";
|
||||||
else
|
exit;
|
||||||
{
|
|
||||||
if($CONF['configured'] !== true) {
|
|
||||||
print "Installation not yet configured; please edit config.inc.php";
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($_SERVER['REQUEST_METHOD'] == "GET")
|
if ($_SERVER['REQUEST_METHOD'] == "GET")
|
||||||
|
Reference in New Issue
Block a user