login.php: do not require the deletion of setup.php

git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@617 a1433add-5e2c-0410-b055-b7f2511e0802
postfixadmin-2.3
David Goodwin 17 years ago
parent e4498461ba
commit ad61253c33

@ -30,14 +30,12 @@
require_once('common.php');
# force user to delete setup.php (allows creation of superadmins!)
if (file_exists (realpath ("./setup.php"))) {
if (is_string($CONF['configured']) && $CONF['configured'] == 'I_know_the_risk_of_not_deleting_setup.php')
{
}
else
{
print "Please delete " . dirname(__FILE__) . "/setup.php before using Postfix Admin!";
if (isset($CONF['configured']) && $CONF['configured'] == 'I_know_the_risk_of_not_deleting_setup.php') {
}
else
{
if($CONF['configured'] !== true) {
print "Installation not yet configured; please edit config.inc.php";
exit;
}
}

Loading…
Cancel
Save