$htaccess[] = ""; } $filesystem->file_put_contents('.htaccess', implode("\r\n", $htaccess)); } $breadcrumb = new breadcrumb(); $breadcrumb->Add($config['fname'], 'index.php'); $phpdoc = new OutputDoc($config['gzip']); $phpdoc->Start($config['gzcompression']); define('PAGE_IS_GZIPPED', $config['gzip'] == 1 && $phpdoc->Encoding()); ($code = $plugins->load('frontend_init')) ? eval($code) : null; // Global and important functions (not for cron and external) if (defined('TEMPNOFUNCINIT') == false || $config['foffline'] && defined('TEMPSHOWLOG') == false) { define('SCRIPT_START_TIME', benchmarktime()); $slog = new slog(); $my = $slog->logged(); $lang->init($my->language); $tpl = new tpl(); $slog->checkBan(); } if ($config['foffline'] && defined('TEMPSHOWLOG') == false) { $my->p = $slog->Permissions(); if ($my->p['admin'] != 1) { $offline = file_get_contents('data/offline.php'); sendStatusCode(503, 3600); ($code = $plugins->load('frontend_init_offline')) ? eval($code) : null; echo $tpl->parse("offline"); $phpdoc->Out(); $db->close(); exit; } }