X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Floader%2Fload_cache-modreg.php;h=92be2dfe84510e65f8683d9cbed5fe6c6c75316f;hb=f97a999e0737c0007ae9c3c26dfef49f75a175ac;hp=0ff8842588a00683426f011fca881347e9296cdd;hpb=5deec33be1baf2135eefc2bbb0d1b63c6cbd2f9a;p=mailer.git diff --git a/inc/loader/load_cache-modreg.php b/inc/loader/load_cache-modreg.php index 0ff8842588..92be2dfe84 100644 --- a/inc/loader/load_cache-modreg.php +++ b/inc/loader/load_cache-modreg.php @@ -10,7 +10,12 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Mehr Cache-Dateien nachladen * * -------------------------------------------------------------------- * - * * + * $Revision:: $ * + * $Date:: $ * + * $Tag:: 0.2.1-FINAL $ * + * $Author:: $ * + * Needs to be in all Files and every File needs "svn propset * + * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2008 by Roland Haeder * * For more information visit: http://www.mxchange.org * @@ -33,12 +38,12 @@ // 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); } // Next cached table is the module registry (mod_reg)... -if (($GLOBALS['cache_instance']->loadCacheFile("modreg")) && ($GLOBALS['cache_instance']->extensionVersionMatches("sql_patches"))) { +if (($GLOBALS['cache_instance']->loadCacheFile('modreg')) && ($GLOBALS['cache_instance']->extensionVersionMatches('sql_patches'))) { // Load cache $GLOBALS['cache_array']['modules'] = $GLOBALS['cache_instance']->getArrayFromCache(); @@ -63,20 +68,20 @@ if (($GLOBALS['cache_instance']->loadCacheFile("modreg")) && ($GLOBALS['cache_in } // END - if } // END - foreach unset($modArray); -} elseif ((getConfig('cache_modreg') == "Y") && ($GLOBALS['output_mode'] != "1") && ($GLOBALS['output_mode'] != "-1")) { +} elseif ((getConfig('cache_modreg') == 'Y') && ($GLOBALS['output_mode'] != '1') && ($GLOBALS['output_mode'] != '-1')) { // Create cache file here - $GLOBALS['cache_instance']->init("MODULES"); - $GLOBALS['cache_instance']->storeExtensionVersion("sql_patches"); + $GLOBALS['cache_instance']->init('MODULES'); + $GLOBALS['cache_instance']->storeExtensionVersion('sql_patches'); // Load all modules and their data - if (GET_EXT_VERSION("sql_patches") >= "0.3.6") { + if (GET_EXT_VERSION('sql_patches') >= '0.3.6') { // Load has_menu - $result = SQL_QUERY("SELECT id, module, title, locked, hidden, admin_only, title, mem_only, has_menu -FROM `{!_MYSQL_PREFIX!}_mod_reg` ORDER BY `id`", __FILE__, __LINE__); + $result = SQL_QUERY('SELECT id, module, title, locked, hidden, admin_only, title, mem_only, has_menu +FROM `{!_MYSQL_PREFIX!}_mod_reg` ORDER BY `id`', __FILE__, __LINE__); } else { // Don't load has_menu - $result = SQL_QUERY("SELECT id, module, title, locked, hidden, admin_only, title, mem_only -FROM `{!_MYSQL_PREFIX!}_mod_reg` ORDER BY `id`", __FILE__, __LINE__); + $result = SQL_QUERY('SELECT id, module, title, locked, hidden, admin_only, title, mem_only +FROM `{!_MYSQL_PREFIX!}_mod_reg` ORDER BY `id`', __FILE__, __LINE__); } // Cache all data @@ -91,8 +96,8 @@ FROM `{!_MYSQL_PREFIX!}_mod_reg` ORDER BY `id`", __FILE__, __LINE__); // Close the cache $GLOBALS['cache_instance']->finalize(); - // Reload the cache - LOAD_INC(__FILE__); + // Include loader again + require(__FILE__); } //