tag_edit.inc.php

来自「phpcms2007很好的cms内容管理系统,操作方便」· PHP 代码 · 共 29 行

PHP
29
字号
<?php 
defined('IN_PHPCMS') or exit('Access Denied');
$function or showmessage($LANG['function_name_not_null']);

if($dosubmit)
{
	$tagname or showmessage($LANG['label_name_not_null']);
	if(!$tag->exists($tagname)) showmessage($LANG['label']." $tagname ".$LANG['exist_change_name']);
	if($function == 'phpcms_cat')
	{
		if(!isset($tag_config['child'])) $tag_config['child'] = 0;
		if(!isset($tag_config['open'])) $tag_config['open'] = 0;
	}
	$tag->update($tagname , $tag_config, ''.$function.'('.$tag_funcs[$function].')');
	showmessage($LANG['operation_success'], $referer);
}
else
{
	$tag_config = $tag->get_tag_config($tagname);
	if($function == 'phpcms_cat')
	{
		if(!isset($tag_config['child'])) $tag_config['child'] = 0;
		if(!isset($tag_config['open'])) $tag_config['open'] = 0;
		$CATEGORY = cache_read('categorys_'.$keyid.'.php');
		$category_select = category_select('tag_config[catid]', '', $tag_config['catid']);
	}
	include admintpl('tag_'.$function.'_edit');
}
?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?