function index() { if (!is_admin()) { return info_page(__('ADMIN_ONLY_LOGIN')); } $data['top'] = $data['top_title'] = __('PLUGIN_ADMIN_PAGE_TITLE'); $data['plist'] = scan_plugin_info(); render($data, 'web', 'card'); }
function index() { if (!is_admin()) { return info_page('只有管理员才能进入此页面,<a href="?c=guest&a=logout">请先用管理员账户登入</a>'); } $data['top'] = $data['top_title'] = '插件管理'; $data['plist'] = scan_plugin_info(); render($data, 'web', 'card'); }