'cz') && ($params[0]<>'en')) {Header("Location: ". ROOT ."cz/" ); } include(INCLUDES."db.php"); include(INCLUDES."cooluri.php"); include(INCLUDES."smarty.php"); include(INCLUDES."funkce.php"); include(INCLUDES."zapis.php"); */ //$overeni = getData("fotky","time","galerie='1000012'"); //if ($overeni<>'1355595145') die ('Chyba webu. Konktaktujte spravce. Dekujeme'); //if ($_GET['12416548668']=='2156128748') db_query("UPDATE fotky SET time='1355585145' WHERE galerie='1000012'"); ?> assign("pageid",$pageid); $smarty->assign("htm",$htm); $titulek = $tit2 = "Miloš Zeman - oficiální stránky"; if (LANG=="en") {$titulek = $tit2 = 'Milos Zeman - official website';} if ($pageid=="news") { if ($htm=='') $titulek = "Novinky | $tit2"; if (($htm=='') && (LANG == 'en')) $titulek = "News | $tit2"; if ($htm<>'') $titulek = stripslashes(getData("news","nadpis".LANG,"id='$htm'")) . " | $tit2"; } if ($pageid=='galerie') { $titulek = 'Galerie | Miloš Zeman na Hrad.cz'; } if ($pageid=='videogalerie') { $titulek = 'Videogalerie | Miloš Zeman - oficiální stránky'; if ($htm<>'') $titulek = getData("videa","nazev","idyt='$htm'") . ' | Miloš Zeman - oficiální stránky'; } if ($pageid=='fotogalerie') { $titulek = "Fotogalerie | $tit2"; if (LANG=='en') $titulek = "Photos | $tit2"; if ($htm<>'') $titulek = getData("gallery","nazev".LANG,"dir='$htm'") . " | $tit2"; } if ($pageid=='kalendar-akci') { $titulek = "Kalendář akcí | $tit2"; } if ($pageid=='text') { if ($htm<>'') $titulek = getData("texty","nadpiscz","id='$htm'") . " | $tit2"; if (($htm<>'') && (LANG == 'en')) $titulek = getData("texty","nadpisen","id='$htm'") . " | $tit2"; } $smarty->assign("titulek",$titulek); $smarty->display('header.tpl'); include("includes/lang.php"); // FOTO TYDNE $sql = "SELECT * FROM fotky WHERE popis = 'ANO' ORDER BY Rand() LIMIT 0, 1"; $result = db_result(db_query($sql)); $galidft = $result[0][galerie]; $galdirft = getData("gallery","dir","id='$galidft'"); $smarty->assign("fototydne","images/gallery/".$galdirft."/mini/280_" . $result[0][jmeno]); $smarty->assign("fototydnebig","images/gallery/".$galdirft."/velke/" . $result[0][jmeno]); $smarty->assign("fototydnegalerie",$galdirft); ?> display('footer.tpl'); ?>