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:
70
phpBB/ucp/ucp_prefs.php
Normal file
70
phpBB/ucp/ucp_prefs.php
Normal 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&mode=personal";
|
||||
$submodules['VIEW'] = "module_id=$module_id&mode=view";
|
||||
$submodules['POST'] = "module_id=$module_id&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&module_id=$module_id&mode=$submode")
|
||||
);
|
||||
|
||||
ucp::output($user->lang['UCP_PROFILE'], 'ucp_prefs.html');
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user