isMobile() && !$_GET['p']) { header("Location: /m.php"); exit(); } */ $p = strip_tags(addslashes($_GET['p'])); if(!strip_tags(addslashes($_GET['lang']))) { define(__LANG__,"cz"); } else { define(__LANG__,strip_tags(addslashes($_GET['lang']))); } require_once("./skripty/db_connect.php"); require_once("./skripty/funkce.php"); globalni_pr(); if(!$p) { // str uvodni stranky $p = 'uvod'; } if(@in_array($p, array_flip($menu_db))) { // pokud se jedna o stranku ze staticky stranek a ma vyplneny potrebne udaje, nahradime slogan, title a keywords $menu_seo = MySQL_Query("SELECT title, description, keywords, bg_img, text_do_pozadi FROM stranky WHERE str='".addslashes($p)."'"); $row_seo = MySQL_fetch_object($menu_seo); } if($p=='novinky' && $_GET['idn']) { $menu_seo_n = MySQL_Query("SELECT title, description, keywords FROM aktuality WHERE id='".intval($_GET['idn'])."'"); $row_seo_n = MySQL_fetch_object($menu_seo_n); } if($p=='produkty' && $_GET['skupina'] && !$_GET['podskupina'] && !$_GET['idp']) { $menu_seo_k = MySQL_Query("SELECT title, description, keywords FROM kategorie WHERE str='".addslashes($_GET['skupina'])."'"); $row_seo_k = MySQL_fetch_object($menu_seo_k); } if($p=='produkty' && $_GET['skupina'] && $_GET['podskupina'] && !$_GET['idp']) { $menu_seo_pk = MySQL_Query("SELECT title, description, keywords FROM podkategorie WHERE str='".addslashes($_GET['podskupina'])."'"); $row_seo_pk = MySQL_fetch_object($menu_seo_pk); } ?> <? if($row_seo->title) { echo stripslashes($row_seo->title); } elseif($p=='novinky' && $_GET['idn'] && $row_seo_n->title) { echo stripslashes($row_seo_n->title); } elseif($p=='produkty' && $_GET['skupina'] && !$_GET['podskupina'] && !$_GET['idp'] && $row_seo_k->title) { echo stripslashes($row_seo_k->title); } elseif($p=='produkty' && $_GET['skupina'] && $_GET['podskupina'] && !$_GET['idp'] && $row_seo_pk->title) { echo stripslashes($row_seo_pk->title); } else { get_title_header($p,$menu_all); echo " | ".__TITLE__; } ?> '; if(__FFWIN__ ) { //echo ''; echo ''; } } else { echo ' '; if(__IE__) { echo ''; } } ?> '; if(!strstr($_SERVER['HTTP_USER_AGENT'],"W3C_Validator")) { ?> >