Index du Forum » » Sécurité

Auteur

lecture forum réservé
leloup31
1994       
 

  Posté : 06-10-2006 07:32

Tout à fait boris. Sitemap.php c'est pour notre amis google.

Il faudrais que le code n'affiche pas les forums réservés a certains groupes (2 et 10 pour moi)



function map_forum()
{
    global $nuke_url, $priority_forum, $nburl;
    $result = mysql_query("SELECT topic_id, forum_id FROM forumtopics");
    while (list($topic_id, $forum_id) = mysql_fetch_row($result))
    {
        echo "<url>\n";
        echo "<loc>".$nuke_url."/viewtopic.php?topic=".$topic_id."&forum=".$forum_ id."</loc>\n";
        echo "<lastmod>".date("Y-m-d")."</lastmod>\n";
        echo "<changefreq>weekly</changefreq>\n";
        echo "<priority>".$priority_forum."</priority>\n";
        echo "</url>\n";
        $nburl = $nburl +1;
        $result2 = mysql_query("SELECT post_id FROM posts WHERE topic_id='".$topic_id."'");
        $page = 10;
        while ($page < mysql_num_rows($result2))
        {
            echo "<url>\n";
            echo "<loc>".$nuke_url."/viewtopic.php?topic=".$topic_id."&forum=".$forum_ id."&start=".$page."</loc>\n";
            echo "<lastmod>".date("Y-m-d")."</lastmod>\n";
            echo "<changefreq>weekly</changefreq>\n";
            echo "<priority>".$priority_forum."</priority>\n";
            echo "</url>\n";
            $nburl = $nburl + 1;
            $page = $page + 10;
        }
    }
    @mysql_free_result($result);
}




Cet article provient de NPDS

http://www.npds.org/viewtopic.php?topic=21285&forum=12