SF.net SVN: postfixadmin:[948] trunk/login.php
Brought to you by:
christian_boltz,
gingerdog
From: <Gin...@us...> - 2011-02-07 23:27:25
|
Revision: 948 http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=948&view=rev Author: GingerDog Date: 2011-02-07 23:27:19 +0000 (Mon, 07 Feb 2011) Log Message: ----------- reindent; give tMessage a default value (undefined var etc) Modified Paths: -------------- trunk/login.php Modified: trunk/login.php =================================================================== --- trunk/login.php 2011-02-07 23:26:17 UTC (rev 947) +++ trunk/login.php 2011-02-07 23:27:19 UTC (rev 948) @@ -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 ($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: */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |