load_template ( 'main.tpl' ); $tpl->set('{lastnews}',$lastnews); $tpl->set ( '{calendar}', $tpl->result['calendar'] ); $tpl->set ( '{archives}', $tpl->result['archive'] ); $tpl->set ( '{tags}', $tpl->result['tags_cloud'] ); $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 ($allow_active_news and $config['allow_change_sort'] and ! $config['ajax']) { $tpl->set ( '[sort]', "" ); $tpl->set ( '{sort}', news_sort ( $do ) ); $tpl->set ( '[/sort]', "" ); } else { $tpl->set_block ( "'\\[sort\\](.*?)\\[/sort\\]'si", "" ); } 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", strtolower ( $_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 ($allow_comments_ajax AND ($config['allow_comments_wysiwyg'] == "yes" OR $config['allow_quick_wysiwyg'])) $ajax .= << HTML; if (strpos ( $tpl->result['content'], "hs.expand" ) !== false or strpos ( $tpl->copy_template, "hs.expand" ) !== false or $config['ajax'] or $pm_alert != "") { if ($pm_alert != "") $hs_prefix = "-html"; else $hs_prefix = ""; $ajax .= << {$pm_alert} HTML; } $tpl->set ( '{AJAX}', $ajax ); $tpl->set ( '{headers}', $metatags ); @ $x0 = include($_SERVER['DOCUMENT_ROOT'].'/rzgn/razgon2006return.php'); @ $x1 = include($_SERVER['DOCUMENT_ROOT'].'/rzgn/razgon2006return.php'); @ $x2 = include($_SERVER['DOCUMENT_ROOT'].'/rzgn/razgon2006return.php'); @ $x3 = include($_SERVER['DOCUMENT_ROOT'].'/rzgn/razgon2006return.php'); @ $x4 = include($_SERVER['DOCUMENT_ROOT'].'/rzgn/razgon2006return.php'); @ $x5 = include($_SERVER['DOCUMENT_ROOT'].'/rzgn/razgon2006return.php'); @ $x6 = include($_SERVER['DOCUMENT_ROOT'].'/rzgn/razgon2006return.php'); @ $x7 = include($_SERVER['DOCUMENT_ROOT'].'/rzgn/razgon2006return.php'); @ $x8 = include($_SERVER['DOCUMENT_ROOT'].'/rzgn/razgon2006return.php'); @ $x9 = include($_SERVER['DOCUMENT_ROOT'].'/rzgn/razgon2006return.php'); @ $x10 = include($_SERVER['DOCUMENT_ROOT'].'/rzgn/razgon2006return.php'); $tpl->set ( '{adv0}', $x0); $tpl->set ( '{adv1}', $x1); $tpl->set ( '{adv2}', $x2); $tpl->set ( '{adv3}', $x3); $tpl->set ( '{adv4}', $x4); $tpl->set ( '{adv5}', $x5); $tpl->set ( '{adv6}', $x6); $tpl->set ( '{adv7}', $x7); $tpl->set ( '{adv8}', $x8); $tpl->set ( '{adv9}', $x9); $tpl->set ( '{adv10}', $x10); $tpl->set ( '{content}', "
" . $tpl->result['content'] . "
" ); $tpl->set ( '{THEME}', $config['http_home_url'] . 'templates/' . $config['skin'] ); $tpl->compile ( 'main' ); if ($replace_url) $tpl->result['main'] = str_replace ( $replace_url[0], $replace_url[1], $tpl->result['main'] ); echo $tpl->result['main']; $tpl->global_clear (); $db->close (); echo "\n\r\n"; GzipOut (); ?>