[Weberp-svn] SF.net SVN: weberp:[5174] trunk
Brought to you by:
sotandeka,
tim_schofield
From: <tim...@us...> - 2011-04-12 11:05:23
|
Revision: 5174 http://weberp.svn.sourceforge.net/weberp/?rev=5174&view=rev Author: tim_schofield Date: 2011-04-12 11:05:17 +0000 (Tue, 12 Apr 2011) Log Message: ----------- Corrections to login where just one security token is chosen Modified Paths: -------------- trunk/includes/session.inc trunk/index.php Modified: trunk/includes/session.inc =================================================================== --- trunk/includes/session.inc 2011-04-12 10:54:58 UTC (rev 5173) +++ trunk/includes/session.inc 2011-04-12 11:05:17 UTC (rev 5174) @@ -266,7 +266,7 @@ if (in_array(9,$_SESSION['AllowedPageSecurityTokens']) and $PageSecurity==0 and count($_SESSION['AllowedPageSecurityTokens'])==2){ $SupplierLogin=1; -} else { +} else if (in_array(1,$_SESSION['AllowedPageSecurityTokens']) and $PageSecurity==0 and count($_SESSION['AllowedPageSecurityTokens'])==2){ $SupplierLogin=0; } Modified: trunk/index.php =================================================================== --- trunk/index.php 2011-04-12 10:54:58 UTC (rev 5173) +++ trunk/index.php 2011-04-12 11:05:17 UTC (rev 5174) @@ -26,7 +26,7 @@ include('includes/header.inc'); -if (count($_SESSION['AllowedPageSecurityTokens'])==1 and $SupplierLogin==0){ +if (isset($SupplierLogin) and count($_SESSION['AllowedPageSecurityTokens'])==2 and $SupplierLogin==0){ /* if there is only one security access and its 1 (it has to be 1 for this page came up at all)- it must be a customer log on * need to limit the menu to show only the customer accessible stuff this is what the page looks like for customers logging in @@ -56,7 +56,7 @@ <?php include('includes/footer.inc'); exit; -} else if (count($_SESSION['AllowedPageSecurityTokens'])==1 and $SupplierLogin==1){ +} else if (isset($SupplierLogin) and count($_SESSION['AllowedPageSecurityTokens'])==2 and $SupplierLogin==1){ ?> <tr> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |