SF.net SVN: postfixadmin:[1394] trunk/functions.inc.php
Brought to you by:
christian_boltz,
gingerdog
From: <chr...@us...> - 2012-05-28 17:43:45
|
Revision: 1394 http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=1394&view=rev Author: christian_boltz Date: 2012-05-28 17:43:39 +0000 (Mon, 28 May 2012) Log Message: ----------- functions.inc.php: - authentication_require_role(): no longer use $CONF['postfix_admin_url'] https://sourceforge.net/tracker/?func=detail&aid=3039042&group_id=191583&atid=937964 Modified Paths: -------------- trunk/functions.inc.php Modified: trunk/functions.inc.php =================================================================== --- trunk/functions.inc.php 2012-05-28 17:32:49 UTC (rev 1393) +++ trunk/functions.inc.php 2012-05-28 17:43:39 UTC (rev 1394) @@ -89,11 +89,8 @@ if(authentication_has_role($role)) { return True; } - if($role === 'user') { - header("Location: " . $CONF['postfix_admin_url'] . '/users/login.php'); - } else { - header("Location: " . $CONF['postfix_admin_url'] . "/login.php"); - } + + header("Location: ./login.php"); exit(0); } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |