Свернуть ↑
→ Последние дискуссии на форуме администраторов игровых серверов (обновить окно) скрыть
load_template ('main.tpl'); //$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']); $tpl->set('{last-forum-post}', $tpl->result['forumpost']); $tpl->set('{last-comments}', $last_comments); $tpl->set('{server-source}', $cs_mon_source); $tpl->set('{domain}', 'http://'.HOST); $tpl->set('{referer}', $tpl->result['referer']); $tpl->set('{top_commentator}', $tpl->result['top_commentator']); $tpl->set('{t}', filemtime(ROOT_DIR.'/static/style.css')); if ($config['allow_skin_change'] == "yes") $tpl->set ( '{changeskin}', ChangeSkin ( ROOT_DIR . '/templates', $config['skin'] ) ); if (sizeof($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 ($allow_active_news and $config['allow_change_sort'] and !$config['ajax'] and $do != "userinfo") { $tpl->set ( '[sort]', "" ); $tpl->set ( '{sort}', news_sort ( $do ) ); $tpl->set ( '[/sort]', "" ); } else { $tpl->set_block ( "'\\[sort\\](.*?)\\[/sort\\]'si", "" ); } if ($dle_module == "showfull" ) { if (is_array($cat_list) and count($cat_list) > 1 ) $category_id = implode(",", $cat_list); } 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', '{$dle_module}')", $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 .= << var dle_root = '{$config['http_home_url']}', dle_admin = '{$config['admin_path']}', dle_login_hash = '{$dle_login_hash}', dle_skin = '{$config['skin']}', dle_wysiwyg = '{$config['allow_comments_wysiwyg']}', quick_wysiwyg = '{$config['allow_quick_wysiwyg']}', menu_short = '{$lang['menu_short']}', menu_full = '{$lang['menu_full']}', menu_profile = '{$lang['menu_profile']}', menu_fnews = '{$lang['menu_fnews']}', menu_fcomments = '{$lang['menu_fcomments']}', menu_send = '{$lang['menu_send']}', menu_uedit = '{$lang['menu_uedit']}', dle_req_field = '{$lang['comm_req_f']}', dle_del_agree = '{$lang['news_delcom']}', dle_del_news = '{$lang['news_delnews']}', HTML; /*$ajax .= <<