aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/info/acp_modules.php
blob: 97616af22d85cb3329357545d263b434d705bf03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/**
*
* @package acp
* @copyright (c) 2005 phpBB Group
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
*/

/**
* @package module_install
*/
class acp_modules_info
{
	function module()
	{
		global $phpbb_dispatcher;

		$modules = array(
			'acp'		=> array('title' => 'ACP', 'auth' => 'acl_a_modules', 'cat' => array('ACP_MODULE_MANAGEMENT')),
			'ucp'		=> array('title' => 'UCP', 'auth' => 'acl_a_modules', 'cat' => array('ACP_MODULE_MANAGEMENT')),
			'mcp'		=> array('title' => 'MCP', 'auth' => 'acl_a_modules', 'cat' => array('ACP_MODULE_MANAGEMENT')),
		),

		$vars = array('modules');
		$event = new phpbb_event_data(compact($vars));
		$phpbb_dispatcher->dispatch('core.acp_modules_modules', $event);
		extract($event->get_data_filtered($vars));

		$data = array(
			'filename'	=> 'acp_modules',
			'title'		=> 'ACP_MODULE_MANAGEMENT',
			'version'	=> '1.0.0',
			'modes'		=> $modules,
		);

		return $data
	}

	function install()
	{
	}

	function uninstall()
	{
	}
}