From: <cl...@us...> - 2004-09-02 18:41:23
|
Update of /cvsroot/phpicalendar/phpicalendar In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32070 Modified Files: admin.php preferences.php Log Message: Updated to $_POST Index: admin.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/admin.php,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** admin.php 18 Aug 2004 04:06:31 -0000 1.20 --- admin.php 2 Sep 2004 18:41:12 -0000 1.21 *************** *** 13,17 **** // Load variables from forms and query strings into local scope ! if($HTTP_POST_VARS) {extract($HTTP_POST_VARS, EXTR_PREFIX_SAME, "post_");} if($HTTP_GET_VARS) {extract($HTTP_GET_VARS, EXTR_PREFIX_SAME, "get_");} --- 13,17 ---- // Load variables from forms and query strings into local scope ! if($_POST) {extract($_POST, EXTR_PREFIX_SAME, "post_");} if($HTTP_GET_VARS) {extract($HTTP_GET_VARS, EXTR_PREFIX_SAME, "get_");} Index: preferences.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/preferences.php,v retrieving revision 1.50 retrieving revision 1.51 diff -C2 -d -r1.50 -r1.51 *** preferences.php 2 Sep 2004 18:39:51 -0000 1.50 --- preferences.php 2 Sep 2004 18:41:12 -0000 1.51 *************** *** 24,34 **** if ($action == 'setcookie') { ! $cookie_language = $HTTP_POST_VARS['cookie_language']; ! $cookie_calendar = $HTTP_POST_VARS['cookie_calendar']; ! $cookie_view = $HTTP_POST_VARS['cookie_view']; ! $cookie_style = $HTTP_POST_VARS['cookie_style']; ! $cookie_startday = $HTTP_POST_VARS['cookie_startday']; ! $cookie_time = $HTTP_POST_VARS['cookie_time']; ! $cookie_unset = $HTTP_POST_VARS['unset']; $the_cookie = array ("cookie_language" => "$cookie_language", "cookie_calendar" => "$cookie_calendar", "cookie_view" => "$cookie_view", "cookie_startday" => "$cookie_startday", "cookie_style" => "$cookie_style", "cookie_time" => "$cookie_time"); $the_cookie = serialize($the_cookie); --- 24,34 ---- if ($action == 'setcookie') { ! $cookie_language = $_POST['cookie_language']; ! $cookie_calendar = $_POST['cookie_calendar']; ! $cookie_view = $_POST['cookie_view']; ! $cookie_style = $_POST['cookie_style']; ! $cookie_startday = $_POST['cookie_startday']; ! $cookie_time = $_POST['cookie_time']; ! $cookie_unset = $_POST['unset']; $the_cookie = array ("cookie_language" => "$cookie_language", "cookie_calendar" => "$cookie_calendar", "cookie_view" => "$cookie_view", "cookie_startday" => "$cookie_startday", "cookie_style" => "$cookie_style", "cookie_time" => "$cookie_time"); $the_cookie = serialize($the_cookie); |