assign('msg',$msg); } $safe = array('art','news','newsy','galeria','multi','main','event','gal','rezerwacja','mapa','newsletter_aktywacja','newsletter_rezygnacja','news_akt_rez','wyszukiwarka','site_map','kalendarz','wydarzenie'); if(in_array($modul = key($_GET),$safe)) { require_once("modules/$modul.php"); if(!$body_tpl) $body_tpl = "$modul.tpl"; } elseif(key($_GET) == null) { $artid = 1; require_once("modules/art.php"); $body_tpl = 'art.tpl'; } else { header("HTTP/1.0 404 Not Found"); die('404 Not Found'); } include_once('modules/header.php'); $smarty->assign('body_tpl',$body_tpl); //wyświetlaniae modułów if($header_tpl!='') $smarty->display($header_tpl); if($menu_tpl!='') $smarty->display($menu_tpl); if($body_tpl!='') $smarty->display($body_tpl); if($footer_tpl!='') $smarty->display($footer_tpl); ?>