diff --git a/library/config.php b/library/config.php index a0f2f79c..947b4abc 100644 --- a/library/config.php +++ b/library/config.php @@ -578,3 +578,5 @@ $bb_cfg['nofollow'] = array( 'disabled' => false, 'allowed_url' => array($domain_name), // 'allowed.site', 'www.allowed.site' ); + +define('BB_CFG_LOADED', true); diff --git a/library/includes/init_bb.php b/library/includes/init_bb.php index be4a2bff..220ef3de 100644 --- a/library/includes/init_bb.php +++ b/library/includes/init_bb.php @@ -2,6 +2,7 @@ if (!defined('BB_ROOT')) die(basename(__FILE__)); if (!(PHP_VERSION_ID >= 50303)) die('TorrentPier II requires PHP version 5.3.3+. Your PHP version '. PHP_VERSION); +if (!defined('BB_CFG_LOADED')) trigger_error('File config.php not loaded', E_USER_ERROR); // Define some basic configuration arrays unset($stopwords, $synonyms_match, $synonyms_replace);