define('SERVER_URL', "http://www.mxchange.org");
// Current SVN revision
-define('CURR_SVN_REVISION', "646");
+define('CURR_SVN_REVISION', "647");
// Take a prime number which is long (if you know a longer one please try it out!)
define('_PRIME', 591623);
// Read key from secret file
if ((getConfig('file_hash') == "") || (getConfig('master_salt') == "") || (getConfig('pass_scramble') == "")) {
+ // Cache instance
+ global $cacheInstance;
+
// Maybe need setup of secret key!
require_once(PATH."inc/gen_sql_patches.php");
- if ((GET_EXT_VERSION("cache") >= "0.1.2") && (is_object($cacheInstance))) {
+ // @TODO Rewrite this to a filter!
+ if ((GET_EXT_VERSION("cache") >= "0.1.2") && (isset($cacheInstance)) && (is_object($cacheInstance))) {
// Remove extensions and mod_reg cache file
require_once(PATH."inc/libs/cache_functions.php");
require_once(PATH."inc/extensions/ext-cache.php");
if (!defined('__SECURITY')) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
+} elseif (!EXT_IS_ACTIVE("theme")) {
+ // Skip this loader
+ return false;
}
// Next cached table is the referal system (themes)...