aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2004-09-02 18:41:12 +0000
committerChad Little <clittle@users.sourceforge.net>2004-09-02 18:41:12 +0000
commitd06e6031b26322c5a5bca8cdfdbad196e5ebf002 (patch)
tree4edf6d435535ac25375c7e22a66ceebffead7d68
parentaa3869c95eddd0bdde4c985771cda50223a34e98 (diff)
downloadphpicalendar-d06e6031b26322c5a5bca8cdfdbad196e5ebf002.tar.gz
phpicalendar-d06e6031b26322c5a5bca8cdfdbad196e5ebf002.tar.bz2
phpicalendar-d06e6031b26322c5a5bca8cdfdbad196e5ebf002.zip
Updated to $_POST
-rw-r--r--admin.php2
-rw-r--r--functions/init.inc.php2
-rw-r--r--functions/userauth_functions.php10
-rw-r--r--includes/event.php20
-rw-r--r--preferences.php14
5 files changed, 24 insertions, 24 deletions
diff --git a/admin.php b/admin.php
index 2d65d1f..dfee055 100644
--- a/admin.php
+++ b/admin.php
@@ -12,7 +12,7 @@ if ($allow_admin != "yes") {
}
// Load variables from forms and query strings into local scope
-if($HTTP_POST_VARS) {extract($HTTP_POST_VARS, EXTR_PREFIX_SAME, "post_");}
+if($_POST) {extract($_POST, EXTR_PREFIX_SAME, "post_");}
if($HTTP_GET_VARS) {extract($HTTP_GET_VARS, EXTR_PREFIX_SAME, "get_");}
if (!isset($action)) $action = '';
diff --git a/functions/init.inc.php b/functions/init.inc.php
index 7cbfd55..ad9658b 100644
--- a/functions/init.inc.php
+++ b/functions/init.inc.php
@@ -36,7 +36,7 @@ if ($bleed_time == '') $bleed_time = $day_start;
// Grab the action (login or logout).
if (isset($HTTP_GET_VARS['action'])) $action = $HTTP_GET_VARS['action'];
-else if (isset($HTTP_POST_VARS['action'])) $action = $HTTP_POST_VARS['action'];
+else if (isset($_POST['action'])) $action = $_POST['action'];
else $action = '';
// Login and/or logout.
diff --git a/functions/userauth_functions.php b/functions/userauth_functions.php
index 7a408da..ea4ea17 100644
--- a/functions/userauth_functions.php
+++ b/functions/userauth_functions.php
@@ -43,7 +43,7 @@ function logout_querys() {
// if no valid login is found. Returns a boolean invalid_login to
// indicate that the login is invalid.
function user_login() {
- global $_COOKIE, $HTTP_GET_VARS, $HTTP_POST_VARS, $_SERVER;
+ global $_COOKIE, $HTTP_GET_VARS, $_POST, $_SERVER;
global $login_cookies, $cookie_uri, $locked_map;
// Initialize return values.
@@ -88,11 +88,11 @@ function user_login() {
{
$username = $HTTP_GET_VARS['username'];
$password = $HTTP_GET_VARS['password'];
- } else if (isset($HTTP_POST_VARS['username']) &&
- isset($HTTP_POST_VARS['password']))
+ } else if (isset($_POST['username']) &&
+ isset($_POST['password']))
{
- $username = $HTTP_POST_VARS['username'];
- $password = $HTTP_POST_VARS['password'];
+ $username = $_POST['username'];
+ $password = $_POST['password'];
}
// Check to make sure the username and password is valid.
diff --git a/includes/event.php b/includes/event.php
index 53c7ed8..7bfd5d4 100644
--- a/includes/event.php
+++ b/includes/event.php
@@ -9,17 +9,17 @@ function decode_popup ($item) {
return $item;
}
-$event = (isset($HTTP_POST_VARS['event'])) ? decode_popup($HTTP_POST_VARS['event']) : ('');
-$description = (isset($HTTP_POST_VARS['description'])) ? decode_popup($HTTP_POST_VARS['description']) : ('');
-$cal = (isset($HTTP_POST_VARS['cal'])) ? decode_popup($HTTP_POST_VARS['cal']) : ('');
-$start = (isset($HTTP_POST_VARS['start'])) ? decode_popup($HTTP_POST_VARS['start']) : ('');
-$end = (isset($HTTP_POST_VARS['end'])) ? decode_popup($HTTP_POST_VARS['end']) : ('');
-$status = (isset($HTTP_POST_VARS['status'])) ? decode_popup($HTTP_POST_VARS['status']) : ('');
-$location = (isset($HTTP_POST_VARS['location'])) ? decode_popup($HTTP_POST_VARS['location']) : ('');
-$url = (isset($HTTP_POST_VARS['url'])) ? decode_popup($HTTP_POST_VARS['url']) : ('');
-$organizer = (isset($HTTP_POST_VARS['organizer'])) ? ($HTTP_POST_VARS['organizer']) : ('');
+$event = (isset($_POST['event'])) ? decode_popup($_POST['event']) : ('');
+$description = (isset($_POST['description'])) ? decode_popup($_POST['description']) : ('');
+$cal = (isset($_POST['cal'])) ? decode_popup($_POST['cal']) : ('');
+$start = (isset($_POST['start'])) ? decode_popup($_POST['start']) : ('');
+$end = (isset($_POST['end'])) ? decode_popup($_POST['end']) : ('');
+$status = (isset($_POST['status'])) ? decode_popup($_POST['status']) : ('');
+$location = (isset($_POST['location'])) ? decode_popup($_POST['location']) : ('');
+$url = (isset($_POST['url'])) ? decode_popup($_POST['url']) : ('');
+$organizer = (isset($_POST['organizer'])) ? ($_POST['organizer']) : ('');
$organizer = unserialize (decode_popup ($organizer));
-$attendee = (isset($HTTP_POST_VARS['attendee'])) ? ($HTTP_POST_VARS['attendee']) : ('');
+$attendee = (isset($_POST['attendee'])) ? ($_POST['attendee']) : ('');
$attendee = unserialize (decode_popup ($attendee));
$cal_title_full = $cal.' '.$calendar_lang;
diff --git a/preferences.php b/preferences.php
index 253a8d7..7ed6c13 100644
--- a/preferences.php
+++ b/preferences.php
@@ -23,13 +23,13 @@ if (isset($HTTP_GET_VARS['action'])) {
$startdays = array ('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
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'];
+ $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);
if ($cookie_unset) {

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