mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-19 19:22:14 +02:00
reindent; give tMessage a default value (undefined var etc)
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@948 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
parent
834f533371
commit
cf22f1dfd4
25
login.php
25
login.php
@ -29,18 +29,19 @@
|
||||
|
||||
require_once('common.php');
|
||||
|
||||
$smarty->assign('tMessage', '');
|
||||
# force user to delete setup.php (allows creation of superadmins!)
|
||||
if($CONF['configured'] !== true) {
|
||||
print "Installation not yet configured; please edit config.inc.php";
|
||||
exit;
|
||||
}
|
||||
if($CONF['configured'] !== true) {
|
||||
print "Installation not yet configured; please edit config.inc.php";
|
||||
exit;
|
||||
}
|
||||
|
||||
$smarty->assign ('language_selector', language_selector(), false);
|
||||
$smarty->assign ('language_selector', language_selector(), false);
|
||||
|
||||
if ($_SERVER['REQUEST_METHOD'] == "GET")
|
||||
{
|
||||
$smarty->assign ('smarty_template', 'login');
|
||||
$smarty->display ('index.tpl');
|
||||
$smarty->assign ('smarty_template', 'login');
|
||||
$smarty->display ('index.tpl');
|
||||
}
|
||||
|
||||
if ($_SERVER['REQUEST_METHOD'] == "POST")
|
||||
@ -87,17 +88,17 @@ if ($_SERVER['REQUEST_METHOD'] == "POST")
|
||||
if ($result['rows'] == 1)
|
||||
{
|
||||
$_SESSION['sessid']['roles'][] = 'global-admin';
|
||||
# header("Location: admin/list-admin.php");
|
||||
# exit(0);
|
||||
# header("Location: admin/list-admin.php");
|
||||
# exit(0);
|
||||
}
|
||||
header("Location: main.php");
|
||||
exit(0);
|
||||
}
|
||||
|
||||
$smarty->assign ('tMessage', $tMessage, false);
|
||||
$smarty->assign ('tMessage', $tMessage, false);
|
||||
|
||||
$smarty->assign ('smarty_template', 'login');
|
||||
$smarty->display ('index.tpl');
|
||||
$smarty->assign ('smarty_template', 'login');
|
||||
$smarty->display ('index.tpl');
|
||||
}
|
||||
|
||||
/* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */
|
||||
|
Loading…
Reference in New Issue
Block a user