include_once('cfg/_all.php'); $flagRobot = 0; $num_slash = substr_count($_SERVER["REQUEST_URI"], "/"); if ($num_slash > 1) { header("HTTP/1.0 404 Not Found"); exit(); } $title=''; $tray = array(); // ******************* выводим страницу ***************** header ("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT +0300"); $template = new EasyTemplate("tpl/main.html"); $template->assign("BAN", Get_ban(1)); $template->assign("MENU_MAIN", make_menu_main()); if(isset($_GET['firm'])) $content = make_firm($_GET['firm']); else $content = make_category($_GET['cat']).make_catalog($_GET['cat'], $_GET['p']); $template->assign("CONTENT", '
| '.make_tray()." ".$content.' |