aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/profile.php
diff options
context:
space:
mode:
authorJames Atkinson <thefinn@users.sourceforge.net>2001-04-20 07:30:45 +0000
committerJames Atkinson <thefinn@users.sourceforge.net>2001-04-20 07:30:45 +0000
commit42039bc31a39b3c29bb1700dc5b0a3ea5b8348ed (patch)
tree1ab1298273af80ec1cd4bf1776f2e0da094173b4 /phpBB/profile.php
parente150b48726535fa2639449a1bb2ad6b9e015dfe9 (diff)
downloadforums-42039bc31a39b3c29bb1700dc5b0a3ea5b8348ed.tar
forums-42039bc31a39b3c29bb1700dc5b0a3ea5b8348ed.tar.gz
forums-42039bc31a39b3c29bb1700dc5b0a3ea5b8348ed.tar.bz2
forums-42039bc31a39b3c29bb1700dc5b0a3ea5b8348ed.tar.xz
forums-42039bc31a39b3c29bb1700dc5b0a3ea5b8348ed.zip
Added user selectable templates, and put the system template into the config database. Updated mysql_schema as well
git-svn-id: file:///svn/phpbb/trunk@200 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/profile.php')
-rw-r--r--phpBB/profile.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/phpBB/profile.php b/phpBB/profile.php
index 9bf1863e11..c0f56b0b14 100644
--- a/phpBB/profile.php
+++ b/phpBB/profile.php
@@ -201,6 +201,7 @@ switch($mode)
user_bbcode,
user_timezone,
user_lang,
+ user_template,
user_active,
user_actkey)
VALUES (
@@ -226,6 +227,7 @@ switch($mode)
'$alwaysbbcode',
'$timezone',
'$lang',
+ '$selected_template',
";
if($require_activation || $coppa)
{
@@ -286,6 +288,11 @@ switch($mode)
{
$coppa = FALSE;
}
+
+ if(!isset($selected_template))
+ {
+ $selected_template = $sys_template;
+ }
$template->assign_vars(array("COPPA" => $coppa,
"L_SUBMIT" => $l_submit,
"USERNAME" => $username,
@@ -314,6 +321,7 @@ switch($mode)
"LANGUAGE_SELECT" => language_select($default_lang, "lang"),
"THEME_SELECT" => theme_select($theme, $db),
"TIMEZONE_SELECT" => tz_select($timezone),
+ "TEMPLATE_SELECT" => template_select($selected_template),
"L_ICQNUMBER" => $l_icqnumber,
"L_STORECOOKIE" => $l_storecookie,
"L_MESSENGER" => $l_messenger,
@@ -325,6 +333,7 @@ switch($mode)
"L_ALWAYSSMILE" => $l_alwayssmile,
"L_BOARDLANG" => $l_boardlang,
"L_BOARDTHEME" => $l_boardtheme,
+ "L_BOARDTEMPLATE" => $l_boardtemplate,
"L_TIMEZONE" => $l_timezone,
"L_YES" => $l_yes,
"L_NO" => $l_no,