LoadTemplate('modules/'.$action.'.tpl'); $show_module_template = true; break; default: $tpl->LoadTemplate('main.tpl'); /*if ($main_page) { $tpl->LoadTemplate('main.tpl'); } else { $tpl->LoadTemplate('second.tpl'); }*/ } //echo load_curs(); всплыващий див авторизации, не доделан $login_popup = <<
 
 

Закрыть

Авторизация

Логин:

Пароль:

Забыли пароль'
 
 
HTML; $phone = ($config['globalPhone']) ? strip(preg_replace("/([\(\d\-\ \+]+\))? ?([\d\-\ ]+)/i","$1 $2",$config['globalPhone'])) : ''; $email = ($config['globalMail']) ? hlstrip($config['globalMail']) : ''; ##system $tpl->Set('{headers}', $head); $tpl->Set('{box}', $box.$whos_result); $tpl->Set('{content}', $content); if (!$show_module_template){ $tpl->Set('{address}', strip($config['globalAddress'])); $tpl->Set('{phone}', $phone); $tpl->Set('{sTitle}', hlstrip($config['sTitle'])); $tpl->Set('{email}', crypt_email($email)); $tpl->Set('{main_menu}', $main_menu); $tpl->Set('{bottom-menu}', $main_bot_menu); $tpl->Set('{catalog-menu}', $catalog_menu); $tpl->Set('{login_popup}', ($uc->is_logged and $user['ID']>0)? '': $login_popup); $tpl->Set('{banners}', $banners); $tpl->Set('{news_block}', '
Новости
'.$news_block); $tpl->Set('{order_list}', $order_list? $order_list: ''); $tpl->Set('{oneclick}', $oneclick_form); $tpl->Set('{nav_line}', $nav_line); $tpl->Set('{basket}', $basket_div); $tpl->Set('{footer}', $config['sMainT']?strip($config['sMainT']):''); ##other $tpl->Set('{counters}', ($config['sCounters']?'

'.$config['sCounters'].'

':'')); } $tpl->Set('', '
]]>
'); $tpl->Set('
', '
]]>
'); $tpl->compile('main_page'); echo $tpl->result['main_page']; if (isset($_GET['stat'])) echo SiteStat(1); $tpl->GlobalClear(); ?>