From 68e80ad2df4b119c4528f200640ba507259d2bdb Mon Sep 17 00:00:00 2001 From: Graham Eames Date: Fri, 18 Nov 2005 22:16:59 +0000 Subject: [PATCH] Module information, exactly what it says on the tin git-svn-id: file:///svn/phpbb/trunk@5306 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/mcp/mcp_main.php | 29 +++++++++++++++++++++++++++++ phpBB/includes/mcp/mcp_queue.php | 28 ++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) diff --git a/phpBB/includes/mcp/mcp_main.php b/phpBB/includes/mcp/mcp_main.php index 0c74d60d0f..f6e866bf96 100644 --- a/phpBB/includes/mcp/mcp_main.php +++ b/phpBB/includes/mcp/mcp_main.php @@ -967,4 +967,33 @@ function mcp_fork_topic($topic_ids) } } +/** +* @package module_install +*/ +class mcp_main_info +{ + function module() + { + return array( + 'filename' => 'mcp_main', + 'title' => 'MCP_MAIN', + 'version' => '1.0.0', + 'modes' => array( + 'front' => array('title' => 'MCP_MAIN_FRONT', 'auth' => 'acl_m'), + 'forum_view' => array('title' => 'MCP_MAIN_FORUM_VIEW', 'auth' => 'acl_m'), + 'topic_view' => array('title' => 'MCP_MAIN_TOPIC_VIEW', 'auth' => 'acl_m'), + 'post_details' => array('title' => 'MCP_MAIN_POST_DETAILS', 'auth' => 'acl_m'), + ), + ); + } + + function install() + { + } + + function uninstall() + { + } +} + ?> \ No newline at end of file diff --git a/phpBB/includes/mcp/mcp_queue.php b/phpBB/includes/mcp/mcp_queue.php index 881c19b255..db0291f7ad 100644 --- a/phpBB/includes/mcp/mcp_queue.php +++ b/phpBB/includes/mcp/mcp_queue.php @@ -742,4 +742,32 @@ function disapprove_post($post_id_list) } } +/** +* @package module_install +*/ +class mcp_queue_info +{ + function module() + { + return array( + 'filename' => 'mcp_queue', + 'title' => 'MCP_QUEUE', + 'version' => '1.0.0', + 'modes' => array( + 'unapproved_topics' => array('title' => 'MCP_QUEUE_UNAPPROVED_TOPICS', 'auth' => 'acl_m_approve'), + 'unapproved_posts' => array('title' => 'MCP_QUEUE_UNAPPROVED_POSTS', 'auth' => 'acl_m_approve'), + 'reports' => array('title' => 'MCP_QUEUE_REPORTS', 'auth' => 'acl_m_approve'), + ), + ); + } + + function install() + { + } + + function uninstall() + { + } +} + ?> \ No newline at end of file