ThWboard Support-Forum (Archiv)

Ort: / Boardübersicht / Archiv / [fixed] Leeres Topic


Seite 1 von 1

theDon schrieb am 09.02.2003 um 18:10 Uhr

1) Wenn ein Topic nur aus einem 'Badword' besteht, das durch nichts ersetzt wird, gibts ein leeres topic

2) Beim editieren wird die Topic-länge nicht mehr überprüft

zu 1) einfach diesen block aus newtopic.php, ~183

// Bannedwords-Protection
    if( $config["usebwordprot"] == BWORD_TOPIC || $config["usebwordprot"] == BWORD_ALL )
    {
        $thread["threadtopic"] = check_banned($thread["threadtopic"]);
    }
    if( $config["usebwordprot"] >= BWORD_POST )
    {
        $post["posttext"] = check_banned($post["posttext"]);
    }

nach ~ 99 verschieben:

unset($msg);
// Bannedwords-Protection
    if( $config["usebwordprot"] == BWORD_TOPIC || $config["usebwordprot"] == BWORD_ALL )
    {
        $thread["threadtopic"] = check_banned($thread["threadtopic"]);
    }
    if( $config["usebwordprot"] >= BWORD_POST )
    {
        $post["posttext"] = check_banned($post["posttext"]);
        }
    if( strlen($thread['threadtopic']) > $config['subject_maxlength'] )
    {
        $msg .= "Das Subject ist zu lang!<br>";
    }

zu 2) edit.php, ~130
nach

unset($msg);

einfügen:

// Bannedwords-Protection
    if( $config["usebwordprot"] == BWORD_TOPIC || $config["usebwordprot"] == BWORD_ALL )
    {
        $thread["threadtopic"] = check_banned($thread["threadtopic"]);
    }
    if( $config["usebwordprot"] >= BWORD_POST )
    {
        $post["posttext"] = check_banned($post["posttext"]);
    }

    if( strlen($thread['threadtopic']) > $config['subject_maxlength'] )
    {
        $msg .= "Das Subject ist zu lang!<br>";
    }
    if( strlen(check_banned(preparse_code($thread['threadtopic']))) < $config['subject_minlength'] )
    {
        $msg .= "Das Subject ist zu kurz!<br>";
    }

und ~145

// badwords
        if( $config["usebwordprot"] >= BWORD_POST )
        {
            $newpost["posttext"] = check_banned($newpost["posttext"]);
                }
        

löschen.

Seite 1 von 1