From 59dd7cb0831ee956fcf4e45aff03f917f4b3b2c5 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Mon, 18 Jul 2011 22:28:34 +0000 Subject: [PATCH] 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 --- login.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/login.php b/login.php index 43ec38ab..c37a1b77 100644 --- a/login.php +++ b/login.php @@ -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 = '' . $PALANG['pLogin_failed'] . ''; + flash_error($PALANG['pLogin_failed']); } } else { $error = 1; - $tMessage = '' . $PALANG['pLogin_failed'] . ''; + 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'); }