$i++;
$adminmenu[$i]['title'] = "權限設定";
$adminmenu[$i]['link'] = 'admin/groupperm.php';
$adminmenu[$i]['desc'] = "權限設定";
$adminmenu[$i]['icon'] = 'images/admin/button.png';
```
二、admin/groupperm.php
三、language/tchinese\_utf8/main.php
```
//權限項目陣列(x軸)(編號超級重要!設定後,以後切勿隨便亂改。)
$gperm_itemid_arr = array(
'1' => array("title"=>"新增","anonymous"=>false),
'2' => array("title"=>"編輯","anonymous"=>false),
'3' => array("title"=>"刪除","anonymous"=>false),
'4' => array("title"=>"瀏覽","anonymous"=>true),
'5' => array("title"=>"列印","anonymous"=>false)
);
//權限名稱陣列(y軸)
$gperm_name_arr = array(
"ugm_webAdmin" => "網頁管理員"
);
```
四、admin/groupperm.php
本程式使用「[ugm\_tools2](https://github.com/webugm/ugm_tools2)」, 請自行下載,安裝
```
getVar('dirname');
# ---- 程式名稱(含副檔名) ----
$file_name = basename(__FILE__);
//取得本模組編號
$gperm_modid = $xoopsModule->getVar('mid');
/*-----------執行動作判斷區----------*/
$op=empty($_REQUEST['op'])?'':$_REQUEST['op'];
if($op=="op_insert"){
op_insert();
redirect_header($_SERVER['PHP_SELF'],3,_MA_PERM_SUCCESS);
}
$main="
"._MA_GROUPPERM_TITLE."