template_dir = "templates/"; $smarty->compile_dir ='smartowanie/templates_c/'; $smarty->config_dir = 'smartowanie/configs/'; $smarty->cache_dir = 'smartowanie/cache/'; include ("admin/config.php"); include ("admin/moduly/m_db-connect.php"); session_start(); include ("admin/moduly/m_lang-sesion.php"); $Id = $_GET['Id']; $Action = $_GET['Action']; $Mode = $_GET['Mode']; $Submode = $_GET['Submode']; $Module = $_GET['Module']; $Param = $_GET['Param']; $Param2 = $_GET['Param2']; $FileName = "templates/serwis.".$Language.".".$Id.".tpl"; if (!(file_exists($FileName))) { $Id = "glowna"; $Action = ""; $Mode = ""; $Submode = ""; } ///////////////////////////////////////////////////////////ZAWSZE include ("moduly/start/m_page-list.php"); include ("moduly/start/m_main-get.php"); include ("moduly/news/m_news-list.php"); include ("moduly/news/m_news_category-list.php"); //////////////////////////////////////////////////////PODSTRONA if ($Id == 'podstrona') { include ("moduly/start/m_page-get.php"); } //////////////////////////////////////////////////////lista aktualnosci if ($Id == 'aktualnosci') {include ("moduly/news/m_news-get.php");} if ($Id == 'aktualnosci' && $Mode =='kat') {include ("moduly/news/m_news_category-get.php");} if ($Id == 'aktualnosci' && $Mode == 'archiwum') { $smarty->assign("title", "Blog kulinarny, przepisy, recenzje - Archiwum wpisów | Blog ArtSystem"); $smarty->assign("description", "Archiwum wpisów bloga kulinarnego ArtSystem. Przepisy kulinarne, opinie o sprzęcie gastronomicznym, twórcy smaku. Klucz do sukcesu dobrego i zdrowego gotowania."); } //////////////////////////////////////////////////////GALERIA //listing gallerii lub pokaz galerii if ($Id == 'galeria' || $Id == 'galeriapokaz') {include ("moduly/gallery/m_gallery-list.php"); } /////////////////////////////////////////////////////NEWSLETTER //dodawanie nowego użytkownika newslettera if ($Action == 'user-add') {include ("moduly/newsletter/m_user-add.php");} //aktywowwanie użytkownika newslettera if ($Action == 'user-activ') {include ("moduly/newsletter/m_user-activ.php");} //Data aktualizacji strony $date_today = date("Y-m-d"); $smarty->assign("rezultat",$rezultat); $smarty->assign("Language",$Language); $smarty->assign("Id",$Id); $smarty->assign("Action",$Action); $smarty->assign("Module", $Module); $smarty->assign("Mode",$Mode); $smarty->assign("Submode",$Submode); $smarty->assign("Warning",$Warning); $smarty->assign("Zmienna1", $Zmienna1); $smarty->assign("Zmienna2", $Zmienna2); $smarty->assign("Zmienna3", $Zmienna3); $smarty->assign("rezultat", $rezultat); $smarty->assign("date_today",$date_today); $smarty->assign("host", HOST); if ($Id == 'rss') { header('Content-type: application/xml; charset="utf-8"'); $smarty->display("serwis.".$Language.".".$Id.".tpl"); } elseif ($Id == 'mapa') { header('Content-type: application/xml; charset="utf-8"'); $smarty->display("serwis.".$Language.".".$Id.".tpl"); } elseif ($Id == 'webservice') { header('Content-type: application/xml; charset="utf-8"'); $smarty->display("serwis.".$Language.".".$Id.".tpl"); } else { $smarty->display("serwis.".$Language.".szkielet.tpl"); } ?>