mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-12 03:34:04 +02:00
Returned to instantiation of ucp object ... perhaps this approach is better? Altered basic info for ucp_modules, updated editor to allow alternative form and textarea names ... still lots of fudginess, hhhmmmm fudge, uuuuugggghhh
git-svn-id: file:///svn/phpbb/trunk@4003 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/***************************************************************************
|
||||
* usercp_profile.php
|
||||
* ucp_prefs.php
|
||||
* -------------------
|
||||
* begin : Saturday, Feb 21, 2003
|
||||
* copyright : (C) 2001 The phpBB Group
|
||||
@@ -8,7 +8,6 @@
|
||||
*
|
||||
* $Id$
|
||||
*
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
@@ -18,27 +17,38 @@
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
class ucp_prefs extends ucp
|
||||
{
|
||||
function main($module_id)
|
||||
function main($id)
|
||||
{
|
||||
global $config, $db, $user, $SID, $template, $phpEx;
|
||||
|
||||
$submode = ($_REQUEST['mode']) ? htmlspecialchars($_REQUEST['mode']) : 'personal';
|
||||
|
||||
// Setup internal subsection display
|
||||
$submodules['PERSONAL'] = "module_id=$module_id&mode=personal";
|
||||
$submodules['VIEW'] = "module_id=$module_id&mode=view";
|
||||
$submodules['POST'] = "module_id=$module_id&mode=post";
|
||||
$submodules['PERSONAL'] = "i=$id&mode=personal";
|
||||
$submodules['VIEW'] = "i=$id&mode=view";
|
||||
$submodules['POST'] = "i=$id&mode=post";
|
||||
|
||||
ucp::subsection($submodules, $submode);
|
||||
$this->subsection($submodules, $submode);
|
||||
unset($submodules);
|
||||
|
||||
switch($submode)
|
||||
{
|
||||
case 'personal':
|
||||
$template->assign_vars(array(
|
||||
'VIEW_EMAIL_YES' => ($user->data['user_viewemail ']) ? ' checked="checked"' : '',
|
||||
'VIEW_EMAIL_NO' => (!$user->data['user_viewemail ']) ? ' checked="checked"' : '',
|
||||
'DATE_FORMAT' => $user->data['user_dateformat'],
|
||||
|
||||
'S_LANG_OPTIONS' => language_select($user->data['user_lang']),
|
||||
'S_STYLE_OPTIONS' => style_select($user->data['user_style']),
|
||||
'S_TZ_OPTIONS' => tz_select($user->data['user_timezone']),)
|
||||
);
|
||||
break;
|
||||
|
||||
case 'view':
|
||||
break;
|
||||
|
||||
@@ -54,10 +64,10 @@ class ucp_prefs extends ucp
|
||||
|
||||
'S_DISPLAY_' . strtoupper($submode) => true,
|
||||
'S_HIDDEN_FIELDS' => $s_hidden_fields,
|
||||
'S_UCP_ACTION' => "ucp.$phpEx$SID&module_id=$module_id&mode=$submode")
|
||||
'S_UCP_ACTION' => "ucp.$phpEx$SID&i=$id&mode=$submode")
|
||||
);
|
||||
|
||||
ucp::output($user->lang['UCP_PROFILE'], 'ucp_prefs.html');
|
||||
$this->output($user->lang['UCP_PROFILE'], 'ucp_prefs.html');
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user