ich habe heute auf 3.1.x umgestellt und jetzt ist ein kleines Tool ausgefallen das ich dringend benötige.
Früher hat ein Register-Script meiner Webseite automatisch einen Account der Webseite auch beim Forum angelegt. Das funktioniert jetzt nicht mehr.
Könnt ihr da helfen?
Code: Alles auswählen
define('IN_PHPBB', true);
$phpbb_root_path = '/www/htdocs/w00eaa1c/forum/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.php');
$user->session_begin();
$auth->acl($user->data);
$user->setup();
global $phpbb_root_path;
global $phpEx;
global $db;
global $config;
global $user;
global $auth;
global $cache;
global $template;
require($phpbb_root_path .'includes/functions_user.php');
$user_row = array(
'username' => utf8_encode($_POST['nickname']),
'user_password' => $passwort_forum,
'user_email' => utf8_encode($_POST['email']),
'group_id' => '2',
'user_ip' => $HTTP_SERVER_VARS["REMOTE_ADDR"],
'user_timezone' => '1.00',
'user_dst' => '1',
'user_lang' => 'de',
'user_type' => '0',
'user_actkey' => '',
'user_dateformat' => 'D j. M Y, H:i',
'user_style' => '2',
'user_regdate' => time(),
);
if($phpbb_user_id = user_add($user_row)){
}
else
{
}