X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fconfig-functions.php;h=b977e2af621fc45d220b16ea487d2af6cf9e0205;hb=79e518ecf01f45b3ba53d81e62d4a0a1da65ed0e;hp=95e39634de5e5a2e9da962ad5b1415327896b50f;hpb=e01fcf1ca8ddeb72af76465df3ef72301a1cdae7;p=mailer.git diff --git a/inc/config-functions.php b/inc/config-functions.php index 95e39634de..b977e2af62 100644 --- a/inc/config-functions.php +++ b/inc/config-functions.php @@ -10,10 +10,10 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Viele Nicht-MySQL-Funktionen (auch Dateizugriff) * * -------------------------------------------------------------------- * - * $Revision:: 856 $ * - * $Date:: 2009-03-06 20:24:32 +0100 (Fr, 06. March 2009) $ * + * $Revision:: $ * + * $Date:: $ * * $Tag:: 0.2.1-FINAL $ * - * $Author:: stelzi $ * + * $Author:: $ * * Needs to be in all Files and every File needs "svn propset * * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * @@ -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] ?>