$v){ $pole[$ind] = HTMLSpecialChars($pole[$ind]); $pole[$ind] = addslashes ($pole[$ind]); } } foreach($_POST as $ind => $v){ if($_POST[$ind]<>$_POST[xhtml1])$_POST[$ind] = @HTMLSpecialChars($_POST[$ind]); $_POST[$ind] = @addslashes($_POST[$ind]); $index=1; } foreach($_GET as $ind => $v){ $_GET[$ind] = @HTMLSpecialChars($_GET[$ind]); $_GET[$ind] = @addslashes($_GET[$ind]); } include './connect.php'; include './inc/fce.php'; include './admin/framework/core.php'; parser($_GET[url],$server); parse_Str($_SERVER[REDIRECT_QUERY_STRING]); //parsovani promenych za otaznikem if(!empty($_GET[lang]))$lang = $_GET[lang]; $langid = $lang; //nastaveni $sqlnast = mysql_query("SELECT title, keywords, description FROM rs_nastaveni WHERE lang='$langid' LIMIT 1"); $nast = mysql_fetch_array($sqlnast); $dotaz=mysql_query("SELECT title, keywords, description FROM rs_menu WHERE id='$clanek_id' LIMIT 1"); $data=mysql_fetch_array($dotaz); //vyber keywords, title a description z DB pro jednotlive clanky if (!empty($data[title])){ $nast_title = $data[title]; }else {$nast_title = $title_nadpis.' : '.$nast[title];} if (!empty($data[keywords])){ $nast_keywords = $data[keywords]; }else {$nast_keywords = $nast[keywords];} if (!empty($data[title])){ $nast_description = $data[description]; }else {$nast_description = $nast[description];} ?>
/'; $codeReg='//'; $mp3Reg='//'; preg_match_all($markerReg,$clanek_obsah,$galleries); preg_match_all($codeReg,$clanek_obsah,$codes); preg_match_all($mp3Reg,$clanek_obsah,$mp3s); // NOVY SPUSOB GALERIE - manWe 03/2010 if (is_array($galleries)){ $x=0; foreach ($galleries[1] as $gallery) { if (!empty($gallery)) { $galMarkerArray[$x]=''; $galleryArray[$x]=fotogalerie($gallery,$str,'',1); $x++; } } } $clanek_obsah=str_replace($galMarkerArray,$galleryArray,$clanek_obsah); // // PREPIS KODU z PLUG_CODES - manWe 03/2010 if (is_array($codes)){ $x=0; foreach ($codes[1] as $code){ if (!empty($code)){ $codeMarkerArray[$x]=''; $codeData=mysql_fetch_array(mysql_query("SELECT obsah FROM plug_code WHERE id='$code' LIMIT 1")); $codeArray[$x]=html_entity_decode($codeData[obsah]); $x++; } } } $clanek_obsah=str_replace($codeMarkerArray,$codeArray,$clanek_obsah); // // mp3 player - manWe 03/2010 if (is_array($mp3s)){ $x=0; foreach ($mp3s[1] as $mp3){ if (!empty($mp3)){ $mp3MarkerArray[$x]=''; $mp3Data=mysql_fetch_array(mysql_query("SELECT url FROM plug_mp3_list WHERE id='$mp3' LIMIT 1")); $mp3array[$x]=' '; $x++; } } } $clanek_obsah=str_replace($mp3MarkerArray,$mp3array,$clanek_obsah); echo $clanek_nadpis.'

'; //$reg = '/[^\<\"]([A-Z])/'; //$repl = '\\1'; //$clanek_obsah = preg_replace($reg, $repl, $clanek_obsah); echo $clanek_obsah; if(File_Exists('./inc/file_'.$clanek_id.'.php')) include './inc/file_'.$clanek_id.'.php'; if($clanek_id != 6 && $clanek_id != 7){ echo '




'; vypis_komentaru($clanek_id); } } // je-li zadano vyhledavani tak vyhledam }else{ vyhledat($_POST[search]); } ?>