load("mainbm"); error_reporting(0); $menu_g=" О предприятии Продукция Новости ФотоархивПартнеры Контакты"; $content="
Новости

"; $tab4="
"; mysql_connect('localhost','scb','Kf,155'); mysql_select_db('polis'); $qu="select * from new order by id desc"; $re=mysql_query($qu); for ($i=0; $i"; $tab2="".$mass['title'].""; $tab3="".$mass['intro_text']."

"; $content=$content.$tab1.$tab2.$tab3; } $content=$content.$tab4; $title="Новости"; $meta="Новости"; $useragent = $_SERVER["HTTP_USER_AGENT"]; $ip = $_SERVER["REMOTE_ADDR"]; $url = $_SERVER["REQUEST_URI"]; $refer = $_SERVER["HTTP_REFERER"]; $now = time(); mysql_query("INSERT INTO stat VALUES (0, '$now', '$ip', '$url', '$refer', '$useragent', '8')"); header ("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); eval("print \"".$tpl->get("mainbm")."\";"); ?>