X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Frequest-functions.php;h=d7817ba0c921108d059409c33ac75941c3a28cd2;hb=798d1b4557e774a74b7d8e3795dad2a46532b592;hp=353e24b4e8a6acba00e0c8fb770d44fd25022c0a;hpb=a16ae225264a183dc4adf24c2d931df231d2ffc7;p=mailer.git diff --git a/inc/request-functions.php b/inc/request-functions.php index 353e24b4e8..d7817ba0c9 100644 --- a/inc/request-functions.php +++ b/inc/request-functions.php @@ -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] ?>