Exemplo n.º 1
0
$CLAN_NAME = $websiteInfo['clanname'];
$THEME = $websiteInfo['theme'];
define("THEME", $THEME);
$arrWebsiteLogoURL = parse_url($websiteInfo['logourl']);
if (!isset($arrWebsiteLogoURL['scheme']) || $arrWebsiteLogoURL['scheme'] == "") {
    $websiteInfo['logourl'] = $MAIN_ROOT . "themes/" . $THEME . "/" . $websiteInfo['logourl'];
}
$IP_ADDRESS = $_SERVER['REMOTE_ADDR'];
// Check Debug Mode
if ($websiteInfo['debugmode'] == 1) {
    ini_set('display_errors', 1);
    ini_set('error_reporting', E_ALL & ~E_NOTICE & ~E_WARNING & ~E_STRICT);
} else {
    ini_set('display_errors', 1);
    ini_set('error_reporting', E_ALL & ~E_NOTICE & ~E_WARNING & ~E_STRICT);
    //ini_set('error_reporting', E_ALL);
}
// Check for Ban
$ipbanObj = new IPBan($mysqli);
if ($ipbanObj->isBanned($IP_ADDRESS)) {
    die("<script type='text/javascript'>window.location = '" . $MAIN_ROOT . "banned.php';</script>");
}
$websiteInfo['default_timezone'] = !isset($websiteInfo['default_timezone']) || $websiteInfo['default_timezone'] == "" ? "UTC" : $websiteInfo['default_timezone'];
date_default_timezone_set($websiteInfo['default_timezone']);
$hooksObj = new btHooks();
$btThemeObj = new btTheme();
$clockObj = new Clock($mysqli);
$btThemeObj->setThemeDir($THEME);
$btThemeObj->setClanName($CLAN_NAME);
$btThemeObj->initHead();
include_once BASE_DIRECTORY . "plugins/mods.php";