ilch Forum » Ilch Clan 1.1 » Fehlersuche und Probleme » Remove Anti Spam ?

Geschlossen
  1. #1
    User Pic
    ExOMaNiaC Mitglied
    Registriert seit
    28.01.2007
    Beiträge
    42
    Beitragswertungen
    0 Beitragspunkte
    Hi,

    Can someone tell me how I can remove the antispam in the shoutbox zwinker

    My script :

    <?php
    # Copyright by Manuel
    # Support www.ilch.de

    defined ('main') or die ( 'no direct access' );

    if ( loggedin() ) {
    $shoutbox_VALUE_name = $_SESSION['authname'];
    } else {
    $shoutbox_VALUE_name = 'Nickname';
    }
    if ( !empty($_POST['shoutbox_submit']) AND chk_antispam ('shoutbox')) {
    $shoutbox_nickname = escape($_POST['shoutbox_nickname'],'string');
    $shoutbox_nickname = substr($shoutbox_nickname, 0, 15);
    $shoutbox_textarea = escape($_POST['shoutbox_textarea'],'textarea');
    $shoutbox_textarea = preg_replace("/\[.?(url|b|i|u|img|code|quote)[^\]]*?\]/i","",$shoutbox_textarea);
    $shoutbox_textarea = strip_tags($shoutbox_textarea);
    if ( !empty($shoutbox_nickname) AND !empty($shoutbox_textarea) ) {
    db_query('INSERT INTO `prefix_shoutbox` VALUES ( "" , "'.$shoutbox_nickname.'" , "'.$shoutbox_textarea.'" ) ' );
    }
    }
    echo '<center><form action="index.php" method="POST">';
    echo '<input type="text" align="center" size="15" class=login_1 name="shoutbox_nickname" value="'.$shoutbox_VALUE_name.'" onFocus="if (value == \''.$shoutbox_VALUE_name.'\') {value = \'\'}" onBlur="if (value == \'\') {value = \''.$shoutbox_VALUE_name.'\'}" maxlength="15">';
    echo '<br /><textarea style="width: 80%" cols="15" rows="2" name="shoutbox_textarea"></textarea><br />';
    echo get_antispam ('shoutbox', 0);
    echo '<input type="image" src="include/images/login/shoutbox.png" style="margin-top:3px;" name="shoutbox_submit" value="'.$lang['formsub'].'" />';
    echo '</form><table width="103%" class="border" cellpadding="0" cellspacing="1" border="0">';
    $erg = db_query('SELECT * FROM `prefix_shoutbox` ORDER BY id DESC LIMIT 5');
    $class = 'Cnorm';
    while ($row = db_fetch_object($erg) ) {
    $class = ( $class == 'Cmite' ? 'Cnorm' : 'Cmite' );
    echo '<tr class="'.$class.'"><td><b>'.$row->nickname.':</b> '.preg_replace( '/([^\s]{10})(?=[^\s])/', "$1\n", $row->textarea).'</td></tr>';
    }
    echo '</center></table><a class="box" href="index.php?shoutbox"><img src="include/images/login/archive.png" border="0" /></a>';

    ?>


    verwendete ilchClan Version: 1.1
    0 Mitglieder finden den Beitrag gut.
  2. #2
    User Pic
    SLJ Hall Of Fame
    Registriert seit
    18.05.2004
    Beiträge
    15.492
    Beitragswertungen
    3 Beitragspunkte
    Hi,
    kann zwar kein Englisch aber versuch mal so,...;)

    <?php 
    # Copyright by Manuel 
    # Support www.ilch.de 
    
    defined ('main') or die ( 'no direct access' ); 
    
    if ( loggedin() ) { 
    $shoutbox_VALUE_name = $_SESSION['authname']; 
    } else { 
    $shoutbox_VALUE_name = 'Nickname'; 
    } 
    if ( !empty($_POST['shoutbox_submit']) ) { 
    $shoutbox_nickname = escape($_POST['shoutbox_nickname'],'string'); 
    $shoutbox_nickname = substr($shoutbox_nickname, 0, 15); 
    $shoutbox_textarea = escape($_POST['shoutbox_textarea'],'textarea'); 
    $shoutbox_textarea = preg_replace("/\[.?(url|b|i|u|img|code|quote)[^\]]*?\]/i","",$shoutbox_textarea); 
    $shoutbox_textarea = strip_tags($shoutbox_textarea); 
    if ( !empty($shoutbox_nickname) AND !empty($shoutbox_textarea) ) { 
    db_query('INSERT INTO `prefix_shoutbox` VALUES ( "" , "'.$shoutbox_nickname.'" , "'.$shoutbox_textarea.'" ) ' ); 
    } 
    } 
    echo '<center><form action="index.php" method="POST">'; 
    echo '<input type="text" align="center" size="15" class=login_1 name="shoutbox_nickname" value="'.$shoutbox_VALUE_name.'" onFocus="if (value == \''.$shoutbox_VALUE_name.'\') {value = \'\'}" onBlur="if (value == \'\') {value = \''.$shoutbox_VALUE_name.'\'}" maxlength="15">'; 
    echo '<br /><textarea style="width: 80%" cols="15" rows="2" name="shoutbox_textarea"></textarea><br />'; 
    
    echo '<input type="image" src="include/images/login/shoutbox.png" style="margin-top:3px;" name="shoutbox_submit" value="'.$lang['formsub'].'" />'; 
    echo '</form><table width="103%" class="border" cellpadding="0" cellspacing="1" border="0">'; 
    $erg = db_query('SELECT * FROM `prefix_shoutbox` ORDER BY id DESC LIMIT 5'); 
    $class = 'Cnorm'; 
    while ($row = db_fetch_object($erg) ) { 
    $class = ( $class == 'Cmite' ? 'Cnorm' : 'Cmite' ); 
    echo '<tr class="'.$class.'"><td><b>'.$row->nickname.':</b> '.preg_replace( '/([^\s]{10})(?=[^\s])/', "$1\n", $row->textarea).'</td></tr>'; 
    } 
    echo '</center></table><a class="box" href="index.php?shoutbox"><img src="include/images/login/archive.png" border="0" /></a>'; 
    
    ?>
    externer Link
    Ilch 1.0.4 PHP 7.0 und PDO Fähig na klar lächeln
    0 Mitglieder finden den Beitrag gut.
  3. #3
    User Pic
    ExOMaNiaC Mitglied
    Registriert seit
    28.01.2007
    Beiträge
    42
    Beitragswertungen
    0 Beitragspunkte
    Tnx m8 !! zwinker
    0 Mitglieder finden den Beitrag gut.
Geschlossen

Zurück zu Fehlersuche und Probleme

Optionen: Bei einer Antwort zu diesem Thema eine eMail erhalten