[1071]XOOPS模組開發
<?php
//判斷是否對該模組有管理權限
if (!isset($_SESSION['snewsAdmin'])) {
$_SESSION['snewsAdmin'] = ($xoopsUser) ? $xoopsUser->isAdmin() : false;
}
//回模組首頁
// $interface_menu[_TAD_TO_MOD] = "index.php";
// $interface_icon[_TAD_TO_MOD] = "";
//模組後台
if (power_chk("", 1)) {
$interface_menu['發布文章'] = "index.php?op=snews_form";
$interface_icon['發布文章'] = "";
$interface_menu['重製JSON'] = "index.php?op=mk_json";
$interface_icon['重製JSON'] = "";
$interface_menu['總表PDF'] = "pdf_all.php";
$interface_icon['總表PDF'] = "";
}
if ($_SESSION['snewsAdmin']) {
$interface_menu[_TAD_TO_ADMIN] = "admin/main.php";
$interface_icon[_TAD_TO_ADMIN] = "";
}