require("../conf/db.php");
$link = mysql_connect($host,$user,$password);
?>
Retour";
echo "Administration - Liens ŕ vérifier
";
echo "
";
echo "";
$requeteliens=mysql_db_query($base,"select nomsite, url, id, cat1 from ".$basesites." order by nomsite",$link);
$numliens=mysql_num_rows($requeteliens);
if ($numliens==0)
{
echo "Tous les sites sont valides.";
}
else
{
while ( $nliens<$numliens )
{
$nomsite = mysql_result($requeteliens,$nliens,"nomsite");
$id = mysql_result($requeteliens,$nliens,"id");
$url = mysql_result($requeteliens,$nliens,"url");
$cat = mysql_result($requeteliens,$nliens,"cat1");
if(checkurl($url)==false)
{
$requetevalid=mysql_db_query($base,"update ".$basesites." set valid=0 where id=".$id."",$link);
echo "- ".$nomsite." - [Voir dans l'annuaire]";
}
$nliens++;
}
}
?>