-// Initialize the request elements
-function initRequest () {
- $GLOBALS['raw_request']['get'] = $_GET;
- $GLOBALS['raw_request']['post'] = $_POST;
+// Getter for request URI
+function getRequestUri () {
+ // Is it not set?
+ if (!isset($_SERVER['REQUEST_URI'])) {
+ // Return empty string
+ return '';
+ } // END - if
+
+ // Return it
+ 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;