📄 category.inc.php
字号:
<?php
defined('IN_PHPCMS') or exit('Access Denied');
require_once 'tree.class.php';
require_once 'admin/category.class.php';
$tree = new tree;
$catid = isset($catid) ? intval($catid) : 0;
$cat = new category($mod);
$action = $action ? $action : 'manage';
if(!$forward) $forward = '?mod='.$mod.'&file='.$file.'&action=manage';
switch($action)
{
case 'add':
if($dosubmit)
{
if(!$category['catname']) showmessage($LANG['category_name_not_null']);
$category['catname'] = trim($category['catname']);
$category['catdir'] = trim($category['catdir']);
$catid = $cat->add($category, $setting);
$priv_group->update('catid', $catid, $priv_groupid);
$priv_role->update('catid', $catid, $priv_roleid);
cache_common();
showmessage('娣诲姞鎴愬姛锛佸紑濮嬫洿鏂扮綉绔欏湴鍥
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -