aboutsummaryrefslogtreecommitdiffstats
path: root/functions/init.inc.php
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2004-09-02 18:43:32 +0000
committerChad Little <clittle@users.sourceforge.net>2004-09-02 18:43:32 +0000
commit88c00c20e642043675459659e7d3266fbc6fb1ec (patch)
tree4eeedcb25ca1fc88dd5889a6d47d88872820fd58 /functions/init.inc.php
parentd06e6031b26322c5a5bca8cdfdbad196e5ebf002 (diff)
downloadphpicalendar-88c00c20e642043675459659e7d3266fbc6fb1ec.tar.gz
phpicalendar-88c00c20e642043675459659e7d3266fbc6fb1ec.tar.bz2
phpicalendar-88c00c20e642043675459659e7d3266fbc6fb1ec.zip
Updated to $_GET
Diffstat (limited to 'functions/init.inc.php')
-rw-r--r--functions/init.inc.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/functions/init.inc.php b/functions/init.inc.php
index ad9658b..30b5a83 100644
--- a/functions/init.inc.php
+++ b/functions/init.inc.php
@@ -35,7 +35,7 @@ if ($cookie_uri == '') {
if ($bleed_time == '') $bleed_time = $day_start;
// Grab the action (login or logout).
-if (isset($HTTP_GET_VARS['action'])) $action = $HTTP_GET_VARS['action'];
+if (isset($_GET['action'])) $action = $_GET['action'];
else if (isset($_POST['action'])) $action = $_POST['action'];
else $action = '';
@@ -58,8 +58,8 @@ if (file_exists(realpath($lang_file))) {
}
if (!isset($getdate)) {
- if (isset($HTTP_GET_VARS['getdate']) && ($HTTP_GET_VARS['getdate'] !== '')) {
- $getdate = $HTTP_GET_VARS['getdate'];
+ if (isset($_GET['getdate']) && ($_GET['getdate'] !== '')) {
+ $getdate = $_GET['getdate'];
} else {
$getdate = date('Ymd', strtotime("now + $second_offset seconds"));
}
@@ -76,8 +76,8 @@ if ($calendar_path == '') {
}
$is_webcal = FALSE;
-if (isset($HTTP_GET_VARS['cal']) && $HTTP_GET_VARS['cal'] != '') {
- $cal_filename = urldecode($HTTP_GET_VARS['cal']);
+if (isset($_GET['cal']) && $_GET['cal'] != '') {
+ $cal_filename = urldecode($_GET['cal']);
} else {
if (isset($default_cal_check)) {
if ($default_cal_check != $ALL_CALENDARS_COMBINED) {
@@ -115,7 +115,7 @@ if ($is_webcal == TRUE) {
$cal_filelist = array();
array_push($cal_filelist,$filename);
} else {
- exit(error($lang['l_error_remotecal'], $HTTP_GET_VARS['cal']));
+ exit(error($lang['l_error_remotecal'], $_GET['cal']));
}
} else {
$cal_displayname = str_replace('32', ' ', $cal_filename);

© 2014-2024 Faster IT GmbH | imprint | privacy policy