login.php:

- replaced tMessage with flash_error()

This commit is part of the huge cleanup patch by Dale Blount (lnxus@SF),
https://sourceforge.net/tracker/?func=detail&atid=937966&aid=3370510&group_id=191583


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1084 a1433add-5e2c-0410-b055-b7f2511e0802
pull/2/head
Christian Boltz 15 years ago
parent f2ce6d24fe
commit 59dd7cb083

@ -18,7 +18,7 @@
*
* Template Variables:
*
* tMessage
* none
*
* Form POST \ GET Variables:
*
@ -29,7 +29,6 @@
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";
@ -66,13 +65,13 @@ if ($_SERVER['REQUEST_METHOD'] == "POST")
if ($result['rows'] != 1)
{
$error = 1;
$tMessage = '<span class="error_msg">' . $PALANG['pLogin_failed'] . '</span>';
flash_error($PALANG['pLogin_failed']);
}
}
else
{
$error = 1;
$tMessage = '<span class="error_msg">' . $PALANG['pLogin_failed'] . '</span>';
flash_error($PALANG['pLogin_failed']);
}
if ($error != 1)
@ -95,8 +94,6 @@ if ($_SERVER['REQUEST_METHOD'] == "POST")
exit(0);
}
$smarty->assign ('tMessage', $tMessage, false);
$smarty->assign ('smarty_template', 'login');
$smarty->display ('index.tpl');
}

Loading…
Cancel
Save