aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_convert.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-01-07 17:25:47 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-01-07 17:25:47 +0000
commit8f4c3a1feeb04cc5b5a613472e14be1b98bf493c (patch)
tree8c29e5d62a6adf386a35f49d9b3d29a9ec9d88f2 /phpBB/includes/functions_convert.php
parentec7936509ac13ff99ff1d43ce3850d7110313f74 (diff)
downloadforums-8f4c3a1feeb04cc5b5a613472e14be1b98bf493c.tar
forums-8f4c3a1feeb04cc5b5a613472e14be1b98bf493c.tar.gz
forums-8f4c3a1feeb04cc5b5a613472e14be1b98bf493c.tar.bz2
forums-8f4c3a1feeb04cc5b5a613472e14be1b98bf493c.tar.xz
forums-8f4c3a1feeb04cc5b5a613472e14be1b98bf493c.zip
some fixes...
git-svn-id: file:///svn/phpbb/trunk@6854 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_convert.php')
-rw-r--r--phpBB/includes/functions_convert.php29
1 files changed, 13 insertions, 16 deletions
diff --git a/phpBB/includes/functions_convert.php b/phpBB/includes/functions_convert.php
index 342d0bd2ef..6968950cea 100644
--- a/phpBB/includes/functions_convert.php
+++ b/phpBB/includes/functions_convert.php
@@ -1648,7 +1648,7 @@ function add_default_groups()
*/
function add_bots()
{
- global $db, $convert, $user;
+ global $db, $convert, $user, $config;
$sql = 'SELECT group_id FROM ' . GROUPS_TABLE . " WHERE group_name = 'BOTS'";
$result = $db->sql_query($sql);
@@ -1725,22 +1725,19 @@ function add_bots()
foreach ($bots as $bot_name => $bot_ary)
{
- $sql = 'INSERT INTO ' . USERS_TABLE . ' ' . $db->sql_build_array('INSERT', array(
- 'user_type' => GROUP_HIDDEN,
- 'group_id' => $group_id,
- 'username' => $bot_name,
- 'username_clean' => utf8_clean_string($bot_name),
- 'user_regdate' => time(),
- 'user_permissions' => '',
- 'user_sig' => '',
- 'user_interests' => '',
- 'user_password' => '',
- 'user_lang' => 'en',
- 'user_style' => 1,
- 'user_rank' => 1,
- 'user_colour' => '9E8DA7')
+ $user_row = array(
+ 'user_type' => USER_IGNORE,
+ 'group_id' => $group_id,
+ 'username' => $bot_name,
+ 'user_regdate' => time(),
+ 'user_password' => '',
+ 'user_colour' => '9E8DA7',
+ 'user_email' => '',
+ 'user_lang' => $config['default_lang'],
+ 'user_style' => 1,
+ 'user_timezone' => 0,
+ 'user_allow_massemail' => 0,
);
- $db->sql_query($sql);
$user_id = $db->sql_nextid();