load_template ( 'main.tpl' );
$tpl->set('{lastnews}',$lastnews);
$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'] );
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 ($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 .= <<
{$lang['ajax_info']}

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 ($config['thumb_dimming'] AND !$pm_alert) $dimming = "hs.dimmingOpacity = 0.60;"; else $dimming = "";
if ($config['thumb_gallery'] AND !$pm_alert) {
$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 = "";
}
$ajax .= <<
{$pm_alert}
HTML;
}
/* КОД САПЫ */
/* КОД САПЫ */
/* КОД САПЫ */
define('_SAPE_USER', '37178e8da616e4c7b54ca547a9851113');
require_once($_SERVER['DOCUMENT_ROOT'].'/'._SAPE_USER.'/sape.php');
$o['host'] = 'theemergencyservicesshow2008.com';
$sape = new SAPE_client();
$tpl->set('{links1}', $sape->return_links(1));
$tpl->set('{links2}', $sape->return_links(3));
$tpl->set('{links}', $sape->return_links());
/* КОД САПЫ */
/* КОД САПЫ */
/* КОД САПЫ */
$tpl->set ( '{AJAX}', $ajax );
$tpl->set ( '{headers}', $metatags );
$tpl->set ( '{content}', "" . $tpl->result['content'] . "
" );
$tpl->compile ( 'main' );
$tpl->result['main'] = str_replace ( '{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'] );
echo $tpl->result['main'];
$tpl->global_clear ();
$db->close ();
echo "\n\r\n";
GzipOut ();
?>