# EDIT THIS VAR, WHERE THE liens.txt IS ...
$fichier = "/home/tfe/.xchat2/liens.txt";
$fb = fopen($fichier,"r");
$contenu = fread($fb,filesize($fichier));
$contenu = split("\n",$contenu);
$id = 0;
$contenu = array_reverse($contenu);
foreach ($contenu as $full)
{
$url = split(" ",$full);
$nombre = count($url);
++$id;
echo "
$url[0] ($nombre liens)
";
if ($query[1] and $id == $query[1])
{
echo "
";
foreach($url as $key) { echo "$key
"; }
echo "
";
}
}
?>