Сделал всё как написано! вот что получилось (сайт warez67.ru) <?php
/*
=====================================================
DataLife Engine Nulled by M.A.T.R.I.X
-----------------------------------------------------
http://warez.noadsfree.com/
-----------------------------------------------------
Copyright (c) 2004,2009 SoftNews Media Group
=====================================================
пїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅ
=====================================================
пїЅпїЅпїЅпїЅ: index.php
-----------------------------------------------------
пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ: пїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ
=====================================================
*/
//if ($_SERVER['SERVER_NAME'] == "mxdle.its-free.ru") header('Location: http://mxdle.co.cc/');
@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' );
define(‘_SAPE_USER’, ‘252d33ead04789de8574da939f61d834’);
require_once($_SERVER['DOCUMENT_ROOT'].’/’._SAPE_USER.’/sape.php’);
$sape = new SAPE_client();
$config['optimizer']="no";
if ( $config['optimizer'] == "yes" ) { @require ROOT_DIR .'/optimizer/web.optimizer.php'; }
require_once ROOT_DIR . '/engine/init.php';
include ENGINE_DIR.'/data/popup.config.php';
include ENGINE_DIR.'/modules/popup.php';
if ($do == "register") require_once ROOT_DIR.'/engine/classes/papacaptcha.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' );
if ( $setmx['allow_in_chat'] == "yes" ) {
$cont = dle_cache( "in_chat", $config['skin'] );
if( ! $cont ) {
// @require_once ( ROOT_DIR . '/chat/info_embedded.php');
create_cache( "in_chat", $cont, $config['skin'] );
}
$tpl->set('{in_chat}', $cont );
$tpl->set('[in_chat]', "");
$tpl->set('[/in_chat]', "");
} else {
$tpl->set_block("'\\[in_chat\\](.*?)\\[/in_chat\\]'si","");
$tpl->set('{in_chat}', "");
}
///////////////////////////////////
/// пїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅ Allnews
///////////////////////////////////
if ($setmx['allow_allnews'] == "yes" ) {
$result_category = $db->query("SELECT alt_name FROM ".PREFIX."_category WHERE id='".$row['category']."'");
$name_category = $db->get_row($result_category);
if ($config['allow_alt_url'] == "yes")
{
$tpl->set('{allnews}', "".$config['http_home_url']."allnews/".$name_category['alt_name']."/");
}
else
{
$tpl->set('{allnews}', "".$config['http_home_url']."index.php?do=allnews&category=".$name_category['alt_name']."");
}
if ($config['allow_alt_url'] == "yes")
{
$tpl->set('{allnews}', "".$config['http_home_url']."news_pol/".$name_category['alt_name']."/");
}
else
{
$tpl->set('{allnews}', "".$config['http_home_url']."index.php?do=news_pol&category=".$name_category['alt_name']."");
}
$tpl->set('[allnews]', "");
$tpl->set('[/allnews]', "");
} else {
$tpl->set_block("'\\[allnews\\](.*?)\\[/allnews\\]'si",""); $tpl->set('{allnews}', "");
}
///////////////////////////////////
/// пїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅ Allnews
///////////////////////////////////
if ($setmx['allow_threenews'] == "yes") {
if ($setmx['allow_threenews1'] == "yes") {
$tpl->set ( '{top-news}', $top_news );
$tpl->set ( '[top-news]', "" );
$tpl->set ( '[/top-news]', "" );
} else {
$tpl->set_block("'\\[top-news\\](.*?)\\[/top-news\\]'si","");
$tpl->set('{top-news}', "");
}
if ($setmx['allow_threenews2'] == "yes") {
$tpl->set ( '{last-news}', $last_news );
$tpl->set ( '[last-news]', "" );
$tpl->set ( '[/last-news]', "" );
} else {
$tpl->set_block("'\\[last-news\\](.*?)\\[/last-news\\]'si","");
$tpl->set('{last-news}', "");
}
if ($setmx['allow_threenews3'] == "yes") {
$tpl->set ( '{rand-news}', $rand_news );
$tpl->set ( '[rand-news]', "" );
$tpl->set ( '[/rand-news]', "" );
} else {
$tpl->set_block("'\\[rand-news\\](.*?)\\[/rand-news\\]'si","");
$tpl->set('{top-news}', "");
}
} else {
$tpl->set_block("'\\[top-news\\](.*?)\\[/top-news\\]'si","");
$tpl->set_block("'\\[last-news\\](.*?)\\[/last-news\\]'si","");
$tpl->set_block("'\\[rand-news\\](.*?)\\[/rand-news\\]'si","");
$tpl->set ( '{top-news}', "" );
$tpl->set ( '{last-news}', "" );
$tpl->set ( '{rand-news}', "" );
}
$tpl->set('{popup}',$popup);
// пїЅпїЅпїЅпїЅпїЅпїЅ Files
// require_once ROOT_DIR.'/engine/modules/files/newfiles.php';
// $tpl->set('{newfiles}',$newfiles);
// require_once ROOT_DIR.'/engine/modules/files/top_downloads_files.php';
// $tpl->set('{top_downloads_files}',$newfiles);
// пїЅпїЅпїЅпїЅпїЅпїЅ Files
if ($setmx['allow_allnews'] == "yes" ) {
$tpl->set('[allnews]', "");
$tpl->set('[/allnews]', "");
} else {
$tpl->set_block("'\\[allnews\\](.*?)\\[/allnews\\]'si",""); $tpl->set('{allnews}', "");
}
if ($setmx['allow_jokes'] == "yes") { $tpl->set ( '{jokes}', $jokes ); $tpl->set('[jokes]', ""); $tpl->set('[/jokes]', ""); }
else { $tpl->set_block("'\\[jokes\\](.*?)\\[/jokes\\]'si",""); $tpl->set('{jokes}', ""); }
// $tpl->set('{block_online}', block_online());
if( $setmx['dle_vs_ipb'] == "yes" ) { if ($dle_ipb_conf['allow_birthday_block'] == "1") { $tpl->set('{birthday_block}', birthday_user_forum()); $tpl->set('[birthday]', ""); $tpl->set('[/birthday]', ""); }
else { $tpl->set_block("'\\[birthday\\](.*?)\\[/birthday\\]'si",""); $tpl->set('{birthday_block}', ""); } $tpl->set('{last_post_on_forum}', last_forum_posts()); } else{ $tpl->set('{last_post_on_forum}', ""); $tpl->set_block("'\\[birthday\\](.*?)\\[/birthday\\]'si",""); $tpl->set('{birthday_block}', ""); }
if ($setmx['allow_upview'] == "yes") { $tpl->set('{upview_block}', $tpl->result['upview_block']); $tpl->set('[upview_block]', ""); $tpl->set('[/upview_block]', ""); }
else { $tpl->set_block("'\\[upview_block\\](.*?)\\[/upview_block\\]'si",""); $tpl->set('{upview_block}', "" ); }
if ($setmx['allow_gismeteo'] == "yes") { $tpl->set('{gismeteo}', $tpl->result['gismeteo']); $tpl->set('[gismeteo]', ""); $tpl->set('[/gismeteo]', ""); }
else { $tpl->set_block("'\\[gismeteo\\](.*?)\\[/gismeteo\\]'si",""); $tpl->set('{gismeteo}', "" ); }
if ($setmx['allow_siteinfo'] == "yes") { $tpl->set ( '{siteinfo}', $siteinfo ); $tpl->set('[siteinfo]', ""); $tpl->set('[/siteinfo]', ""); }
else { $tpl->set_block("'\\[siteinfo\\](.*?)\\[/siteinfo\\]'si",""); $tpl->set('{siteinfo}', "" ); }
if ($setmx['allow_linklogo'] == "yes") { $tpl->set('{linklogo}',$linklogo); $tpl->set('[linklogo]', ""); $tpl->set('[/linklogo]', ""); }
else { $tpl->set_block("'\\[linklogo\\](.*?)\\[/linklogo\\]'si",""); $tpl->set('{linklogo}', ""); }
if ($config['allow_calendar'] == "yes") { $tpl->set ( '{calendar}', $tpl->result['calendar'] ); $tpl->set('[calendar]', ""); $tpl->set('[/calendar]', ""); }
else { $tpl->set_block("'\\[calendar\\](.*?)\\[/calendar\\]'si",""); $tpl->set('{calendar}', ""); }
if ($config['allow_archives'] == "yes") { $tpl->set ( '{archives}', $tpl->result['archive'] ); $tpl->set('[archives]', ""); $tpl->set('[/archives]', ""); }
else { $tpl->set_block("'\\[archives\\](.*?)\\[/archives\\]'si",""); $tpl->set('{archives}', ""); }
if ($config['allow_tags'] == "1") { $tpl->set ( '{tags}', $tpl->result['tags_cloud'] ); $tpl->set('[tags]', ""); $tpl->set('[/tags]', ""); }
else { $tpl->set_block("'\\[tags\\](.*?)\\[/tags\\]'si",""); $tpl->set('{tags}', ""); }
if ($config['allow_votes'] == "yes") { $tpl->set ( '{vote}', $tpl->result['vote'] ); $tpl->set('[vote]', ""); $tpl->set('[/vote]', ""); }
else { $tpl->set_block("'\\[vote\\](.*?)\\[/vote\\]'si",""); $tpl->set('{vote}', ""); }
if ($config['allow_votes'] == "yes") { $tpl->set ( '{vote}', $tpl->result['vote'] ); $tpl->set('[vote]', ""); $tpl->set('[/vote]', ""); }
else { $tpl->set_block("'\\[vote\\](.*?)\\[/vote\\]'si",""); $tpl->set('{vote}', ""); }
if ($config['allow_topnews'] == "yes") { $tpl->set ( '{topnews}', $topnews ); $tpl->set('[topnews]', ""); $tpl->set('[/topnews]', ""); }
else { $tpl->set_block("'\\[topnews\\](.*?)\\[/topnews\\]'si",""); $tpl->set('{topnews}', ""); }
$tpl->set ( '{login}', $login_panel );
$tpl->set ( '{info}', "<span id='dle-info'>" . $tpl->result['info'] . "</span>" );
$tpl->set ( '{speedbar}', $tpl->result['speedbar'] );
$tpl->set(‘{SLINKS}’, $sape->return_links());
$tpl->set ( '{footer}', $setmx['footer'] );
$tpl->set ( '{base}', $config['http_home_url'] );
$tpl->set ( '{title}', $config['home_title'] );
$tpl->set ( '{stats}', "<!-- Stats -->" );
// пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅ
if ($setmx['allow_category'] == "yes") { $tpl->set ( '{catlist}', $catlist ); $tpl->set('[catlist]', ""); $tpl->set('[/catlist]', ""); }
else { $tpl->set_block("'\\[catlist\\](.*?)\\[/catlist\\]'si",""); $tpl->set('{catlist}', ""); }
if ($setmx['allow_online'] == "yes") { $tpl->set( '{online}', $tpl->result['online']); $tpl->set('[online]', ""); $tpl->set('[/online]', ""); }
else { $tpl->set_block("'\\[online\\](.*?)\\[/online\\]'si",""); $tpl->set('{online}', ""); }
if ($setmx['allow_friend'] == "yes") { $tpl->set ( '{friend}', $friend ); $tpl->set('[friend]', ""); $tpl->set('[/friend]', ""); }
else { $tpl->set_block("'\\[friend\\](.*?)\\[/friend\\]'si",""); $tpl->set('{friend}', ""); }
if ($setmx['allow_lastcomm'] == "yes") { $tpl->set('{lastcommb}',$lastcommb); $tpl->set('[lastcommb]', ""); $tpl->set('[/lastcommb]', ""); }
else { $tpl->set_block("'\\[lastcommb\\](.*?)\\[/lastcommb\\]'si",""); $tpl->set('{lastcommb}', ""); }
if ($setmx['allow_toplist'] == "yes") { $tpl->set('{toplist}',$tpl->result['topitems']); $tpl->set('[toplist]', ""); $tpl->set('[/toplist]', "");
} else { $tpl->set_block("'\\[toplist\\](.*?)\\[/toplist\\]'si",""); $tpl->set('{toplist}', ""); }
if ($setmx['allow_minichat'] == "yes") { $tpl->set ( '{minichat}', $tpl->result['minichat'] ); $tpl->set('[minichat]', ""); $tpl->set('[/minichat]', ""); }
else { $tpl->set_block("'\\[minichat\\](.*?)\\[/minichat\\]'si",""); $tpl->set('{minichat}', ""); }
if ($setmx['allow_referer'] == "yes") { $tpl->set('{referer}', $tpl->result['referer']); $tpl->set('[referer]', ""); $tpl->set('[/referer]', ""); }
else { $tpl->set_block("'\\[referer\\](.*?)\\[/referer\\]'si",""); $tpl->set('{referer}', ""); }
if ($setmx['allow_topmenu'] == "yes") { $tpl->set ( '{topmenu}', $topmenu ); $tpl->set('[topmenu]', ""); $tpl->set('[/topmenu]', ""); }
else { $tpl->set_block("'\\[topmenu\\](.*?)\\[/topmenu\\]'si",""); $tpl->set('{topmenu}', ""); }
if ($setmx['allow_lastusers'] == "yes") { $tpl->set('{lastusers}', $lastusers); $tpl->set('[lastusers]', ""); $tpl->set('[/lastusers]', ""); }
else { $tpl->set_block("'\\[lastusers\\](.*?)\\[/lastusers\\]'si",""); $tpl->set('{lastusers}', ""); }
if ($setmx['allow_topum'] == "1") { $tpl->set("{topum_news}", $Topum_news); $tpl->set('[topum_news]', ""); $tpl->set('[/topum_news]', ""); }
else { $tpl->set_block("'\\[topum_news\\](.*?)\\[/topum_news\\]'si",""); $tpl->set('{topum_news}', ""); }
if ($setmx['allow_topum_comm'] == "1") { $tpl->set("{topum_com}", $Topum_com); $tpl->set('[topum_com]', ""); $tpl->set('[/topum_com]', ""); }
else { $tpl->set_block("'\\[topum_com\\](.*?)\\[/topum_com\\]'si",""); $tpl->set('{topum_com}', ""); }
if ($setmx['allow_ourteam'] == "yes") { $tpl->set ( '{ourteam}', $ourteam ); $tpl->set('[ourteam]', ""); $tpl->set('[/ourteam]', ""); }
else { $tpl->set_block("'\\[ourteam\\](.*?)\\[/ourteam\\]'si",""); $tpl->set('{ourteam}', ""); }
$tpl->set ( '{bd}', $db->query_num );
$tpl->set ( '{bd-time}', round ( $db->MySQL_time_taken, 5 ) );
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
<script language="javascript" 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_skin = '{$config['skin']}';
var dle_wysiwyg = '{$config['allow_comments_wysiwyg']}';
var quick_wysiwyg = '{$config['allow_quick_wysiwyg']}';
var menu_short = '{$lang['menu_short']}';
var menu_full = '{$lang['menu_full']}';
var menu_profile = '{$lang['menu_profile']}';
var menu_fnews = '{$lang['menu_fnews']}';
var menu_fcomments = '{$lang['menu_fcomments']}';
var menu_send = '{$lang['menu_send']}';
var menu_uedit = '{$lang['menu_uedit']}';
var dle_req_field = '{$lang['comm_req_f']}';
var dle_del_agree = '{$lang['news_delcom']}';
var dle_del_news = '{$lang['news_delnews']}';\n
HTML;
if ($user_group[$member_id['user_group']]['allow_all_edit']) {
$ajax .= <<<HTML
var allow_dle_delete_news = true;\n
HTML;
} else {
$ajax .= <<<HTML
var dle_login_hash = '';
var allow_dle_delete_news = false;\n
HTML;
}
$ajax .= <<<HTML
//-->
</script>
<script type="text/javascript" src="{$config['http_home_url']}engine/ajax/menu.js"></script>
<script type="text/javascript" src="{$config['http_home_url']}engine/ajax/dle_ajax.js"></script>
<div id="loading-layer" style="display:none;font-family: Verdana;font-size: 11px;width:200px;height:50px;background:#FFF;padding:10px;text-align:center;border:1px solid #000"><div style="font-weight:bold" id="loading-layer-text">{$lang['ajax_info']}</div><br /><img src="{$config['http_home_url']}engine/ajax/loading.gif" border="0" alt="" /></div>
<div id="busy_layer" style="visibility: hidden; display: block; position: absolute; left: 0px; top: 0px; width: 100%; height: 100%; background-color: gray; opacity: 0.1; -ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=10)'; filter:progid:DXImageTransform.Microsoft.Alpha(opacity=10); "></div>
<script type="text/javascript" src="{$config['http_home_url']}engine/ajax/js_edit.js"></script>
<script type="text/javascript" src="{$config['http_home_url']}engine/ajax/files/js_edit_files.js"></script>
<script type="text/javascript" src="{$config['http_home_url']}engine/ajax/seo_js.js"></script>
HTML;
if( $setmx['allow_rewards'] == "yes" ){
$ajax .= <<<HTML
<script language="JavaScript" src="{$config['http_home_url']}engine/skins/tooltip.js"></script>
HTML;
}
if ($allow_comments_ajax AND ($config['allow_comments_wysiwyg'] == "yes" OR $config['allow_quick_wysiwyg'])) $ajax .= <<<HTML
<script type="text/javascript" src="{$config['http_home_url']}engine/editor/jscripts/tiny_mce/tiny_mce.js"></script>
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 .= <<<HTML
<script type="text/javascript" src="{$config['http_home_url']}engine/classes/highslide/highslide{$hs_prefix}.js"></script>
<script type="text/javascript">
hs.graphicsDir = '{$config['http_home_url']}engine/classes/highslide/graphics/';
hs.outlineType = 'rounded-white';
hs.numberOfImagesToPreload = 0;
hs.showCredits = false;
hs.lang = {
loadingText : '{$lang['loading']}',
fullExpandTitle : '{$lang['thumb_expandtitle']}',
restoreTitle : '{$lang['thumb_restore']}',
focusTitle : '{$lang['thumb_focustitle']}',
loadingTitle : '{$lang['thumb_cancel']}'
};
</script>
{$pm_alert}
HTML;
}
$tpl->set ( '{AJAX}', $ajax );
$tpl->set ( '{headers}', $metatags );
$tpl->set ( '{content}', "<div id='dle-content'>" . $tpl->result['content'] . "</div>" );
$tpl->set ( '{THEME}', $config['http_home_url'] . 'templates/' . $config['skin'] );
$tpl->set( '{pages}', "" );
$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 ();
GzipOut ();
if ( $config['optimizer'] == "yes" ) { $web_optimizer->finish(); }
?>
И призахо на сайт просто белая страница