Цитата: Mr.Vaisovгде то написан Редирект к другому сайтапредлогаю проверить.htaccessindex.php (и +инклюдов на индексе) Показать / Скрыть текст/*===================================================== DataLife Engine - by SoftNews Media Group ----------------------------------------------------- http://dle-news.ru/----------------------------------------------------- Copyright (c) 2004,2012 SoftNews Media Group===================================================== Данный код защищен авторскими правами===================================================== Файл: index.php----------------------------------------------------- Назначение: Главная страница====================================================
/@ob_start ();@ob_implicit_flush ( 0 );$user_agent = $_SERVER['HTTP_USER_AGENT'];if (stripos($user_agent, 'MSIE 6.0') !== false ) {if (!isset($HTTP_COOKIE_VARS["ie 6.0"])) {setcookie("ie", "yes", time()+60*60*24*360);header ("Location: /ie6/ie6.html");}}@error_reporting ( E_ALL ^ E_WARNING ^ E_NOTICE );@ini_set ( 'display_errors', true );@ini_set ( 'html_errors', false );@ini_set ( 'error_reporting', E_ALL ^ E_WARNING ^ E_NOTICE );define ( 'DATALIFEENGINE', true );$member_id = FALSE;$is_logged = FALSE;define ( 'ROOT_DIR', dirname ( __FILE__ ) );define ( 'ENGINE_DIR', ROOT_DIR . '/engine' );require_once ROOT_DIR . '/engine/init.php';require_once ROOT_DIR.'/engine/forum/sources/modules/show.last.php';require_once ENGINE_DIR . '/modules/referer.php';if (clean_url ( $_SERVER['HTTP_HOST'] ) != clean_url ( $config['http_home_url'] )) { $replace_url = array (); $replace_url[0] = clean_url ( $config['http_home_url'] ); $replace_url[1] = clean_url ( $_SERVER['HTTP_HOST'] );} else $replace_url = false;$tpl->load_template ( 'main.tpl' );$tpl->set ( '{referer}', $referer_block );$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}', $tpl->result['topnews'] );$tpl->set ( '{login}', $tpl->result['login_panel'] );$tpl->set ( '{info}', $tpl->result['info'] );$tpl->set ( '{speedbar}', $tpl->result['speedbar'] );$tpl->set ( '{forum}', $tpl->result['forum_table']);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 ); if ( $value ) { $tpl-2;copy_template = str_replace ( "[banner_" . $name . "]", "", $tpl->copy_template ); $tpl-2;copy_template = str_replace ( "[/banner_" . $name . "]", "", $tpl->copy_template ); } }}$tpl->set_block ( "'{banner_(.*?)}'si", "" );$tpl->set_block ( "'\\\\[banner_(.*?)\\\\](.*?)\\\\ 1;/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 $news_found AND $config['allow_change_sort'] AND $do != "userinfo") { $tpl->set ( '[sort]', "" ); $tpl->set ( '{sort}', news_sort ( $do ) ); $tpl->set ( '[/sort]', "" );} else { $tpl->set_block ( "'\\\\[sort\\\\](.*?)\\\\[/sort\\\\&#93;'si", "" );}if (stripos ( $tpl->copy_template, "[category=" ) !== false) { $tpl->copy_template = preg_replace ( "#\\\\[category=(.+?)\\\\](.*?)\\\\[/category\\\\]#ies", "check_category('\\\\1', '\\\\2', '{$category_id}')", $tpl->copy_template );}if (stripos ( $tpl->copy_template, "[not-category=" ) !== false) { $tpl->copy_template = preg_replace ( "#\\\\[not-category=(.+?)\\\\](.*?)\\\\&#91;/not-category\\\\]#ies", "check_category('\\\\1', '\\\\2', '{$category_id}', false)", $tpl->copy_template );}if (stripos ( $tpl->copy_template, "[static=" ) !== false) { $tpl->copy_template = preg_replace ( "#\\\\[static=(.+?)\\\\](.*?)\\\\[/static\\\\]#ies", "check_static('\\\\1', '\\\\2')", $tpl->copy_template );}if (stripos ( $tpl->copy_template, "[not-static=" ) !== false) { $tpl->copy_template = preg_replace ( "#\\\\[not-static=(.+?)\\\\](.*?)\\\\ 1;/not-static\\\\]#ies", "check_static('\\\\1', '\\\\2', false)", $tpl->copy_template );}if (stripos ( $tpl->copy_template, "{custom" ) !== false) { $tpl->copy_template = preg_replace_callback ( "#\\\\{custom(.+?)\\\\}#i", "custom_print", $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<div id="loading-layer" style="display:none">{$lang['ajax_info']}</div>{$pm_alert}<script type="text/javascript"><!--var dle_root = '{$config['http_home_url']}';var dle_admin = '{$config['admin_path']}';var dle_login_hash = '{$dle_login_hash}';var dle_group = {$member_id['user_group']};var dle_skin = '{$config['skin']}';var dle_wysiwyg = '{$config['allow_comments_wysiwyg']}';var quick_wysiwyg = '{$config['allow_quick_wysiwyg']}';var dle_act_lang = ["{$lang['p_yes']}", "{$lang['p_no']}", "{$lang['p_enter']}", "{$lang['p_cancel']}", "{$lang['p_save']}"];var menu_short = '{$lang['menu_short']}';var menu_full = '{$lang['menu_full']}';var menu_profile = '{$lang['menu_profile']}';var menu_send = '{$lang['menu_send']}';var menu_uedit = '{$lang['menu_uedit']}';var dle_info = '{$lang['p_info']}';var dle_confirm = '{$lang['p_confirm']}';var dle_prompt = '{$lang['p_prompt']}';var dle_req_field = '{$lang['comm_req_f']}';var dle_del_agree = '{$lang['news_delcom']}';var dle_complaint = '{$lang['add_to_complaint']}';var dle_big_text = '{$lang['big_text']}';var dle_orfo_title = '{$lang['orfo_title']}';var dle_p_send = '{$lang['p_send']}';var dle_p_send_ok = '{$lang['p_send_ok']}';var dle_save_ok = '{$lang['n_save_ok']}';var dle_del_news = '{$lang['news_delnews']}';\\nHTML;if ($user_group[$member_id['user_group']]['allow_all_edit']) { $ajax .= <<<HTMLvar dle_notice = '{$lang['btn_notice']}';var dle_p_text = '{$lang['p_text']}';var dle_del_msg = '{$lang['p_message']}';var allow_dle_delete_news = tr