define('SERVER_URL', "http://www.mxchange.org");
// This current patch level
-define('CURR_SVN_REVISION', "360");
+define('CURR_SVN_REVISION', "361");
// Take a prime number which is long (if you know a longer one please try it out!)
define('_PRIME', 591623);
$cacheArray['ref_system'] = $cacheInstance->cache_load();
} elseif (($_CONFIG['cache_refsys'] == "Y") && ($CSS != "1") && ($CSS != "-1")) {
// Create cache file here
- $cacheInstance->cache_init("refsystem");
+ $cacheInstance->cache_init("REFSYSTEM");
// Load all modules and their data
$result = SQL_QUERY("SELECT id, userid, level, counter FROM "._MYSQL_PREFIX."_refsystem ORDER BY userid, level", __FILE__, __LINE__);
}
// Next cached table is the referral system (themes)...
-if ($cacheInstance->cache_file("themes", true) == true) {
+if (($cacheInstance->cache_file("themes", true) == true) && ($cacheInstance->ext_version_matches("theme"))) {
// Load referral system from cache
global $cacheArray;
$cache = $cacheInstance->cache_load();
unset($cache);
} elseif (($_CONFIG['cache_refsys'] == "Y") && ($CSS != "1") && ($CSS != "-1")) {
// Create cache file here
- $cacheInstance->cache_init("themes");
+ $cacheInstance->cache_init("THEMES");
+ $cacheInstance->store_extension_version("theme");
// Load all themes and their data
- $result = SQL_QUERY("SELECT id, theme_path, theme_active, theme_ver, theme_name FROM "._MYSQL_PREFIX."_themes ORDER BY id", __FILE__, __LINE__);
+ if (GET_EXT_VERSION("theme") >= "0.0.7") {
+ $result = SQL_QUERY("SELECT id, theme_path, theme_active, theme_ver, theme_name FROM "._MYSQL_PREFIX."_themes ORDER BY id", __FILE__, __LINE__);
+ } else {
+ $result = SQL_QUERY("SELECT id, theme_path, theme_active, theme_ver FROM "._MYSQL_PREFIX."_themes ORDER BY id", __FILE__, __LINE__);
+ }
while ($data = SQL_FETCHARRAY($result)) {
// Add row to cache file
$cacheInstance->add_row($data);