require_once 'configs/config.php'; mb_regex_encoding('UTF-8'); mb_internal_encoding("UTF-8"); define('PROFILER', 0); //включить профилирование define('ROOT_DIR', dirname(__FILE__)); set_include_path( implode(PATH_SEPARATOR, array(realpath(ROOT_DIR . '/includes/classes'), realpath(ROOT_DIR . '/includes/functions'), realpath(ROOT_DIR . '/includes/system'), get_include_path()))); if (PROFILER) { require_once 'gettime.php'; define('START_TIME_SCRIPT', gettime()); } require_once 'tsh.class.php'; $tsh = new TSH(); $tsh->Run(array("handling" => "both", "tags" => "strip", "quotes" => "mnemonics")); require_once 'mysql.php'; require_once 'bootstrap.php'; if (empty($template_content)) $template_content = ''; if (empty($template_plugin)) $template_plugin = ''; if (empty($template_plugin2)) $template_plugin2 = ''; if (empty($template_plugin3)) $template_plugin3 = ''; if (empty($template_anons)) $template_anons = ''; if (empty($template_faces)) $template_faces = ''; require_once 'fin.php'; require_once 'templates/' . $template . '/index.php'; if (PROFILER) { define('STOP_TIME_SCRIPT', gettime()); $diff_time = bcsub(STOP_TIME_SCRIPT, START_TIME_SCRIPT, 6); echo "
Page generated for " . $diff_time . " second
"; }