load_template('main.tpl'); $tpl->set('{calendar}', $tpl->result['calendar']); $tpl->set('{archives}', $tpl->result['archive']); $tpl->set('{vote}', $tpl->result['vote']); $tpl->set('{topnews}',$topnews); $tpl->set('{login}',$login_panel); $tpl->set('{info}', "".$tpl->result['info'].""); $tpl->set('{speedbar}', $tpl->result['speedbar']); if ($config['allow_skin_change'] == "yes") $tpl->set('{changeskin}', ChangeSkin (ROOT_DIR.'/templates', $config['skin'])); if (count($banners) AND $config['allow_banner']) { foreach ($banners as $name => $value) { $tpl->copy_template = str_replace("{banner_".$name."}",$value, $tpl->copy_template); } } $tpl->set_block("'{banner_(.*?)}'si",""); if (count($informers) AND $config['rss_informer']) { foreach ($informers as $name => $value) { $tpl->copy_template = str_replace("{inform_".$name."}",$value, $tpl->copy_template); }} if ($do=="" AND !$subaction AND $year) $do = "date"; elseif ($do=="" AND $catalog) $do = "catalog"; elseif ($do=="") $do = $subaction; if ( strpos( $tpl->copy_template, "[aviable=" ) !== false ) { $tpl->copy_template = preg_replace( "#\\[aviable=(.+?)\\](.*?)\\[/aviable\\]#ies","check_module('\\1', '\\2', '{$do}')", $tpl->copy_template); } if ( strpos( $tpl->copy_template, "[not-aviable=" ) !== false ) { $tpl->copy_template = preg_replace( "#\\[not-aviable=(.+?)\\](.*?)\\[/not-aviable\\]#ies","check_module('\\1', '\\2', '{$do}', false)", $tpl->copy_template); } if ( strpos( $tpl->copy_template, "[not-group=" ) !== false ) { $tpl->copy_template = preg_replace( "#\\[not-group=(.+?)\\](.*?)\\[/not-group\\]#ies","check_group('\\1', '\\2', false)", $tpl->copy_template); } if ( strpos( $tpl->copy_template, "[group=" ) !== false ) { $tpl->copy_template = preg_replace( "#\\[group=(.+?)\\](.*?)\\[/group\\]#ies","check_group('\\1', '\\2')", $tpl->copy_template); } if ( strpos( $tpl->copy_template, "[category=" ) !== false ) { $tpl->copy_template = preg_replace( "#\\[category=(.+?)\\](.*?)\\[/category\\]#ies","check_category('\\1', '\\2', '{$category_id}')", $tpl->copy_template); } if ( strpos( $tpl->copy_template, "[not-category=" ) !== false ) { $tpl->copy_template = preg_replace( "#\\[not-category=(.+?)\\](.*?)\\[/not-category\\]#ies","check_category('\\1', '\\2', '{$category_id}', false)", $tpl->copy_template); } if ( strpos( $tpl->copy_template, "{custom" ) !== false ) { $tpl->copy_template = preg_replace( "#\\{custom category=['\"](.+?)['\"] template=['\"](.+?)['\"] aviable=['\"](.+?)['\"] from=['\"](.+?)['\"] limit=['\"](.+?)['\"] cache=['\"](.+?)['\"]\\}#ies", "custom_print('\\1', '\\2', '\\3', '\\4', '\\5', '\\6', '{$do}')", $tpl->copy_template ); } $config['http_home_url'] = explode("index.php", $_SERVER['PHP_SELF']); $config['http_home_url'] = reset($config['http_home_url']); if (!$user_group[$member_id['user_group']]['allow_admin']) $config['admin_path'] = ""; $ajax .= << HTML; if ( strpos( $tpl->result['content'], "hs.expand" ) !== false OR strpos( $tpl->copy_template, "hs.expand" ) !== false OR $config['ajax'] OR $pm_alert != "") $ajax .= << {$pm_alert} HTML; $tpl->set('{AJAX}', $ajax); $tpl->set('{headers}', $metatags); $tpl->set('{content}', "
".$tpl->result['content']."
"); $tpl->set('{THEME}', $config['http_home_url'].'templates/'.$config['skin']); $tpl->compile('main'); echo $tpl->result['main']; $tpl->global_clear(); $db->close(); echo"\n\r\n"; /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Вывод сгенерированного контекта ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ GzipOut(); ?>
return_links(); ?>
Абузоустойчивый хостинг для hyip, warez, surf, adult сайтов. Хостинг с DDOS Protection (защита от ДДОС атак).