From fc5e04b669f16a5ba4c741c225501766a197c953 Mon Sep 17 00:00:00 2001 From: Graham Eames Date: Wed, 14 Jun 2006 20:14:18 +0000 Subject: [PATCH] Fix the changes to bot creation git-svn-id: file:///svn/phpbb/trunk@6065 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/install/install_install.php | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/phpBB/install/install_install.php b/phpBB/install/install_install.php index a8c74537f3..6572efbf70 100755 --- a/phpBB/install/install_install.php +++ b/phpBB/install/install_install.php @@ -1343,6 +1343,12 @@ class install_install extends module { global $db, $phpbb_root_path, $phpEx; + // Obtain any submitted data + foreach ($this->request_vars as $var) + { + $$var = request_var($var, ''); + } + $sql = 'SELECT group_id FROM ' . GROUPS_TABLE . " WHERE group_name = 'BOTS'"; @@ -1364,13 +1370,16 @@ class install_install extends module foreach ($this->bot_list as $bot_name => $bot_ary) { $user_row = array( - 'user_type' => GROUP_HIDDEN, - 'group_id' => $group_id, - 'username' => $bot_name, - 'user_regdate' => time(), - 'user_password' => '', - 'user_colour' => '9E8DA7', - 'user_email' => '' + 'user_type' => GROUP_HIDDEN, + 'group_id' => $group_id, + 'username' => $bot_name, + 'user_regdate' => time(), + 'user_password' => '', + 'user_colour' => '9E8DA7', + 'user_email' => '', + 'user_lang' => $language, + 'user_style' => 1, + 'user_dateformat' => 'D M d, Y g:i a', ); $user_id = user_add($user_row);