From: <cl...@us...> - 2004-09-02 18:43:44
|
Update of /cvsroot/phpicalendar/phpicalendar/functions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32715/functions Modified Files: init.inc.php userauth_functions.php Log Message: Updated to $_GET Index: init.inc.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/init.inc.php,v retrieving revision 1.66 retrieving revision 1.67 diff -C2 -d -r1.66 -r1.67 *** init.inc.php 2 Sep 2004 18:41:13 -0000 1.66 --- init.inc.php 2 Sep 2004 18:43:34 -0000 1.67 *************** *** 36,40 **** // Grab the action (login or logout). ! if (isset($HTTP_GET_VARS['action'])) $action = $HTTP_GET_VARS['action']; else if (isset($_POST['action'])) $action = $_POST['action']; else $action = ''; --- 36,40 ---- // Grab the action (login or logout). ! if (isset($_GET['action'])) $action = $_GET['action']; else if (isset($_POST['action'])) $action = $_POST['action']; else $action = ''; *************** *** 59,64 **** if (!isset($getdate)) { ! if (isset($HTTP_GET_VARS['getdate']) && ($HTTP_GET_VARS['getdate'] !== '')) { ! $getdate = $HTTP_GET_VARS['getdate']; } else { $getdate = date('Ymd', strtotime("now + $second_offset seconds")); --- 59,64 ---- if (!isset($getdate)) { ! if (isset($_GET['getdate']) && ($_GET['getdate'] !== '')) { ! $getdate = $_GET['getdate']; } else { $getdate = date('Ymd', strtotime("now + $second_offset seconds")); *************** *** 77,82 **** $is_webcal = FALSE; ! if (isset($HTTP_GET_VARS['cal']) && $HTTP_GET_VARS['cal'] != '') { ! $cal_filename = urldecode($HTTP_GET_VARS['cal']); } else { if (isset($default_cal_check)) { --- 77,82 ---- $is_webcal = FALSE; ! if (isset($_GET['cal']) && $_GET['cal'] != '') { ! $cal_filename = urldecode($_GET['cal']); } else { if (isset($default_cal_check)) { *************** *** 116,120 **** array_push($cal_filelist,$filename); } else { ! exit(error($lang['l_error_remotecal'], $HTTP_GET_VARS['cal'])); } } else { --- 116,120 ---- array_push($cal_filelist,$filename); } else { ! exit(error($lang['l_error_remotecal'], $_GET['cal'])); } } else { Index: userauth_functions.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/userauth_functions.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** userauth_functions.php 2 Sep 2004 18:41:13 -0000 1.4 --- userauth_functions.php 2 Sep 2004 18:43:34 -0000 1.5 *************** *** 44,48 **** // indicate that the login is invalid. function user_login() { ! global $_COOKIE, $HTTP_GET_VARS, $_POST, $_SERVER; global $login_cookies, $cookie_uri, $locked_map; --- 44,48 ---- // indicate that the login is invalid. function user_login() { ! global $_COOKIE, $_GET, $_POST, $_SERVER; global $login_cookies, $cookie_uri, $locked_map; *************** *** 84,92 **** // Look for a new username and password. ! if (isset($HTTP_GET_VARS['username']) && ! isset($HTTP_GET_VARS['password'])) { ! $username = $HTTP_GET_VARS['username']; ! $password = $HTTP_GET_VARS['password']; } else if (isset($_POST['username']) && isset($_POST['password'])) --- 84,92 ---- // Look for a new username and password. ! if (isset($_GET['username']) && ! isset($_GET['password'])) { ! $username = $_GET['username']; ! $password = $_GET['password']; } else if (isset($_POST['username']) && isset($_POST['password'])) |