From: <jo...@us...> - 2003-11-26 01:01:37
|
Update of /cvsroot/phpicalendar/phpicalendar/functions In directory sc8-pr-cvs1:/tmp/cvs-serv10170/functions Modified Files: init.inc.php Log Message: Fix to use older predefined variables for compatibility with PHP < 4.1.0. Corrected logic for detecting an invalid login. Index: init.inc.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/init.inc.php,v retrieving revision 1.53 retrieving revision 1.54 diff -C2 -d -r1.53 -r1.54 *** init.inc.php 26 Nov 2003 00:45:45 -0000 1.53 --- init.inc.php 26 Nov 2003 01:01:33 -0000 1.54 *************** *** 56,63 **** // Grab the action (login or logout). ! $action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : ''; // Check to make sure the username and password is valid. ! if (!key_exists("$username:$password", $locked_map)) { // Don't login, instead logout. $action = 'logout'; --- 56,65 ---- // Grab the action (login or logout). ! if (isset($HTTP_GET_VARS['action'])) $action = $HTTP_GET_VARS['action']; ! else if (isset($HTTP_POST_VARS['action'])) $action = $HTTP_POST_VARS['action']; ! else $action = ''; // Check to make sure the username and password is valid. ! if ($action == 'login' && !key_exists("$username:$password", $locked_map)) { // Don't login, instead logout. $action = 'logout'; |