From: <cl...@us...> - 2004-09-02 18:40:01
|
Update of /cvsroot/phpicalendar/phpicalendar/functions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31747/functions Modified Files: init.inc.php userauth_functions.php Log Message: Updated to $_COOKIE Index: init.inc.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/init.inc.php,v retrieving revision 1.64 retrieving revision 1.65 diff -C2 -d -r1.64 -r1.65 *** init.inc.php 16 Aug 2004 18:33:46 -0000 1.64 --- init.inc.php 2 Sep 2004 18:39:52 -0000 1.65 *************** *** 18,23 **** include_once(BASE.'functions/calendar_functions.php'); include_once(BASE.'functions/userauth_functions.php'); ! if (isset($HTTP_COOKIE_VARS['phpicalendar'])) { ! $phpicalendar = unserialize(stripslashes($HTTP_COOKIE_VARS['phpicalendar'])); if (isset($phpicalendar['cookie_language'])) $language = $phpicalendar['cookie_language']; if (isset($phpicalendar['cookie_calendar'])) $default_cal_check = $phpicalendar['cookie_calendar']; --- 18,23 ---- include_once(BASE.'functions/calendar_functions.php'); include_once(BASE.'functions/userauth_functions.php'); ! if (isset($_COOKIE['phpicalendar'])) { ! $phpicalendar = unserialize(stripslashes($_COOKIE['phpicalendar'])); if (isset($phpicalendar['cookie_language'])) $language = $phpicalendar['cookie_language']; if (isset($phpicalendar['cookie_calendar'])) $default_cal_check = $phpicalendar['cookie_calendar']; Index: userauth_functions.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/userauth_functions.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** userauth_functions.php 22 Jul 2004 02:25:42 -0000 1.2 --- userauth_functions.php 2 Sep 2004 18:39:52 -0000 1.3 *************** *** 44,48 **** // indicate that the login is invalid. function user_login() { ! global $HTTP_COOKIE_VARS, $HTTP_GET_VARS, $HTTP_POST_VARS, $_SERVER; global $login_cookies, $cookie_uri, $locked_map; --- 44,48 ---- // indicate that the login is invalid. function user_login() { ! global $_COOKIE, $HTTP_GET_VARS, $HTTP_POST_VARS, $_SERVER; global $login_cookies, $cookie_uri, $locked_map; *************** *** 58,64 **** // Look for a login cookie. if ($login_cookies == 'yes' && ! isset($HTTP_COOKIE_VARS['phpicalendar_login'])) { ! $login_cookie = unserialize(stripslashes($HTTP_COOKIE_VARS['phpicalendar_login'])); if (isset($login_cookie['username']) && isset($login_cookie['password'])) --- 58,64 ---- // Look for a login cookie. if ($login_cookies == 'yes' && ! isset($_COOKIE['phpicalendar_login'])) { ! $login_cookie = unserialize(stripslashes($_COOKIE['phpicalendar_login'])); if (isset($login_cookie['username']) && isset($login_cookie['password'])) |