'; } //rub $SHRUB = mysql_fetch_array(mysql_query("SELECT id_rubrique FROM rubrique WHERE permalien = '$perma' AND langue = '$l' ")); if($Myidrub == ""){ $Myidrub = $SHRUB['id_rubrique']; if($Type == ""){$Type = "rubrique";} } //template if($SHPAGE['module_url'] !=""){$Template = $SHPAGE['module_url']; break;} } // Cannonical $canonical = permapage($Myid,$Myidrub,$l); $called_url = "http://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; //test et redirection: //cannonical OK >> 301 /**/ if($cannonical!="" and $cannonical != $called_url){ header('Status: 301 Moved Permanently', false, 301); header('Location: '.$canonical); } //load header $zone="header"; include($Template); /* echo "Myid = ".$Myid."
"; echo "Type = ".$Type."
"; echo "Myidrub = ".$Myidrub."
"; echo "Template = ".$Template."
"; echo "Cannonical = ".$canonical."
"; echo "Called_url = ".$called_url."
"; */ ?> <?php echo stripslashes($meta_title); ?>