From 88c00c20e642043675459659e7d3266fbc6fb1ec Mon Sep 17 00:00:00 2001 From: Chad Little Date: Thu, 2 Sep 2004 18:43:32 +0000 Subject: Updated to $_GET --- admin.php | 2 +- day.php | 4 ++-- functions/init.inc.php | 12 ++++++------ functions/userauth_functions.php | 10 +++++----- includes/login.php | 4 ++-- includes/todo.php | 2 +- preferences.php | 4 ++-- print.php | 2 +- rss/rss.php | 2 +- search.php | 4 ++-- 10 files changed, 23 insertions(+), 23 deletions(-) diff --git a/admin.php b/admin.php index dfee055..a00eb2b 100644 --- a/admin.php +++ b/admin.php @@ -13,7 +13,7 @@ if ($allow_admin != "yes") { // 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_");} +if($_GET) {extract($_GET, EXTR_PREFIX_SAME, "get_");} if (!isset($action)) $action = ''; diff --git a/day.php b/day.php index 2d3f647..f06e8f7 100644 --- a/day.php +++ b/day.php @@ -1,6 +1,6 @@ '; echo ''; - foreach (array_keys($HTTP_GET_VARS) as $key) { + foreach (array_keys($_GET) as $key) { if ($key == 'action' || $key == 'username' || $key == 'password') { continue; } - echo ''; + echo ''; } // If the attempted login was invalid, change the box title. diff --git a/includes/todo.php b/includes/todo.php index b8d5766..2a45d35 100644 --- a/includes/todo.php +++ b/includes/todo.php @@ -5,7 +5,7 @@ include_once(BASE.'functions/init.inc.php'); include_once(BASE.'functions/date_functions.php'); require_once(BASE.'functions/template.php'); -$vtodo_array = unserialize(base64_decode($HTTP_GET_VARS['vtodo_array'])); +$vtodo_array = unserialize(base64_decode($_GET['vtodo_array'])); // Set the variables from the array $vtodo_text = (isset($vtodo_array['vtodo_text'])) ? $vtodo_array['vtodo_text'] : (''); diff --git a/preferences.php b/preferences.php index 7ed6c13..41c0745 100644 --- a/preferences.php +++ b/preferences.php @@ -14,8 +14,8 @@ $current_view = "preferences"; $back_page = BASE.$default_view.'.php?cal='.$cal.'&getdate='.$getdate; if ($allow_preferences == 'no') header("Location: $back_page"); -if (isset($HTTP_GET_VARS['action'])) { - $action = $HTTP_GET_VARS['action']; +if (isset($_GET['action'])) { + $action = $_GET['action']; } else { $action = ''; } diff --git a/print.php b/print.php index 66f6bcc..1bc96da 100644 --- a/print.php +++ b/print.php @@ -9,7 +9,7 @@ header("Content-Type: text/html; charset=$charset"); $start_week_time = strtotime(dateOfWeek($getdate, $week_start_day)); $end_week_time = $start_week_time + (6 * 25 * 60 * 60); $parse_month = date ("Ym", strtotime($getdate)); -$printview = $HTTP_GET_VARS['printview']; +$printview = $_GET['printview']; $cal_displayname = str_replace("32", " ", $cal); $events_week = 0; $unix_time = strtotime($getdate); diff --git a/rss/rss.php b/rss/rss.php index e849bd1..bc22fca 100644 --- a/rss/rss.php +++ b/rss/rss.php @@ -13,7 +13,7 @@ $end_week_time = $start_week_time + (6 * 25 * 60 * 60); $start_week = localizeDate($dateFormat_week, $start_week_time); $end_week = localizeDate($dateFormat_week, $end_week_time); $parse_month = date ("Ym", strtotime($getdate)); -$rssview = $HTTP_GET_VARS['rssview']; +$rssview = $_GET['rssview']; $cal_displayname = str_replace("32", " ", $cal); $events_week = 0; diff --git a/search.php b/search.php index 4ddcefe..885f482 100644 --- a/search.php +++ b/search.php @@ -15,8 +15,8 @@ if (isset($HTTP_SERVER_VARS['HTTP_REFERER']) && $HTTP_SERVER_VARS['HTTP_REFERER' } $search_valid = false; -if (isset($HTTP_GET_VARS['query']) && $HTTP_GET_VARS['query'] != '') { - $query = $HTTP_GET_VARS['query']; +if (isset($_GET['query']) && $_GET['query'] != '') { + $query = $_GET['query']; $search_valid = true; } -- cgit v1.2.3