define('TIMESTAMP', time()); define('DATE_FORMAT', 'Y-m-d'); define('TODAY', date('Y-m-d')); define('YESTERDAY', date('Y-m-d', TIMESTAMP - 86400)); define('TOMMOROW', date('Y-m-d', TIMESTAMP + 86400)); require_once ROOT . 'system/functions.php'; Kio::startTimer(); require_once ROOT . 'config.php'; error_reporting(ERRORS); if (!INSTALLED) { redirect(ROOT . 'install.php'); } require_once ROOT . 'system/' . DB_TYPE . '.php'; Kio::loadConfig(); Kio::loadStats(); Kio::loadGroups(); Kio::addTitle(Kio::getConfig('title')); Kio::setDescription(Kio::getConfig('description')); Kio::setKeywords(Kio::getConfig('keywords')); Kio::addHead(Kio::getConfig('header')); $kio->show_blocks = true; $kio->blocks = Kio::getConfig('blocks'); $kio->columns = Kio::getConfig('columns'); $kio->functions = array('set_magic_quotes_runtime', 'ini_set', 'date_default_timezone_set', 'mb_strlen'); $kio->functions = array_map('function_exists', array_combine($kio->functions, $kio->functions)); // Za spacje należy użyć \s, np. tanie\skomputery $kio->spam_words = str_replace(array(',', ' ', '#'), array('|', '', ''), Kio::getConfig('spam_words')); // Characters to replace $kio->chars = unserialize(Kio::getConfig('chars')) + array(' ' => '_', '\' => '', '"' => '', ''' => '', '`' => '', '"' => '', '>' => '', '<' => '', '&' => ''); // Check timezone_identifiers_list() $kio->bbcode = (include ROOT . 'system/parser/bbcode/' . (Kio::getConfig('bbcode_parser') ? Kio::getConfig('bbcode_parser') . '.php' : 'index.php'));