Changeset:
0095b456f19e
https://sourceforge.net/p/mrbs/hg-code/ci/0095b456f19ec14e7ddb373e56afefa9a17fe628
Author:
Campbell Morrison <[email protected]>
Date:
Tue Aug 02 14:07:13 2016 +0100
Log message:
Got rid of usage of $HTTP_GET_VARS, $HTTP_POST_VARS and $HTTP_SERVER_VARS (no
longer necessary)
diffstat:
web/grab_globals.inc.php | 17 ++---------------
1 files changed, 2 insertions(+), 15 deletions(-)
diffs (49 lines):
diff -r 3a55ae0c20dc -r 0095b456f19e web/grab_globals.inc.php
--- a/web/grab_globals.inc.php Thu Jul 28 14:58:46 2016 +0100
+++ b/web/grab_globals.inc.php Tue Aug 02 14:07:13 2016 +0100
@@ -2,11 +2,10 @@
//
+---------------------------------------------------------------------------+
// | Meeting Room Booking System.
//
+---------------------------------------------------------------------------+
-// | Grabs the names and values of the '$HTTP_*_VARS' variables.
+// | Grabs the names and values of the $_POST and $_GET variables.
//
|---------------------------------------------------------------------------+
// | This library grabs the names and values of the variables sent or posted to
-// | a script in the '$HTTP_*_VARS' and new globals arrays defined with
-// | php 4.1+ and sets simple globals variables from them.
+// | a script in the $_POST and $_GET variables.
// | It does the same work for other external variables used in MRBS.
// | USE : This file should be included in all files where external variables
// | are used, preferably before other included files.
@@ -51,20 +50,12 @@
{
$value = $_POST[$variable];
}
- else if (!empty($HTTP_POST_VARS) && isset($HTTP_POST_VARS[$variable]))
- {
- $value = $HTTP_POST_VARS[$variable];
- }
// Then get the GET variables
if (!empty($_GET) && isset($_GET[$variable]))
{
$value = $_GET[$variable];
}
- else if (!empty($HTTP_GET_VARS) && isset($HTTP_GET_VARS[$variable]))
- {
- $value = $HTTP_GET_VARS[$variable];
- }
// Cast to an array if necessary
if ($type == 'array')
@@ -112,10 +103,6 @@
{
$$var = $_SERVER[$var];
}
- else if (!empty($HTTP_SERVER_VARS) && isset($HTTP_SERVER_VARS[$var]))
- {
- $$var = $HTTP_SERVER_VARS[$var];
- }
}
------------------------------------------------------------------------------
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits