First, source/admincp/menu/under the New menu file menus (without affecting the original base) named: menu_managerment.php
Internal code, the main definition of the top menu: $topmenu [' managerment '] = ';, left menu: $menu [' managerment '] [] = Array (' Menu_managerment_index ', ' Managerment_index '), left menu Menu_managerment_index = Action=managerment&operation=index
Second, the admin.php file to the $admincp_actions_normal array to add a permission value, you can have access to the value of the name is: managerment;
Three, source/admincp/under a new module file: admincp_managerment.php, built-in code:
if (! defined (' In_discuz ') | | ! defined (' IN_ADMINCP ')) {exit(' Access Denied ');}
This file can be self-defined PHP logic code, can be executed according to Operation, is the main logic file module;
Iv. language Pack, new menu name language file: lang_admincp_managerment.php, Internal code:
$extend _lang Array (' menu_managerment_index ' = ' home ',); $lang [' header_managerment '] = ' befound management '; // top Menu Text $GLOBALS [' Admincp_actions_normal '] [] = ' managerment ';
Discuz Background Module Development process