]> git.mxchange.org Git - mailer.git/blobdiff - inc/wrapper-functions.php
Same color for admin action links
[mailer.git] / inc / wrapper-functions.php
index b5fef6af950db2ab03a84681f2a083496886e60e..918ad0a93a039bb7686851c30d9cfb01d4951b89 100644 (file)
@@ -276,13 +276,13 @@ function detectServerName () {
 // Check wether we are installing
 function isInstalling () {
        // Determine wether we are installing
-       if (!isset($GLOBALS[__FUNCTION__])) {
+       if (!isset($GLOBALS['mailer_installing'])) {
                // Check URL (css.php/js.php need this)
-               $GLOBALS[__FUNCTION__] = isGetRequestParameterSet('installing');
+               $GLOBALS['mailer_installing'] = isGetRequestParameterSet('installing');
        } // END - if
 
        // Return result
-       return $GLOBALS[__FUNCTION__];
+       return $GLOBALS['mailer_installing'];
 }
 
 // Check wether this script is installed
@@ -326,13 +326,13 @@ function isInstalled () {
 // Check wether an admin is registered
 function isAdminRegistered () {
        // Is cache set?
-       if (!isset($GLOBALS['is_admin_registered'])) {
+       if (!isset($GLOBALS[__FUNCTION__])) {
                // Simply check it
-               $GLOBALS['is_admin_registered'] = ((isConfigEntrySet('ADMIN_REGISTERED')) && (getConfig('ADMIN_REGISTERED') == 'Y'));
+               $GLOBALS[__FUNCTION__] = ((isConfigEntrySet('ADMIN_REGISTERED')) && (getConfig('ADMIN_REGISTERED') == 'Y'));
        } // END - if
 
        // Return it
-       return $GLOBALS['is_admin_registered'];
+       return $GLOBALS[__FUNCTION__];
 }
 
 // Checks wether the reset mode is active
@@ -666,13 +666,13 @@ function enableBlockMode ($enabled = true) {
 // Checks wether block-mode is enabled
 function isBlockModeEnabled () {
        // Abort if not set
-       if (!isset($GLOBALS[__FUNCTION__])) {
+       if (!isset($GLOBALS['block_mode'])) {
                // Needs to be fixed
                debug_report_bug(__FUNCTION__, __LINE__, 'Block_mode is not set.');
        } // END - if
 
        // Return it
-       return $GLOBALS[__FUNCTION__];
+       return $GLOBALS['block_mode'];
 }
 
 // Wrapper function for addPointsThroughReferalSystem()
@@ -965,6 +965,9 @@ function getHttpStatus () {
  * @access  private
  */
 function sendRawRedirect ($url) {
+       // Send helping header
+       setHttpStatus('302 Found');
+
        // always close the session
        session_write_close();