1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

ok, thought about this now for too long. I think the best solution circumventing memory consumption and not introducing "hacks" is to seperate module information (and probably more in 3.2 for installation/uninstallation) from the main code.

git-svn-id: file:///svn/phpbb/trunk@5725 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen
2006-03-25 19:14:55 +00:00
parent 64fbadf3d6
commit 1a8c91b0d4
83 changed files with 1604 additions and 1162 deletions

View File

@@ -0,0 +1,39 @@
<?php
/**
*
* @package mcp
* @version $Id$
* @copyright (c) 2005 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
* @package module_install
*/
class mcp_ban_info
{
function module()
{
return array(
'filename' => 'mcp_ban',
'title' => 'MCP_BAN',
'version' => '1.0.0',
'modes' => array(
'email' => array('title' => 'MCP_BAN_EMAILS', 'auth' => 'acl_m_ban'),
'ip' => array('title' => 'MCP_BAN_IPS', 'auth' => 'acl_m_ban'),
'user' => array('title' => 'MCP_BAN_USERNAMES', 'auth' => 'acl_m_ban'),
),
);
}
function install()
{
}
function uninstall()
{
}
}
?>

View File

@@ -0,0 +1,39 @@
<?php
/**
*
* @package mcp
* @version $Id$
* @copyright (c) 2005 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
* @package module_install
*/
class mcp_logs_info
{
function module()
{
return array(
'filename' => 'mcp_logs',
'title' => 'MCP_LOGS',
'version' => '1.0.0',
'modes' => array(
'front' => array('title' => 'MCP_LOGS_FRONT', 'auth' => ''),
'forum_logs' => array('title' => 'MCP_LOGS_FORUM_VIEW', 'auth' => 'acl_m_,$id'),
'topic_logs' => array('title' => 'MCP_LOGS_TOPIC_VIEW', 'auth' => 'acl_m_,$id'),
),
);
}
function install()
{
}
function uninstall()
{
}
}
?>

View File

@@ -0,0 +1,40 @@
<?php
/**
*
* @package mcp
* @version $Id$
* @copyright (c) 2005 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
* @package module_install
*/
class mcp_main_info
{
function module()
{
return array(
'filename' => 'mcp_main',
'title' => 'MCP_MAIN',
'version' => '1.0.0',
'modes' => array(
'forum_view' => array('title' => 'MCP_MAIN_FORUM_VIEW', 'auth' => 'acl_m_,$id'),
'front' => array('title' => 'MCP_MAIN_FRONT', 'auth' => 'acl_m_'),
'post_details' => array('title' => 'MCP_MAIN_POST_DETAILS', 'auth' => 'acl_m_,$id'),
'topic_view' => array('title' => 'MCP_MAIN_TOPIC_VIEW', 'auth' => 'acl_m_,$id'),
),
);
}
function install()
{
}
function uninstall()
{
}
}
?>

View File

@@ -0,0 +1,38 @@
<?php
/**
*
* @package mcp
* @version $Id$
* @copyright (c) 2005 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
* @package module_install
*/
class mcp_notes_info
{
function module()
{
return array(
'filename' => 'mcp_notes',
'title' => 'MCP_NOTES',
'version' => '1.0.0',
'modes' => array(
'front' => array('title' => 'MCP_NOTES_FRONT', 'auth' => ''),
'user_notes' => array('title' => 'MCP_NOTES_USER', 'auth' => ''),
),
);
}
function install()
{
}
function uninstall()
{
}
}
?>

View File

@@ -0,0 +1,39 @@
<?php
/**
*
* @package mcp
* @version $Id$
* @copyright (c) 2005 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
* @package module_install
*/
class mcp_queue_info
{
function module()
{
return array(
'filename' => 'mcp_queue',
'title' => 'MCP_QUEUE',
'version' => '1.0.0',
'modes' => array(
'approve_details' => array('title' => 'MCP_QUEUE_APPROVE_DETAILS', 'auth' => 'acl_m_approve || aclf_m_approve'),
'unapproved_topics' => array('title' => 'MCP_QUEUE_UNAPPROVED_TOPICS', 'auth' => 'acl_m_approve || aclf_m_approve'),
'unapproved_posts' => array('title' => 'MCP_QUEUE_UNAPPROVED_POSTS', 'auth' => 'acl_m_approve || aclf_m_approve'),
),
);
}
function install()
{
}
function uninstall()
{
}
}
?>

View File

@@ -0,0 +1,39 @@
<?php
/**
*
* @package mcp
* @version $Id$
* @copyright (c) 2005 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
* @package module_install
*/
class mcp_reports_info
{
function module()
{
return array(
'filename' => 'mcp_reports',
'title' => 'MCP_REPORTS',
'version' => '1.0.0',
'modes' => array(
'report_details' => array('title' => 'MCP_REPORT_DETAILS', 'auth' => 'acl_m_report || aclf_m_report'),
'reports' => array('title' => 'MCP_REPORTS', 'auth' => 'acl_m_report ||aclf_m_report'),
'reports_closed' => array('title' => 'MCP_REPORTS_CLOSED', 'auth' => 'acl_m_report || aclf_m_report'),
),
);
}
function install()
{
}
function uninstall()
{
}
}
?>

View File

@@ -0,0 +1,40 @@
<?php
/**
*
* @package mcp
* @version $Id$
* @copyright (c) 2005 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
* @package module_install
*/
class mcp_warn_info
{
function module()
{
return array(
'filename' => 'mcp_warn',
'title' => 'MCP_WARN',
'version' => '1.0.0',
'modes' => array(
'front' => array('title' => 'MCP_WARN_FRONT', 'auth' => ''),
'list' => array('title' => 'MCP_WARN_LIST', 'auth' => ''),
'warn_user' => array('title' => 'MCP_WARN_USER', 'auth' => ''),
'warn_post' => array('title' => 'MCP_WARN_POST', 'auth' => 'acl_m_,$id'),
),
);
}
function install()
{
}
function uninstall()
{
}
}
?>