mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Fix the changes to bot creation
git-svn-id: file:///svn/phpbb/trunk@6065 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
7b8a5f99b1
commit
fc5e04b669
1 changed files with 16 additions and 7 deletions
|
@ -1343,6 +1343,12 @@ class install_install extends module
|
||||||
{
|
{
|
||||||
global $db, $phpbb_root_path, $phpEx;
|
global $db, $phpbb_root_path, $phpEx;
|
||||||
|
|
||||||
|
// Obtain any submitted data
|
||||||
|
foreach ($this->request_vars as $var)
|
||||||
|
{
|
||||||
|
$$var = request_var($var, '');
|
||||||
|
}
|
||||||
|
|
||||||
$sql = 'SELECT group_id
|
$sql = 'SELECT group_id
|
||||||
FROM ' . GROUPS_TABLE . "
|
FROM ' . GROUPS_TABLE . "
|
||||||
WHERE group_name = 'BOTS'";
|
WHERE group_name = 'BOTS'";
|
||||||
|
@ -1364,13 +1370,16 @@ class install_install extends module
|
||||||
foreach ($this->bot_list as $bot_name => $bot_ary)
|
foreach ($this->bot_list as $bot_name => $bot_ary)
|
||||||
{
|
{
|
||||||
$user_row = array(
|
$user_row = array(
|
||||||
'user_type' => GROUP_HIDDEN,
|
'user_type' => GROUP_HIDDEN,
|
||||||
'group_id' => $group_id,
|
'group_id' => $group_id,
|
||||||
'username' => $bot_name,
|
'username' => $bot_name,
|
||||||
'user_regdate' => time(),
|
'user_regdate' => time(),
|
||||||
'user_password' => '',
|
'user_password' => '',
|
||||||
'user_colour' => '9E8DA7',
|
'user_colour' => '9E8DA7',
|
||||||
'user_email' => ''
|
'user_email' => '',
|
||||||
|
'user_lang' => $language,
|
||||||
|
'user_style' => 1,
|
||||||
|
'user_dateformat' => 'D M d, Y g:i a',
|
||||||
);
|
);
|
||||||
|
|
||||||
$user_id = user_add($user_row);
|
$user_id = user_add($user_row);
|
||||||
|
|
Loading…
Add table
Reference in a new issue