aboutsummaryrefslogtreecommitdiffstats
path: root/functions/userauth_functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'functions/userauth_functions.php')
-rw-r--r--functions/userauth_functions.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/functions/userauth_functions.php b/functions/userauth_functions.php
index 9be7205..b9204bc 100644
--- a/functions/userauth_functions.php
+++ b/functions/userauth_functions.php
@@ -3,10 +3,8 @@
//
// Returns the login query string.
function login_querys() {
- global $QUERY_STRING;
-
// Remove the username, password, and action values.
- $querys = preg_replace('/(username|password|action)=[^&]+/', '', $QUERY_STRING);
+ $querys = preg_replace('/(username|password|action)=[^&]+/', '', $_SERVER['QUERY_STRING']);
// Return the login query string.
$querys = preg_replace('/&&/', '', $querys);
@@ -17,10 +15,8 @@ function login_querys() {
//
// Returns the logout query string.
function logout_querys() {
- global $QUERY_STRING;
-
// Make sure the action is logout.
- $querys = preg_replace('/action=[^&]+/', 'action=logout', $QUERY_STRING);
+ $querys = preg_replace('/action=[^&]+/', 'action=logout', $_SERVER['QUERY_STRING']);
if ($querys == $QUERY_STRING) $querys .= '&action=logout';
// Remove references to the username or password.

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