]> git.mxchange.org Git - mailer.git/blobdiff - inc/request-functions.php
Now all parameters will be restored after login
[mailer.git] / inc / request-functions.php
index 353e24b4e8a6acba00e0c8fb770d44fd25022c0a..d7817ba0c921108d059409c33ac75941c3a28cd2 100644 (file)
@@ -252,5 +252,23 @@ function getRequestUri () {
        return $_SERVER['REQUEST_URI'];
 }
 
+// Add all GET parameters to a string (without leading sign)
+function addAllGetRequestParameters () {
+       // Init variable
+       $return = '';
+
+       // Now add all parameters
+       foreach (getRequestArray() as $key => $value) {
+               // Add it secured
+               $return .= SQL_ESCAPE($key) . '=' . SQL_ESCAPE($value) . '&';
+       } // END - foreach
+
+       // Remove trailing &
+       $return = substr($return, 0, -5);
+
+       // Return it
+       return $return;
+}
+
 // [EOF]
 ?>