aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2006-12-10 18:14:47 +0000
committerDavid M <davidmj@users.sourceforge.net>2006-12-10 18:14:47 +0000
commit7eff1949cac08271fd745feb20564ee7dc9bee80 (patch)
tree96a5c2bcfe38bb2cb032cfdd1e5f470d5a03dd43 /phpBB/install
parentc02215f7ccaf98174f87795e312273a1d85eaf44 (diff)
downloadforums-7eff1949cac08271fd745feb20564ee7dc9bee80.tar
forums-7eff1949cac08271fd745feb20564ee7dc9bee80.tar.gz
forums-7eff1949cac08271fd745feb20564ee7dc9bee80.tar.bz2
forums-7eff1949cac08271fd745feb20564ee7dc9bee80.tar.xz
forums-7eff1949cac08271fd745feb20564ee7dc9bee80.zip
#5242
git-svn-id: file:///svn/phpbb/trunk@6742 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/install')
-rw-r--r--phpBB/install/database_update.php10
-rw-r--r--phpBB/install/schemas/schema_data.sql1
2 files changed, 11 insertions, 0 deletions
diff --git a/phpBB/install/database_update.php b/phpBB/install/database_update.php
index 92e0e593fa..5717dbc4d2 100644
--- a/phpBB/install/database_update.php
+++ b/phpBB/install/database_update.php
@@ -518,6 +518,16 @@ if (version_compare($current_version, '3.0.b4', '<'))
set_config('ldap_password', '');
set_config('ldap_user', '');
+ $sql = 'SELECT user_colour
+ FROM ' . USERS_TABLE . '
+ WHERE user_type IN (' . USER_NORMAL . ', ' . USER_FOUNDER . ')
+ ORDER BY user_id DESC';
+ $result = $db->sql_query_limit($sql, 1);
+ $row = $db->sql_fetchrow($result);
+ $db->sql_freeresult($result);
+
+ set_config('newest_user_colour', $row['user_colour'], true);
+
$no_updates = false;
}
diff --git a/phpBB/install/schemas/schema_data.sql b/phpBB/install/schemas/schema_data.sql
index d4c72a2989..abc6021deb 100644
--- a/phpBB/install/schemas/schema_data.sql
+++ b/phpBB/install/schemas/schema_data.sql
@@ -210,6 +210,7 @@ INSERT INTO phpbb_config (config_name, config_value) VALUES ('warnings_gc', '144
INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('cache_last_gc', '0', 1);
INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('database_last_gc', '0', 1);
INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('last_queue_run', '0', 1);
+INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('newest_user_colour', 'AA0000', 1);
INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('newest_user_id', '2', 1);
INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('newest_username', '', 1);
INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('num_files', '0', 1);