diff options
| author | Graham Eames <grahamje@users.sourceforge.net> | 2006-06-14 20:14:18 +0000 |
|---|---|---|
| committer | Graham Eames <grahamje@users.sourceforge.net> | 2006-06-14 20:14:18 +0000 |
| commit | fc5e04b669f16a5ba4c741c225501766a197c953 (patch) | |
| tree | 256b997023a776c442b35a4601045941809336ab | |
| parent | 7b8a5f99b1c380fdd94f1eda83da63207336ad92 (diff) | |
| download | forums-fc5e04b669f16a5ba4c741c225501766a197c953.tar forums-fc5e04b669f16a5ba4c741c225501766a197c953.tar.gz forums-fc5e04b669f16a5ba4c741c225501766a197c953.tar.bz2 forums-fc5e04b669f16a5ba4c741c225501766a197c953.tar.xz forums-fc5e04b669f16a5ba4c741c225501766a197c953.zip | |
Fix the changes to bot creation
git-svn-id: file:///svn/phpbb/trunk@6065 89ea8834-ac86-4346-8a33-228a782c2dd0
| -rwxr-xr-x | phpBB/install/install_install.php | 23 |
1 files 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); |
