]> git.mxchange.org Git - mailer.git/blobdiff - inc/wrapper-functions.php
fooRequestElementBar() functions renamed, adding of request parameters added:
[mailer.git] / inc / wrapper-functions.php
index d3369e758f78a10f6dcbbbf750394c2aa1e88e34..c9f97c7b212f8f057c1dc78425d2b18761572cb5 100644 (file)
@@ -257,12 +257,17 @@ function detectRequestUri () {
        return (getenv('REQUEST_URI'));
 }
 
+// "Getter" for query string
+function detectQueryString () {
+       return str_replace('&', '&', (getenv('QUERY_STRING')));
+}
+
 // Check wether we are installing
 function isInstalling () {
        // Determine wether we are installing
        if (!isset($GLOBALS['mxchange_installing'])) {
                // Check URL (css.php/js.php need this)
-               $GLOBALS['mxchange_installing'] = isGetRequestElementSet('installing');
+               $GLOBALS['mxchange_installing'] = isGetRequestParameterSet('installing');
        } // END - if
 
        // Return result
@@ -395,6 +400,9 @@ function flushHeaders () {
        foreach ($GLOBALS['header'] as $header) {
                header($header);
        } // END - foreach
+
+       // Mark them as flushed
+       $GLOBALS['header'] = array();
 }
 
 // Wrapper function for chmod()
@@ -429,9 +437,9 @@ function removeFile ($FQFN) {
 // Wrapper for $_POST['sel']
 function countPostSelection ($element = 'sel') {
        // Is it set?
-       if (isPostRequestElementSet($element)) {
+       if (isPostRequestParameterSet($element)) {
                // Return counted elements
-               return countSelection(postRequestElement($element));
+               return countSelection(postRequestParameter($element));
        } else {
                // Return zero if not found
                return 0;