diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2005-10-04 21:31:35 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2005-10-04 21:31:35 +0000 |
commit | 5449c591a9721a63098f794a24e0bcef690ebb51 (patch) | |
tree | cffa50a6b77b053e3e738cada55f5623352977f5 /phpBB/includes/ucp/ucp_main.php | |
parent | 95ff1f3b64fdbf7d72fa86a94cf606a0369aa6bd (diff) | |
download | forums-5449c591a9721a63098f794a24e0bcef690ebb51.tar forums-5449c591a9721a63098f794a24e0bcef690ebb51.tar.gz forums-5449c591a9721a63098f794a24e0bcef690ebb51.tar.bz2 forums-5449c591a9721a63098f794a24e0bcef690ebb51.tar.xz forums-5449c591a9721a63098f794a24e0bcef690ebb51.zip |
- changed ucp classes to work with the new module system
- mcp is no longer working, i know.
git-svn-id: file:///svn/phpbb/trunk@5254 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/ucp/ucp_main.php')
-rw-r--r-- | phpBB/includes/ucp/ucp_main.php | 39 |
1 files changed, 13 insertions, 26 deletions
diff --git a/phpBB/includes/ucp/ucp_main.php b/phpBB/includes/ucp/ucp_main.php index f236f5dd9d..d7e16caabb 100644 --- a/phpBB/includes/ucp/ucp_main.php +++ b/phpBB/includes/ucp/ucp_main.php @@ -13,9 +13,16 @@ * ucp_main * UCP Front Panel */ -class ucp_main extends module +class ucp_main { - function ucp_main($id, $mode) + var $p_master; + + function ucp_main(&$p_master) + { + $this->p_master = &$p_master; + } + + function main($id, $mode) { global $config, $db, $user, $auth, $SID, $template, $phpbb_root_path, $phpEx; @@ -653,9 +660,8 @@ class ucp_main extends module break; case 'drafts': - global $ucp; - $pm_drafts = ($ucp->name == 'pm') ? true : false; + $pm_drafts = ($this->p_master->p_name == 'pm') ? true : false; $user->add_lang('posting'); @@ -820,7 +826,7 @@ class ucp_main extends module $template->assign_var('S_DRAFT_ROWS', $row_count); } - break; + break; } @@ -832,27 +838,8 @@ class ucp_main extends module 'S_UCP_ACTION' => $phpbb_root_path . "ucp.$phpEx$SID&i=$id&mode=$mode") ); - $this->display($user->lang['UCP_MAIN'], 'ucp_main_' . $mode . '.html'); - } - - function install() - { - } - - function uninstall() - { - } - - function module() - { - $details = array( - 'name' => 'UCP - Main', - 'description' => 'Front end for User Control Panel', - 'filename' => 'main', - 'version' => '1.0.0', - 'phpbbversion' => '2.2.0' - ); - return $details; + // Set desired template + $this->tpl_name = 'ucp_main_' . $mode; } } |