include ("mysql.php"); //----------------------------------------------- if (mysql_connect($host,$user,$password)) {} mysql_query("SET NAMES utf8"); //----------------------------------------------- $Codi_cat=$_REQUEST["cat"]; $Codi_sub=$_REQUEST["sub"]; if($Codi_cat=="")$Codi_cat=16; $Idiomas["es"]=1; $Idiomas["en"]=2; $Idiomas["de"]=3; $Idiomas["fr"]=4; $Idiomas["ca"]=5; //----------------------------------------------------------------------------------------------------------------- include("inc/idiomas.php"); if ($_REQUEST["lng"]=="") $_REQUEST["lng"]="es"; if ($_POST['lng'] != '') $_REQUEST["lng"] = $_POST['lng']; if ($_REQUEST["cat"]=="") $_REQUEST["cat"]="16"; if ($_REQUEST["sub"]==""){ $qnot1="select Codnot from Noticia where Cod_categoria=$Codi_cat order by Orden"; $Codi_sub=mysql_result(mysql_db_query($db,$qnot1),0,0); } $Idi=$Idiomas[$_REQUEST["lng"]]; $Idi--; //echo $Idi; $URL_ACTUAL["es"]=$URL_seo[$_REQUEST["cat"]][$_REQUEST["sub"]]["es"]; $URL_ACTUAL["en"]=$URL_seo[$_REQUEST["cat"]][$_REQUEST["sub"]]["en"]; $URL_ACTUAL["ca"]=$URL_seo[$_REQUEST["cat"]][$_REQUEST["sub"]]["ca"]; $URL_ACTUAL["de"]=$URL_seo[$_REQUEST["cat"]][$_REQUEST["sub"]]["de"]; $URL_ACTUAL["fr"]=$URL_seo[$_REQUEST["cat"]][$_REQUEST["sub"]]["fr"]; ?>