]> git.mxchange.org Git - mailer.git/blobdiff - inc/wrapper-functions.php
Deprecated action=login (admin area) removed
[mailer.git] / inc / wrapper-functions.php
index 54ffb3db3a964ee5b116b7c122be951864ac4272..7068fdc8bb5baee5a5d0b658101fd58d621ccfe5 100644 (file)
@@ -286,24 +286,24 @@ function isInstalling () {
 function isInstalled () {
        return (
        (
-       // New config file found and loaded
-       getConfig('MXCHANGE_INSTALLED') == 'Y'
+               // New config file found and loaded
+               getConfig('MXCHANGE_INSTALLED') == 'Y'
        ) || (
-       // Fall-back!
-       isIncludeReadable('inc/config.php')
+               // Fall-back!
+               isIncludeReadable('inc/config.php')
        ) || (
-       (
-       // New config file found, but not yet read
-       isIncludeReadable('inc/cache/config-local.php')
-       ) && (
-       (
-       // Only new config file is found
-       !isIncludeReadable('inc/config.php')
-       ) || (
-       // Is installation mode
-       isInstalling()
-       )
-       )
+               (
+                       // New config file found, but not yet read
+                       isIncludeReadable('inc/cache/config-local.php')
+               ) && (
+                       (
+                               // Only new config file is found
+                               !isIncludeReadable('inc/config.php')
+                       ) || (
+                               // Is installation mode
+                               isInstalling()
+                       )
+               )
        )
        );
 }
@@ -325,6 +325,12 @@ function isDebugModeEnabled () {
        return (getConfig('DEBUG_MODE') == 'Y');
 }
 
+// Checks wether we shall debug regular expressions
+function isDebugRegExpressionEnabled () {
+       // Simply check it
+       return (getConfig('DEBUG_REGEX') == 'Y');
+}
+
 // Checks wether the cache instance is valid
 function isCacheInstanceValid () {
        return ((isset($GLOBALS['cache_instance'])) && (is_object($GLOBALS['cache_instance'])));