diff options
author | Jason Oster <parasytic@users.sourceforge.net> | 2009-12-24 17:24:30 +0000 |
---|---|---|
committer | Jason Oster <parasytic@users.sourceforge.net> | 2009-12-24 17:24:30 +0000 |
commit | 53df246c9fffc9277bd87698e161cdccdda71f86 (patch) | |
tree | 0967285258d8b8fe86b458c215a946d61295c0b4 /functions | |
parent | 4da5af3759b449378aecac9b3d812662aef51d25 (diff) | |
download | phpicalendar-53df246c9fffc9277bd87698e161cdccdda71f86.tar.gz phpicalendar-53df246c9fffc9277bd87698e161cdccdda71f86.tar.bz2 phpicalendar-53df246c9fffc9277bd87698e161cdccdda71f86.zip |
Fix small time format in French tranlsation
Diffstat (limited to 'functions')
-rw-r--r-- | functions/userauth_functions.php | 8 |
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. |