Hallo wolte wissen wo und wie ich die antispam funktion
in der REGISTRIERUNG einbauen kann / muss
damit diese doof bots nix oder zumindest nicht soleicht was tun können!?
mfg UniX
Hier kann eine Notiz zum Merk-Eintrag hinzugefügt werden (optional)
Geschlossen |
$tpl->out(2); } $tpl->out(3); } else { $pass = genkey(8);
chk_antispam ('downloads'))
<?php # Copyright by: Manuel # Support: www.ilch.de defined ('main') or die ( 'no direct access' ); if ( !isset($_GET['step']) ) { $_GET['step'] = 1; } if ( $allgAr['forum_regist'] == 0 ) { # user duerfen sich nicht registrieren. $title = $allgAr['title'].' :: Users :: Keine registrierung möglich'; $hmenu = $extented_forum_menu.'<a class="smalfont" href="?user">User</a><b> » </b>Keine Registrierung möglich'.$extented_forum_menu_sufix; $design = new design ( $title , $hmenu, 1); $design->header(); $tpl = new tpl ( 'user/login' ); echo '<b> Der Administrator hat festgelegt das man sich nicht registrieren kann </b>'; $tpl->set_out('WDLINK','?'.$allgAr['smodul'],0); $design->footer(); exit (); } switch ( $menu->get(2) ) { default : $title = $allgAr['title'].' :: Users :: Registrieren :: Step 1 von 3'; $hmenu = $extented_forum_menu.'<a class="smalfont" href="?user">User</a><b> » </b><a class="smalfont" href="?user-regist">Registrieren</a><b> » </b>Step 1 von 3'.$extented_forum_menu_sufix; $design = new design ( $title , $hmenu, 1 ); $design->header(); $tpl = new tpl ( 'user/regist' ); $tpl->set_out('regeln', bbcode($allgAr['allg_regeln']),0); $design->footer(); break; case 2 : $name = ''; $email = ''; 'ANTISPAM' => get_antispam ('reg', 1), if (!empty($_POST['nutz'])) { $name = escape($_POST['nutz'],'string'); } if (!empty($_POST['email'])) { $email = escape($_POST['email'],'string'); } $ch_name = false; $xname = escape_nickname($name); if (!empty($name) AND $xname == $name AND 0 == db_result(db_query("SELECT COUNT(*) FROM prefix_user WHERE name = BINARY '".$name."'"),0)) { $ch_name = true; } # sonder funktion um vorhndene namen in gross und kleinschreibung zuprüfen $erg = db_query('SELECT name FROM prefix_user'); while ($row = db_fetch_assoc($erg)) if (strcasecmp($row['name'],$name) == 0) $ch_name = false;$erg = db_query('SELECT name FROM prefix_user'); while ($row = db_fetch_assoc($erg)) if (strcasecmp($row['name'],$name) == 0) $ch_name = false; # sonder funktion um hier eingegebene namen zu verbieten $blockedname = array('Fick', 'Ficken','Ficker','Hure','schlampe','nutte','hurensohn','muschi','fotze','neger','nigger','nazi','AdolfH','Hitler','wichser','wixer','sex',); foreach ($blockedname as $bn) { if (strcasecmp($bn,$name) == 0) $ch_name = false; } if ( empty($name) OR empty($email) OR $name != $xname OR $ch_name == false ) { $title = $allgAr['title'].' :: Users :: Registrieren :: Step 2 von 3'; $hmenu = $extented_forum_menu.'<a class="smalfont" href="?user">User</a><b> » </b><a class="smalfont" href="?user-regist">Registrieren</a><b> » </b>Step 2 von 3'.$extented_forum_menu_sufix; $design = new design ( $title , $hmenu, 1); $design->header(); if (empty($name) OR empty($email)) { $fehler = $lang['yourdata']; } elseif ($name != $xname) { $fehler = $lang['wrongnickname']; } elseif ($ch_name == false) { $fehler = $lang['namealreadyinuse']; } elsif (chk_antispam ('gbook')){ $fehler = "Entschuldiegung da ist was mit dem Antispam nocht ok!" } $tpl = new tpl ( 'user/regist' ); $tpl->set('name', $name); $tpl->set('email', $email); $tpl->set_out('FEHLER', $fehler, 1); if ( $allgAr['forum_regist_user_pass'] == 1 ) { $tpl->out(2); } $tpl->out(3); } else { $pass = genkey(8); if (!empty($_POST['pass'])) { $pass = escape($_POST['pass'], 'string'); } user_regist ($name,$email,$pass); $tpl = new tpl ('user/regist' ); $title = $allgAr['title'].' :: Users :: Registrieren :: Step 3 von 3'; $hmenu = $extented_forum_menu.'<a class="smalfont" href="?user">User</a><b> » </b><a class="smalfont" href="?user-regist">Registrieren</a><b> » </b>Step 3 von 3'.$extented_forum_menu_sufix; $design = new design ( $title , $hmenu, 1); $design->header(); $tpl->set_out ( 'NAME', $name, 4 ); } $design->footer(); break; } ?>
<?php # Copyright by: Manuel # Support: www.ilch.de defined ('main') or die ( 'no direct access' ); if ( !isset($_GET['step']) ) { $_GET['step'] = 1; } if ( $allgAr['forum_regist'] == 0 ) { # user duerfen sich nicht registrieren. $title = $allgAr['title'].' :: Users :: Keine registrierung möglich'; $hmenu = $extented_forum_menu.'<a class="smalfont" href="?user">User</a><b> » </b>Keine Registrierung möglich'.$extented_forum_menu_sufix; $design = new design ( $title , $hmenu, 1); $design->header(); $tpl = new tpl ( 'user/login' ); echo '<b> Der Administrator hat festgelegt das man sich nicht registrieren kann </b>'; $tpl->set_out('WDLINK','?'.$allgAr['smodul'],0); $design->footer(); exit (); } switch ( $menu->get(2) ) { default : $title = $allgAr['title'].' :: Users :: Registrieren :: Step 1 von 3'; $hmenu = $extented_forum_menu.'<a class="smalfont" href="?user">User</a><b> » </b><a class="smalfont" href="?user-regist">Registrieren</a><b> » </b>Step 1 von 3'.$extented_forum_menu_sufix; $design = new design ( $title , $hmenu, 1 ); $design->header(); $tpl = new tpl ( 'user/regist' ); $tpl->set_out('regeln', bbcode($allgAr['allg_regeln']),0); $design->footer(); break; case 2 : $name = ''; $email = ''; $spam = 'get_antispam'; if (!empty($_POST['nutz'])) { $name = escape($_POST['nutz'],'string'); } if (!empty($_POST['email'])) { $email = escape($_POST['email'],'string'); } $r4u = array ( 'ANTISPAM' => get_antispam ('reg', 1)); $ch_name = false; $xname = escape_nickname($name); if (!empty($name) AND $xname == $name AND 0 == db_result(db_query("SELECT COUNT(*) FROM prefix_user WHERE name = BINARY '".$name."'"),0)) { $ch_name = true; } # sonder funktion um vorhndene namen in gross und kleinschreibung zuprüfen $erg = db_query('SELECT name FROM prefix_user'); while ($row = db_fetch_assoc($erg)) if (strcasecmp($row['name'],$name) == 0) $ch_name = false;$erg = db_query('SELECT name FROM prefix_user'); while ($row = db_fetch_assoc($erg)) if (strcasecmp($row['name'],$name) == 0) $ch_name = false; # sonder funktion um hier eingegebene namen zu verbieten $blockedname = array('Fick', 'Ficken','Ficker','Hure','schlampe','nutte','hurensohn','muschi','fotze','neger','nigger','nazi','AdolfH','Hitler','wichser','wixer','sex',); foreach ($blockedname as $bn) { if (strcasecmp($bn,$name) == 0) $ch_name = false; } if ( empty($name) OR empty($email) OR $name != $xname OR $ch_name == false ) { $title = $allgAr['title'].' :: Users :: Registrieren :: Step 2 von 3'; $hmenu = $extented_forum_menu.'<a class="smalfont" href="?user">User</a><b> » </b><a class="smalfont" href="?user-regist">Registrieren</a><b> » </b>Step 2 von 3'.$extented_forum_menu_sufix; $design = new design ( $title , $hmenu, 1); $design->header(); if (empty($name) OR empty($email)) { $fehler = $lang['yourdata']; } elseif ($name != $xname) { $fehler = $lang['wrongnickname']; } elseif ($ch_name == false) { $fehler = $lang['namealreadyinuse']; } $tpl = new tpl ( 'user/regist' ); $tpl->set('name', $name); $tpl->set('email', $email); $tpl->set_out('FEHLER', $fehler, 1); if ( $allgAr['forum_regist_user_pass'] == 1 and chk_antispam ('reg' )) { $tpl->out(2); } $tpl->out(3); } else { $pass = genkey(8);} if (!empty($_POST['pass'])) { $pass = escape($_POST['pass'], 'string'); } user_regist ($name,$email,$pass); $tpl = new tpl ('user/regist' ); $title = $allgAr['title'].' :: Users :: Registrieren :: Step 3 von 3'; $hmenu = $extented_forum_menu.'<a class="smalfont" href="?user">User</a><b> » </b><a class="smalfont" href="?user-regist">Registrieren</a><b> » </b>Step 3 von 3'.$extented_forum_menu_sufix; $design = new design ( $title , $hmenu, 1); $design->header(); $tpl->set_out ( 'NAME', $name, 4 ); } $design->footer(); break; ?>
{ANTISPAM}
<!-- REGELN --> <form action="index.php?user-regist-2" method="POST"> {_lang_attentionplease}: <br /> {regeln} <br /><br /><input type="submit" value="{_lang_readandok}" name="Yes"> </form> {EXPLODE} <form action="index.php?user-regist-2" method="POST"> <input type="hidden" value="Gelesen und einverstanden" name="checked"> <table width="100%" border="0" cellspacing="1" cellpadding="3" class="border"> <tr class="Chead"> <th colspan="2"><b>{_lang_REGISTER}</b></th> </tr><tr> <td colspan="2" class="Cdark">{FEHLER}</td> </tr><tr> <td class="Cmite" width="60">{_lang_nickname}</td> <td class="Cnorm"><input type="text" name="nutz" value="{name}" maxlength="15"></td> </tr><tr> <td class="Cmite">{_lang_mail}</td> <td class="Cnorm"><input type="text" maxlength="100" value="{email}" name="email"></td> </tr>{EXPLODE}<tr> <td class="Cmite">{_lang_password}</td> <td class="Cnorm"><input type="password" name="pass"></td> </tr>{EXPLODE}<tr class="Cdark"> <td><p>AntiSpam</p></td><td>{ANTISPAM}</td> <tr><td></td> <td><input type="submit" value="{_lang_register}"></td> </tr> </tr> </table> </form> {EXPLODE} {_lang_hello} {NAME}<br> {_lang_yourregistrationwassuccessful}!<br><br> {_lang_amailhasbeensenttoyouwithmailandpass}!<br><br> {_lang_afteryoureceivedthemail} <a href="index.php?user-2">{_lang_login2}</a>
<?php # Copyright by: Manuel # Support: www.ilch.de defined ('main') or die ( 'no direct access' ); if ( !isset($_GET['step']) ) { $_GET['step'] = 1; } if ( $allgAr['forum_regist'] == 0 ) { # user duerfen sich nicht registrieren. $title = $allgAr['title'].' :: Users :: Keine registrierung möglich'; $hmenu = $extented_forum_menu.'<a class="smalfont" href="?user">User</a><b> » </b>Keine Registrierung möglich'.$extented_forum_menu_sufix; $design = new design ( $title , $hmenu, 1); $design->header(); $tpl = new tpl ( 'user/login' ); echo '<b> Der Administrator hat festgelegt das man sich nicht registrieren kann </b>'; $tpl->set_out('WDLINK','?'.$allgAr['smodul'],0); $design->footer(); exit (); } switch ( $menu->get(2) ) { default : $title = $allgAr['title'].' :: Users :: Registrieren :: Step 1 von 3'; $hmenu = $extented_forum_menu.'<a class="smalfont" href="?user">User</a><b> » </b><a class="smalfont" href="?user-regist">Registrieren</a><b> » </b>Step 1 von 3'.$extented_forum_menu_sufix; $design = new design ( $title , $hmenu, 1 ); $design->header(); $tpl = new tpl ( 'user/regist' ); $tpl->set_out('regeln', bbcode($allgAr['allg_regeln']),0); $design->footer(); break; case 2 : $name = ''; $email = ''; if (!empty($_POST['nutz'])) { $name = escape($_POST['nutz'],'string'); } if (!empty($_POST['email'])) { $email = escape($_POST['email'],'string'); } $ch_name = false; $xname = escape_nickname($name); if (!empty($name) AND $xname == $name AND 0 == db_result(db_query("SELECT COUNT(*) FROM prefix_user WHERE name = BINARY '".$name."'"),0)) { $ch_name = true; } if ( empty($name) OR empty($email) OR $name != $xname OR $ch_name == false OR !chk_antispam('regist') ) { $title = $allgAr['title'].' :: Users :: Registrieren :: Step 2 von 3'; $hmenu = $extented_forum_menu.'<a class="smalfont" href="?user">User</a><b> » </b><a class="smalfont" href="?user-regist">Registrieren</a><b> » </b>Step 2 von 3'.$extented_forum_menu_sufix; $design = new design ( $title , $hmenu, 1); $design->header(); if (empty($name) OR empty($email)) { $fehler = $lang['yourdata']; } elseif ($name != $xname) { $fehler = $lang['wrongnickname']; } elseif ($ch_name == false) { $fehler = $lang['namealreadyinuse']; } elseif(!chk_antispam('regist')){ $fehler = 'Bitte Antispam Code ausfüllen'; } $tpl = new tpl ( 'user/regist' ); $tpl->set('name', $name); $tpl->set('email', $email); $tpl->set_out('FEHLER', $fehler, 1); if ( $allgAr['forum_regist_user_pass'] == 1 ) { $tpl->out(2); } $tpl->set('antispam',get_antispam('regist',0)); $tpl->out(3); } else { $pass = genkey(8); if (!empty($_POST['pass'])) { $pass = escape($_POST['pass'], 'string'); } user_regist ($name,$email,$pass); $tpl = new tpl ('user/regist' ); $title = $allgAr['title'].' :: Users :: Registrieren :: Step 3 von 3'; $hmenu = $extented_forum_menu.'<a class="smalfont" href="?user">User</a><b> » </b><a class="smalfont" href="?user-regist">Registrieren</a><b> » </b>Step 3 von 3'.$extented_forum_menu_sufix; $design = new design ( $title , $hmenu, 1); $design->header(); $tpl->set_out ( 'NAME', $name, 4 ); } $design->footer(); break; } ?>
<!-- REGELN --> <form action="index.php?user-regist-2" method="POST"> {_lang_attentionplease}: <br /> {regeln} <br /><br /><input type="submit" value="{_lang_readandok}" name="Yes"> </form> {EXPLODE} <form action="index.php?user-regist-2" method="POST"> <input type="hidden" value="Gelesen und einverstanden" name="checked"> <table width="100%" border="0" cellspacing="1" cellpadding="3" class="border"> <tr class="Chead"> <th colspan="2"><b>{_lang_REGISTER}</b></th> </tr><tr> <td colspan="2" class="Cdark">{FEHLER}</td> </tr><tr> <td class="Cmite" width="60">{_lang_nickname}</td> <td class="Cnorm"><input type="text" name="nutz" value="{name}" maxlength="15"></td> </tr><tr> <td class="Cmite">{_lang_mail}</td> <td class="Cnorm"><input type="text" maxlength="100" value="{email}" name="email"></td> </tr>{EXPLODE}<tr> <td class="Cmite">{_lang_password}</td> <td class="Cnorm"><input type="password" name="pass"></td> </tr>{EXPLODE} <tr> <td class="Cdark"></td> <td class="Cnorm">{antispam}</td> </tr> <tr class="Cdark"> <td></td> <td><input type="submit" value="{_lang_register}"></td> </tr> </table> </form> {EXPLODE} {_lang_hello} {NAME}<br> {_lang_yourregistrationwassuccessful}!<br><br> {_lang_amailhasbeensenttoyouwithmailandpass}!<br><br> {_lang_afteryoureceivedthemail} <a href="index.php?user-2">{_lang_login2}</a>
Geschlossen | ||
Zurück zu Allgemein |