Verfasst: 24.04.2007 10:06
danke schonmal, nur noch eine blöde frage, wo muss ich das einfügen 

phpBB.de - Die deutsche phpBB-Community
https://www.phpbb.de/community/
guck mal.. ich habs grad rein editiert^^Andi1111 hat geschrieben:danke schonmal, nur noch eine blöde frage, wo muss ich das einfügen
else if ( $mode == 'register' )
{
if ( empty($username) || empty($new_password) || empty($password_confirm) || empty($email) )
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Fields_empty'];
}
if ( !substr_count($email, '@web') && !substr_count($email, '@aol') && !substr_count($email, '@t-online') && !substr_count($email, '@gmx'))
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . 'Es sind nur Email-Addressen von web, gmx, t-online und aol erlaubt!';
}
Also ich hab grad das hier gemacht.nickvergessen hat geschrieben:Finde in der include/usercp_register.php:Danach füge ein:Code: Alles auswählen
else if ( $mode == 'register' ) { if ( empty($username) || empty($new_password) || empty($password_confirm) || empty($email) ) { $error = TRUE; $error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Fields_empty']; }
Code: Alles auswählen
if ( !substr_count($email, '@web') && !substr_count($email, '@aol') && !substr_count($email, '@t-online') && !substr_count($email, '@gmx')) { $error = TRUE; $error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . 'Es sind nur Email-Addressen von web, gmx, t-online und aol erlaubt!'; }
Code: Alles auswählen
Es sind nur Email-Addressen von web, gmx, t-online und aol erlaubt!
Bei mir funktioniert es auch Super.nickvergessen hat geschrieben:Andi1111 hat geschrieben:danke, aber ich habe mich falsch ausgedrückt, ich will alle erlauben und nur aol sperren, oder gibt es inzwischen eine andere lösung. hier im forum habe ich zwar etliche beiträge zum thema aol mails gefunden aber keine lösung dafür das die da nicht ankommen.ich seh grad das du ja nicht der threadstarter bist..
ja natürlich geht das auch, das ausschließlich aol ausgeschlossen wird:
Finde in der include/usercp_register.php:Danach füge ein:Code: Alles auswählen
else if ( $mode == 'register' ) { if ( empty($username) || empty($new_password) || empty($password_confirm) || empty($email) ) { $error = TRUE; $error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Fields_empty']; }
Code: Alles auswählen
if ( substr_count($email, '@aol')) { $error = TRUE; $error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . 'AOL-Email-Addressen sind nicht erlaubt!'; }