new hacker was born. MjEuMTAuMjAxMCBzcGVjaWFsIGZvciBrLiBmcm9tIGMqKgaLife Engine - by SoftNews Media Group ----------------------------------------------------- http://dle-news.ru/ ----------------------------------------------------- Copyright (c) 2004,2009 SoftNews Media Group ===================================================== Данный код защищен авторскими правами ===================================================== Файл: index.php ----------------------------------------------------- Назначение: Главная страница ===================================================== */ @session_start (); @ob_start (); @ob_implicit_flush ( 0 ); @error_reporting ( E_ALL ^ E_NOTICE ); @ini_set ( 'display_errors', true ); @ini_set ( 'html_errors', false ); @ini_set ( 'error_reporting', E_ALL ^ 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/modules/jokes.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('{jokes}', $content); $tpl->set ( '{calendar}', $tpl->result['calendar'] ); $tpl->set ( '{archives}', $tpl->result['archive'] ); $tpl->set ( '{tags}', $tpl->result['tags_cloud'] ); $tpl->set ( '{tags_all_view}', $tpl->result['tags_all_view']); $tpl->set ( '{vote}', $tpl->result['vote'] ); $tpl->set ( '{topnews}', $topnews ); $tpl->set ( '{login}', $login_panel ); $tpl->set ('{category_block}', $tpl->result['category_block']); $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, "[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 )(.*)(})/ie", "custom_tpl('\\2')" ,$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 ); $tpl->set ( '{content}', "