⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mytag_tag_guide_ok.php

📁 强大的PHP内容管理系统尽量不要让站长把时间都花费在为您修正说明上。压缩包解压
💻 PHP
字号:
<?php 
require_once(dirname(__FILE__)."/config.php");
CheckPurview('temp_Other');
//根据条件生成标记
$attlist = "";
$attlist .= ' row='.$row;
$attlist .= ' titlelen='.$titlelen;
if($orderby!='senddate')  $attlist .= ' orderby='.$orderby;
if($order!='desc') $attlist .= ' order='.$order;
if($typeid>0) $attlist .= ' typeid='.$typeid;
if($channel>0) $attlist .= ' channelid='.$channel;
if($att>0) $attlist .= ' att='.$att;
if($col>1) $attlist .= ' col='.$col;
if($subday>0) $attlist .= ' subday='.$subday;
if(!empty($types)){
	$attlist .= " type='";
	foreach($types as $v) $attlist .= $v.'.';
	$attlist .= "'";
}
$innertext = stripslashes($innertext);
if($keyword!="") $attlist .= " keyword='$keyword'";
$fulltag = "{dede:arclist$attlist}
$innertext
{/dede:arclist}\r\n";

if($dopost=='savetag')
{
	$dsql = new DedeSql(false);
	$fulltag = addslashes($fulltag);
	$tagname = "auto";
	$inQuery = "
	 Insert Into #@__mytag(typeid,tagname,timeset,starttime,endtime,normbody,expbody)
	 Values('0','$tagname','0','0','0','$fulltag','');
	";
	$dsql->ExecuteNoneQuery($inQuery);
	$id = $dsql->GetLastID();
	$dsql->ExecuteNoneQuery("Update #@__mytag set tagname='{$tagname}_{$id}' where aid='$id'");
	$dsql->Close();
	$fulltag = "{dede:mytag name='{$tagname}_{$id}' ismake='yes'/}";
}

require_once(dirname(__FILE__)."/templets/mytag_tag_guide_ok.htm");


ClearAllLink();
?>

⌨️ 快捷键说明

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