0) { list($id_sez, $evoca)=mysql_fetch_row($result); include _SERVERPATH."php/evoca_lingua.php"; $sezione=$evocato; $skipBlind="false"; //echo '

'.$query.'

'; } else if(mysql_num_rows($result_txtcat)>0) { list($id_cat, $evoca)=mysql_fetch_row($result_txtcat); include _SERVERPATH."php/evoca_lingua.php"; $sezione=$evocato; $prodpage=FALSE; //$fistlevcat=TRUE; } else if(mysql_num_rows($result_txt)>0) { $query="SELECT id, titolo, url FROM testi WHERE url LIKE '%{".$lang."}".$sez_url."{/".$lang."}%' AND status=1"; $result=mysql_query($query); if(mysql_num_rows($result)>0){ list($id_pag, $titolo, $url)=mysql_fetch_row($result); $evoca=$titolo; include _SERVERPATH."php/evoca_lingua.php"; $sezione=$evocato; $evoca=$url; include _SERVERPATH."php/evoca_lingua.php"; $url=$evocato; $txt_url=""; $_GET['slugTesto']=$url; //$newspage=FALSE; } else { header("HTTP/1.0 404 Not Found"); exit; } } } if($cat_url!=""){ if($id_sez!=""){ $where="AND id_sezione='$id_sez'"; } $query="SELECT id, categoria FROM testi_cat WHERE 1 ".$where." AND url LIKE '%{".$lang."}".$cat_url."{/".$lang."}%' AND status=1"; $result=mysql_query($query); //echo '

'.$query.'

'; $where=""; if($id_cat!=""){ $where="AND id_categoria='$id_cat'"; } $query_txt="SELECT id, titolo, url FROM testi WHERE 1 ".$where." AND url LIKE '%{".$lang."}".$cat_url."{/".$lang."}%' AND status=1"; $result_txt=mysql_query($query_txt); //echo '

'.$query_txt.'

'; if(mysql_num_rows($result)>0){ //, $tabs list($id_cat, $evoca)=mysql_fetch_row($result); include _SERVERPATH."php/evoca_lingua.php"; $categoria=$evocato; $skipBlind="true"; } else if(mysql_num_rows($result_txt)>0){ list($id_pag, $titolo, $url)=mysql_fetch_row($result_txt); $evoca=$titolo; include _SERVERPATH."php/evoca_lingua.php"; $categoria=$evocato; $evoca=$url; include _SERVERPATH."php/evoca_lingua.php"; $url=$evocato; $txt_url=""; $_GET['slugTesto']=$url; $skipBlind="true"; } else { header("HTTP/1.0 404 Not Found"); exit; } } /* if($tip_url!=""){ //$query="SELECT tipologia FROM testi_tip WHERE url LIKE '%{".$lingua."}".$tip_url."{/".$lingua."}%'"; $query="SELECT tipologia FROM testi_tip WHERE url LIKE '%".$tip_url."%'"; $result=mysql_query($query); if(mysql_num_rows($result)>0){ list($evoca)=mysql_fetch_row($result); include _SERVERPATH."php/evoca_lingua.php"; $tipologia=$evocato; } else { //header("HTTP/1.0 404 Not Found"); //exit; } } */ if($txt_url!=""){ $query="SELECT id, titolo FROM testi WHERE url LIKE '%{".$lang."}".$txt_url."{/".$lang."}%' AND status=1"; $result=mysql_query($query); if(mysql_num_rows($result)>0){ list($id_pag, $evoca)=mysql_fetch_row($result); include _SERVERPATH."php/evoca_lingua.php"; $pagina=$evocato; $skipBlind="true"; //echo '

'.$query.'

'; } else { header("HTTP/1.0 404 Not Found"); exit; } } ?> _X_END_TITLE