SUPA Danke
assault also ich hab mir das nun etwas erweitert und alles Spam und Trash Mails mit eingebunden die ich kenne so hier mal die regist.php:
<?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="index.php?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="index.php?user">User</a><b> » </b><a class="smalfont" href="index.php?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;
}
$mailfail = false;
if (preg_match('%(.+)\@gmail.com%i',$email)) $mailfail = true;
if (preg_match('%(.+)\@trash.com%i',$email)) $mailfail = true;
if (preg_match('%(.+)\@spam.com%i',$email)) $mailfail = true;
if (preg_match('%(.+)\@jetable.org%i',$email)) $mailfail = true;
if (preg_match('%(.+)\@mytrashmail.com%i',$email)) $mailfail = true;
if (preg_match('%(.+)\@gomail.ws%i',$email)) $mailfail = true;
if (preg_match('%(.+)\@mailinator.net%i',$email)) $mailfail = true;
if (preg_match('%(.+)\@discardmail.com%i',$email)) $mailfail = true;
if (preg_match('%(.+)\@temporarily.de%i',$email)) $mailfail = true;
if (preg_match('%(.+)\@temporaryinbox.com%i',$email)) $mailfail = true;
if (preg_match('%(.+)\@sofort-mail.de%i',$email)) $mailfail = true;
if (preg_match('%(.+)\@spambog.com%i',$email)) $mailfail = true;
if (preg_match('%(.+)\@eintagsmail.de%i',$email)) $mailfail = true;
if (preg_match('%(.+)\@temp-mail.org%i',$email)) $mailfail = true;
if (preg_match('%(.+)\@hidemail.de%i',$email)) $mailfail = true;
if (preg_match('%(.+)\@emailto.de.com%i',$email)) $mailfail = true;
if (preg_match('%(.+)\@nervmich.net%i',$email)) $mailfail = true;
if (preg_match('%(.+)\@dumpmail.de%i',$email)) $mailfail = true;
if (preg_match('%(.+)\@spamoff.de%i',$email)) $mailfail = true;
if (preg_match('%(.+)\@twinmail.de%i',$email)) $mailfail = true;
if (preg_match('%(.+)\@mailinator2.com%i',$email)) $mailfail = true;
if (preg_match('%(.+)\@sogetthis.com%i',$email)) $mailfail = true;
if (preg_match('%(.+)\@mailin8r.com%i',$email)) $mailfail = true;
if (preg_match('%(.+)\@mailinator.net%i',$email)) $mailfail = true;
if (preg_match('%(.+)\@spamherelots.com%i',$email)) $mailfail = true;
if (preg_match('%(.+)\@thisisnotmyrealemail.com%i',$email)) $mailfail = true;
if (preg_match('%(.+)\@mailinator.com%i',$email)) $mailfail = true;
if (preg_match('%(.+)\@jetable.org%i',$email)) $mailfail = true;
if (preg_match('%(.+)\@sofort-mail.de%i',$email)) $mailfail = true;
if (preg_match('%(.+)\@neuer Eintrag%i',$email)) $mailfail = true;
if ( empty($name) OR empty($email) OR $name != $xname OR $ch_name == false OR $mailfail) {
$title = $allgAr['title'].' :: Users :: Registrieren :: Step 2 von 3';
$hmenu = $extented_forum_menu.'<a class="smalfont" href="index.php?user">User</a><b> » </b><a class="smalfont" href="index.php?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($mailfail) {
$fehler = 'Googlemail & Einweg & -Adressen verboten!';
}
$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="index.php?user">User</a><b> » </b><a class="smalfont" href="index.php?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;
}
?>
Die Zeile
$fehler = 'Googlemail & Einweg & -Adressen verboten!';
Kann da auch noch angepasst werden!
Die Zeile:
if (preg_match('%(.+)\@neuer Eintrag%i',$email)) $mailfail = true;
Dort in
neuer Eintrag den neuen E-mail Anbieter dazu schreiben. Eine neue Mail dazu? Kein problem kopiere eine Zeile heraus und gfüge diese darunter ein ändere einfach den Anbieternamen!
Danke nochmals!
PS Wer die Liste erweitern möchte kann seine Spam oder Einweg Mail Adressen darunter Posten!
Zuletzt modifiziert von Sapperlot am 20.02.2009 - 23:59:46