1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

Had to make a start on the UCP proper ... note that things may and in places are quite broken

git-svn-id: file:///svn/phpbb/trunk@3996 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen
2003-05-09 14:11:55 +00:00
parent 21ce5c4831
commit 2fc8842b0f
15 changed files with 1096 additions and 377 deletions

70
phpBB/ucp/ucp_prefs.php Normal file
View File

@@ -0,0 +1,70 @@
<?php
/***************************************************************************
* usercp_profile.php
* -------------------
* begin : Saturday, Feb 21, 2003
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id$
*
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* 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)
{
global $config, $db, $user, $SID, $template, $phpEx;
$submode = ($_REQUEST['mode']) ? htmlspecialchars($_REQUEST['mode']) : 'personal';
// Setup internal subsection display
$submodules['PERSONAL'] = "module_id=$module_id&amp;mode=personal";
$submodules['VIEW'] = "module_id=$module_id&amp;mode=view";
$submodules['POST'] = "module_id=$module_id&amp;mode=post";
$user->lang = array_merge($user->lang, array(
'UCP_PERSONAL' => 'Personal Settings',
'UCP_VIEW' => 'Viewing Posts',
'UCP_POST' => 'Posting Messages')
);
ucp::subsection($submodules, $submode);
unset($submodules);
switch($submode)
{
case 'view':
break;
case 'post':
break;
default:
break;
}
$template->assign_vars(array(
'L_TITLE' => $user->lang['UCP_' . strtoupper($submode)],
'S_DISPLAY_' . strtoupper($submode) => true,
'S_HIDDEN_FIELDS' => $s_hidden_fields,
'S_UCP_ACTION' => "ucp.$phpEx$SID&amp;module_id=$module_id&amp;mode=$submode")
);
ucp::output($user->lang['UCP_PROFILE'], 'ucp_prefs.html');
}
}
?>