1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-05 16:27:38 +02:00

A couple of initial changes for the new module system with the mcp

(further changes are needed elsewhere for these to actually be
useful....)


git-svn-id: file:///svn/phpbb/trunk@5298 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Graham Eames
2005-11-09 20:36:04 +00:00
parent 81ab6d83b8
commit ace13c86a5
3 changed files with 32 additions and 19 deletions

View File

@@ -13,10 +13,17 @@
* mcp_queue
* Handling the moderation queue
*/
class mcp_queue extends module
class mcp_queue
{
function mcp_queue($id, $mode, $url)
var $p_master;
function mcp_main(&$p_master)
{
$this->p_master = &$p_master;
}
function main($id, $mode)
{
global $auth, $db, $user, $template;
global $config, $phpbb_root_path, $phpEx, $SID;
@@ -122,7 +129,7 @@ class mcp_queue extends module
'POST_ID' => $post_info['post_id'])
);
$this->display($user->lang['MCP_QUEUE'], 'mcp_post.html');
$this->tpl_name = 'mcp_post';
break;
@@ -278,7 +285,7 @@ class mcp_queue extends module
'S_FORUM_OPTIONS' => $forum_options)
);
$this->display($user->lang['MCP_QUEUE'], 'mcp_queue.html');
$this->tpl_name = 'mcp_queue';
break;
}
}