МК КПРФ поздравляет с днем рождения первого секретаря Дмитровского ГК КПРФ, первого секретаря МК ЛКСМ РФ Александра Андреевича Корнева.
load_template ( 'main.tpl' );
@require_once( ROOT_DIR . '/engine/photo/photo_nucleus/classes/informers.php' );
$inf->Printer($tpl->copy_template,'', 1);
$tpl->set ( '{calendar}', $tpl->result['calendar'] );
// ������ Files
$files = "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);
require_once ROOT_DIR.'/engine/modules/files/menu_files.php';
$tpl->set('{menu_files}',$menu_files);
$menu_files = "";
require_once ROOT_DIR.'/engine/modules/files/archives.php';
$tpl->set('{archives_files}',$files_archive);
require_once ROOT_DIR.'/engine/modules/files/block_stat.php';
$tpl->set('{block_stat}',$stats_files);
require_once ROOT_DIR.'/engine/modules/files/newfiles_bottom.php';
$tpl->set('{newfiles_bottom}',$new_bottom);
require_once ROOT_DIR.'/engine/modules/files/newfiles_pravda.php';
$tpl->set('{newfiles_pravda}',$new_pravda);
require_once ROOT_DIR.'/engine/modules/files/newfiles_gazeta_shelkovo.php';
$tpl->set('{newfiles_gazeta_shelkovo}',$new_gazeta_shelkovo);
require_once ROOT_DIR.'/engine/modules/files/newfiles_poziciya.php';
$tpl->set('{newfiles_poziciya}',$new_poziciya);
require_once ROOT_DIR.'/engine/modules/files/block_bottom.php';
$tpl->set('{block_files}',$block_files);
require_once ROOT_DIR.'/engine/modules/files/top_downloads_files_stat.php';
$tpl->set('{top_downloads_files_stat}',$newfiles);
require_once ROOT_DIR.'/engine/modules/files/top_users_loaded.php';
$tpl->set('{top_users_loaded}',$newfiles);
if ($config['allow_alt_url'] == "yes") {
$tpl->set( '{files-link}', $config['http_home_url'] . "files" );
} else {
$tpl->set( '{files-link}', $PHP_SELF . "?do=files" );
}
// ������ Files
$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'] );
if ( $dle_module == "showfull" OR ($dle_module == "files" AND $op == "download")) {
$tpl->set( '[related-news]', "" );
$tpl->set( '[/related-news]', "" );
$tpl->set( '{related-news}', $related_buffer );
} else {
$tpl->set( '{related-news}', "" );
$tpl->set_block( "'\\[related-news\\](.*?)\\[/related-news\\]'si", "" );
}
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->copy_template = str_replace ( "[banner_" . $name . "]", "", $tpl->copy_template );
$tpl->copy_template = str_replace ( "[/banner_" . $name . "]", "", $tpl->copy_template );
}
}
}
$tpl->set_block ( "'{banner_(.*?)}'si", "" );
$tpl->set_block ( "'\\[banner_(.*?)\\](.*?)\\[/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\\]'si", "" );
}
if (stripos ( $tpl->copy_template, "[category=" ) !== false) {
$tpl->copy_template = preg_replace_callback ( "#\\[(category)=(.+?)\\](.*?)\\[/category\\]#is", "check_category", $tpl->copy_template );
}
if (stripos ( $tpl->copy_template, "[not-category=" ) !== false) {
$tpl->copy_template = preg_replace_callback ( "#\\[(not-category)=(.+?)\\](.*?)\\[/not-category\\]#is", "check_category", $tpl->copy_template );
}
if (stripos ( $tpl->copy_template, "[static=" ) !== false) {
$tpl->copy_template = preg_replace_callback ( "#\\[(static)=(.+?)\\](.*?)\\[/static\\]#is", "check_static", $tpl->copy_template );
}
if (stripos ( $tpl->copy_template, "[not-static=" ) !== false) {
$tpl->copy_template = preg_replace_callback ( "#\\[(not-static)=(.+?)\\](.*?)\\[/not-static\\]#is", "check_static", $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 .= <<{$lang['ajax_info']}{$pm_alert}
HTML;
if (strpos ( $tpl->result['content'], "hs.expand" ) !== false OR strpos ( $tpl->copy_template, "hs.expand" ) !== false OR strpos ( $tpl->result['content'], "highslide" ) !== false OR strpos ( $tpl->copy_template, "highslide" ) !== false) {
if ($config['thumb_dimming']) $dimming = "hs.dimmingOpacity = 0.60;"; else $dimming = "";
if ($config['thumb_gallery'] AND ($dle_module == "showfull" OR $dle_module == "static" OR $do == "photo") ) {
$gallery = "
hs.align = 'center';
hs.transitions = ['expand', 'crossfade'];
hs.addSlideshow({
interval: 4000,
repeat: false,
useControls: true,
fixedControls: 'fit',
overlayOptions: {
opacity: .75,
position: 'bottom center',
hideOnMouseOut: true
}
});";
} else {
$gallery = "";
}
$js_array[] = "engine/classes/highslide/highslide.js";
switch ( $config['outlinetype'] ) {
case 1 :
$type = "hs.wrapperClassName = 'wide-border';";
break;
case 2 :
$type = "hs.wrapperClassName = 'borderless';";
break;
case 3 :
$type = "hs.wrapperClassName = 'less';\nhs.outlineType = null;";
break;
default :
$type = "hs.outlineType = 'rounded-white';";
break;
}
$ajax .= <<
HTML;
}
if ( $config['allow_share'] AND ($dle_module == "showfull" OR $dle_module == "static") ) {
if ( preg_match("/(msie)/i", $_SERVER['HTTP_USER_AGENT']) ) {
$js_array[] = "engine/classes/masha/ierange.js";
$js_array[] = "engine/classes/masha/masha.js";
} else $js_array[] = "engine/classes/masha/masha.js";
}
$js_array = build_js($js_array, $config);
if ($allow_comments_ajax AND ($config['allow_comments_wysiwyg'] OR $config['allow_quick_wysiwyg'])) {
$lang['wysiwyg_language'] = totranslit( $lang['wysiwyg_language'], false, false );
if ( $config['allow_quick_wysiwyg'] == "2" OR $config['allow_comments_wysiwyg'] == "2" ) {
$js_array .="\n";
}
if ( $config['allow_quick_wysiwyg'] == "1" OR $config['allow_comments_wysiwyg'] == "1" ) {
$js_array .="\n";
$js_array .="\n";
}
}
if ($config['allow_admin_wysiwyg'] == "1" OR $config['allow_site_wysiwyg'] == "1" OR $config['allow_static_wysiwyg'] == "1") {
$js_array .="\n";
$js_array .="\n";
$js_array .="\n";
}
if (strpos ( $tpl->result['content'], "";
$js_array .="\n";
}
$tpl->set ( '{AJAX}', $ajax );
$tpl->set ( '{headers}', $js_array );
$tpl->set ( '{metatags}', $metatags );
$t= $cat_info[$category_id]['name'];
$tpl->set ( '{link-category}', "$t" );
$tpl->set ( '{content}', "" );
$tpl->compile ( 'main' );
if ($config['allow_links']) include_once ENGINE_DIR . '/modules/links.php';
$tpl->result['main'] = str_ireplace( '{THEME}', $config['http_home_url'] . 'templates/' . $config['skin'], $tpl->result['main'] );
if ($replace_url) $tpl->result['main'] = str_replace ( $replace_url[0]."/", $replace_url[1]."/", $tpl->result['main'] );
$tpl->result['main'] = str_replace ( '

result['main'] );
echo $tpl->result['main'];
$tpl->global_clear ();
$db->close ();
GzipOut();
?>