$_SESSION =& $HTTP_SESSION_VARS;
}
-/* if running with register_globals = 0 and
- magic_quotes_gpc then strip the slashes
+/* if running with magic_quotes_gpc then strip the slashes
from POST and GET global arrays */
if (get_magic_quotes_gpc()) {
- if (ini_get('register_globals') == 0) {
- sqstripslashes($_GET);
- sqstripslashes($_POST);
- }
+ sqstripslashes($_GET);
+ sqstripslashes($_POST);
}
/* strip any tags added to the url from PHP_SELF.
is_logged_in();
-/* Remove all slashes for form values. */
-if (get_magic_quotes_gpc()) {
- global $REQUEST_METHOD;
-
- if ($REQUEST_METHOD == 'POST') {
- global $HTTP_POST_VARS;
- RemoveSlashes($HTTP_POST_VARS);
- } else if ($REQUEST_METHOD == 'GET') {
- global $HTTP_GET_VARS;
- RemoveSlashes($HTTP_GET_VARS);
- }
-}
-
/**
* Auto-detection
*