]> git.mxchange.org Git - mailer.git/blobdiff - inc/config-functions.php
XHTML fix
[mailer.git] / inc / config-functions.php
index 3358a302a9eedee88469c92e1048188bb11f233b..3fd823f6c75bc63c95776fd5428e8d1e1073ac65 100644 (file)
@@ -38,7 +38,7 @@
 
 // Some security stuff...
 if (!defined('__SECURITY')) {
-       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php";
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
        require($INC);
 }
 
@@ -127,10 +127,10 @@ function loadConfiguration ($no="0") {
                } // END - foreach
 
                // Count cache hits if exists
-               if ((isset($_CONFIG['cache_hits'])) && (EXT_IS_ACTIVE("cache"))) {
+               if ((isset($_CONFIG['cache_hits'])) && (EXT_IS_ACTIVE('cache'))) {
                        $_CONFIG['cache_hits']++;
                } // END - if
-       } elseif ((!EXT_IS_ACTIVE("cache")) || (!isset($GLOBALS['cache_array']['config'][$no]))) {
+       } elseif ((!EXT_IS_ACTIVE('cache')) || (!isset($GLOBALS['cache_array']['config'][$no]))) {
                // Load config from DB
                $result_config = SQL_QUERY_ESC("SELECT * FROM `{!_MYSQL_PREFIX!}_config` WHERE config=%d LIMIT 1",
                        array(bigintval($no)), __FUNCTION__, __LINE__);
@@ -149,5 +149,13 @@ function loadConfiguration ($no="0") {
        }
 }
 
+// Getter for whole $_CONFIG array
+function getConfigArray () {
+       global $_CONFIG;
+
+       // Return it
+       return $_CONFIG;
+}
+
 // [EOF]
 ?>