Hallo,
habe gestern das erste mal phpBB installiert.
Für das was ich vorhabe benötige ich eine Freischaltung durch den Admin, aber auf die überprüfung ob die E-Mail Adresse echt ist möchte ich auch nicht verzichten. Leider kann ich in den Einstellungen nur eins von beiden wählen. Gibt es für meine Bedürfnisse ein Workaround oder einen Hack? Auf phpbbhacks.com habe ich geguckt, aber nichts gefunden.
Über einen hilfreichen Hinweis würde ich mich freuen.
Gruß,
Brutus
Ich möchte die Account-Freischaltung per Mail UND den Admin
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
- cYbercOsmOnauT
- Ehemaliges Teammitglied
- Beiträge: 3820
- Registriert: 18.02.2004 23:02
- Wohnort: Göttingen
- Kontaktdaten:
Das ist eine Bitte um eine Modifikation. Du hast im falschen Forum gepostet. Ich verschieb Dich mal. 
Viele Grüße,
Tekin

Viele Grüße,
Tekin
• prof. phpbb-Installation, Reparatur, Rettung nach Hackattacken, sowie PHP/JS Programmierung aller Art
• Zend Certified Engineer, Linux Administrator und die Sicherheit von 34 Jahren Programmiererfahrung
• Interesse? Kontakt unter t.birduezen@web-coding.eu
• Zend Certified Engineer, Linux Administrator und die Sicherheit von 34 Jahren Programmiererfahrung
• Interesse? Kontakt unter t.birduezen@web-coding.eu
- Markus Wandel
- Mitglied
- Beiträge: 658
- Registriert: 01.12.2003 18:13
- Wohnort: Wuppertal
- Kontaktdaten:
Moin,
ich glaube das ist das was gesucht wird:
Sorry für den lange Code, aber leider find ich den Download selber nicht mehr im Netz.
bye
Markus
ich glaube das ist das was gesucht wird:
Code: Alles auswählen
##############################################################
## MOD Title: Double Activation
## MOD Author: damnian < damnian-no-spam at damnian dot com > (Dmitry Shechtman) http://damnian.com/dev
## MOD Description: Adds an option for 2-step activation
## MOD Version: 1.0.0
##
## Installation Level: Easy
## Installation Time: 5 Minutes
## Files To Edit: 6
## admin/admin_board.php
## includes/constants.php
## includes/usercp_activate.php
## includes/usercp_register.php
## language/lang_english/lang_admin.php
## templates/subSilver/admin/board_config_body.tpl
##
## Included Files: N/A
##
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
## N/A
##############################################################
## MOD History:
##
## 2006-03-09 - Version 1.0.0
## - Submitted to MODDB
##
## 2006-03-05 - Version 0.1.2
## - ACP Both selection fix (thanks to Tapio)
## - 2.0.19 compatible
##
## 2006-01-03 - Version 0.1.1
## - 2.0.18 compatibility fix
##
## 2005-12-26 - Version 0.1.0
## - Initial Release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
admin/admin_board.php
#
#-----[ FIND ]------------------------------------------
#
$activation_admin =
#
#-----[ AFTER, ADD ]------------------------------------------
#
$activation_double = ( $new['require_activation'] == USER_ACTIVATION_DOUBLE ) ? "checked=\"checked\"" : "";
#
#-----[ FIND ]------------------------------------------
#
"L_ADMIN" => $lang['Acc_Admin'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
"L_DOUBLE" => $lang['Acc_Both'],
#
#-----[ FIND ]------------------------------------------
#
"ACTIVATION_ADMIN_CHECKED" => $activation_admin,
#
#-----[ AFTER, ADD ]------------------------------------------
#
"ACTIVATION_DOUBLE" => USER_ACTIVATION_DOUBLE,
"ACTIVATION_DOUBLE_CHECKED" => $activation_double,
#
#-----[ OPEN ]------------------------------------------
#
includes/constants.php
#
#-----[ FIND ]------------------------------------------
#
define('USER_ACTIVATION_ADMIN', 2);
#
#-----[ AFTER, ADD ]------------------------------------------
#
define('USER_ACTIVATION_DOUBLE', 3);
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_activate.php
#
#-----[ FIND ]------------------------------------------
#
exit;
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
$unhtml_specialchars_match = array('#>#', '#<#', '#"#', '#&#');
$unhtml_specialchars_replace = array('>', '<', '"', '&');
#
#-----[ FIND ]------------------------------------------
#
message_die(GENERAL_MESSAGE, $lang['Not_Authorised']);
}
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
if (intval($board_config['require_activation']) == USER_ACTIVATION_DOUBLE && isset($HTTP_GET_VARS['acc_admin']) && $row['user_newpasswd'] == '')
{
if (!$userdata['session_logged_in'])
{
redirect(append_sid('login.' . $phpEx . '?redirect=profile.' . $phpEx . '&mode=activate&' . POST_USERS_URL . '=' . $row['user_id'] . '&act_key=' . trim($HTTP_GET_VARS['act_key'] . '&acc_admin')));
}
else if ($userdata['user_level'] != ADMIN)
{
message_die(GENERAL_MESSAGE, $lang['Not_Authorised']);
}
}
#
#-----[ FIND ]------------------------------------------
#
$sql = "UPDATE " . USERS_TABLE
#
#-----[ BEFORE, ADD ]------------------------------------------
#
if ( $board_config['require_activation'] != USER_ACTIVATION_DOUBLE || $userdata['user_level'] == ADMIN || $sql_update_pass != '' )
{
$sql_update_active = "user_active = 1, user_actkey = ''";
}
else
{
$user_id = $row['user_id'];
$username = $row['username'];
$user_actkey = gen_rand_string(true);
$key_len = 54 - ( strlen($server_url) );
$key_len = ( $key_len > 6 ) ? $key_len : 6;
$user_actkey = substr($user_actkey, 0, $key_len);
$sql_update_active = "user_actkey = '$user_actkey'";
}
#
#-----[ FIND ]------------------------------------------
#
SET user_active = 1, user_actkey = ''"
#
#-----[ IN-LINE FIND ]------------------------------------------
#
user_active = 1, user_actkey = ''"
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
" . $sql_update_active
#
#-----[ FIND ]------------------------------------------
#
message_die(GENERAL_ERROR, 'Could not update users table', '', __LINE__, __FILE__, $sql_update);
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
if ( $user_actkey != '' )
{
$sql = 'SELECT user_email, user_lang
FROM ' . USERS_TABLE . '
WHERE user_level = ' . ADMIN;
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not select Administrators', '', __LINE__, __FILE__, $sql);
}
include($phpbb_root_path . 'includes/emailer.'.$phpEx);
$emailer = new emailer($board_config['smtp_delivery']);
while ($row = $db->sql_fetchrow($result))
{
$emailer->from($board_config['board_email']);
$emailer->replyto($board_config['board_email']);
$emailer->email_address(trim($row['user_email']));
$emailer->use_template("admin_activate", $row['user_lang']);
$emailer->set_subject($lang['Reactivate']);
$emailer->assign_vars(array(
'USERNAME' => preg_replace($unhtml_specialchars_match, $unhtml_specialchars_replace, substr(str_replace("\'", "'", $username), 0, 25)),
'EMAIL_SIG' => str_replace('<br />', "\n", "-- \n" . $board_config['board_email_sig']),
'U_ACTIVATE' => $server_url . '?mode=activate&' . POST_USERS_URL . '=' . $user_id . '&act_key=' . $user_actkey . '&acc_admin')
);
$emailer->send();
$emailer->reset();
}
$db->sql_freeresult($result);
$template->assign_vars(array(
'META' => '<meta http-equiv="refresh" content="10;url=' . append_sid("index.$phpEx") . '">')
);
message_die(GENERAL_MESSAGE, $lang['Account_inactive_admin']);
}
else
#
#-----[ FIND ]------------------------------------------
#
if ( intval($board_config['require_activation']) == USER_ACTIVATION_ADMIN
#
#-----[ IN-LINE FIND ]------------------------------------------
#
intval($board_config['require_activation']) == USER_ACTIVATION_ADMIN
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
(intval($board_config['require_activation']) == USER_ACTIVATION_ADMIN || intval($board_config['require_activation']) == USER_ACTIVATION_DOUBLE)
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_register.php
#
#-----[ FIND ]------------------------------------------
#
if ( $board_config['require_activation'] == USER_ACTIVATION_SELF
#
#-----[ IN-LINE FIND ]------------------------------------------
#
$board_config['require_activation'] == USER_ACTIVATION_ADMIN
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
|| $board_config['require_activation'] == USER_ACTIVATION_DOUBLE
#
#-----[ FIND ]------------------------------------------
#
else if ( $board_config['require_activation'] == USER_ACTIVATION_SELF
#
#-----[ IN-LINE FIND ]------------------------------------------
#
$board_config['require_activation'] == USER_ACTIVATION_SELF
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
|| $board_config['require_activation'] == USER_ACTIVATION_DOUBLE
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_admin.php
#
#-----[ FIND ]------------------------------------------
#
$lang['Acc_Admin'] = 'Admin';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['Acc_Both'] = 'Both';
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/board_config_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<td class="row2"><input type="radio" name="require_activation"
#
#-----[ IN-LINE FIND ]------------------------------------------
#
{L_ADMIN}
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
<input type="radio" name="require_activation" value="{ACTIVATION_DOUBLE}" {ACTIVATION_DOUBLE_CHECKED} />{L_DOUBLE}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
bye
Markus
WebMaster von: www.RoCoFa.de - Wir sind die RollerCoasterFans
Die Seite für Achterbahn- und Freizeitparkfans, kostenlose Mitgliedschaft, keine Verpflichtungen.
Die Seite für Achterbahn- und Freizeitparkfans, kostenlose Mitgliedschaft, keine Verpflichtungen.
Hi...
Gruß,
Fabrizio
Nachauen auf www.phpbb.com brachte das folgende Ergebnis:Markus Wandel hat geschrieben:Sorry für den lange Code, aber leider find ich den Download selber nicht mehr im Netz.
Gruß,
Fabrizio