Update of /cvsroot/php-blog/jBlog
In directory sc8-pr-cvs1:/tmp/cvs-serv31204
Modified Files:
compat.php
Log Message:
Make sure shorthand vars exist
Index: compat.php
===================================================================
RCS file: /cvsroot/php-blog/jBlog/compat.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- compat.php 3 Mar 2003 21:50:51 -0000 1.2
+++ compat.php 14 Mar 2003 21:12:07 -0000 1.3
@@ -10,4 +10,15 @@
return $data;
}
}
+
+if (!$_POST)
+ $_POST = &$HTTP_POST_VARS;
+if (!$_GET)
+ $_GET = &$HTTP_GET_VARS;
+if (!$_SESSION)
+ $_SESSION = &$HTTP_SESSION_VARS;
+if (!$_COOKIE)
+ $_COOKIE = &$HTTP_COOKIE_VARS;
+if (!$_SERVER)
+ $_SERVER = &$HTTP_SERVER_VARS;
?>
|