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

📄 freelist_action.php

📁 这是matlab的一个小程序
💻 PHP
字号:
<?php
require_once(dirname(__FILE__)."/config.php");
CheckPurview('c_FreeList');
if(!isset($types))
{
	$types = '';
}
if(!isset($nodefault))
{
	$nodefault = '0';
}
/*-------------
function __AddNew()
--------------*/
if($dopost=='addnew')
{
	$atts = " pagesize='$pagesize' col='$col' titlelen='$titlelen' orderby='$orderby' orderway='$order' ";
	$ntype = '';
	$edtime = time();
	if(empty($channel))
	{
		showmsg('棰戦亾绫诲瀷涓嶈兘涓虹┖','-1');
		exit();
	}
	if(is_array($types))
	{
		foreach($types as $v) $ntype .= $v.' ';
	}
	if($ntype!='')
	{
		$atts .= " type='".trim($ntype)."' ";
	}
	if(!empty($typeid))
	{
		$atts .= " typeid='$typeid' ";
	}
	if(!empty($channel))
	{
		$atts .= " channel='$channel' ";
	}
	if(!empty($subday))
	{
		$atts .= " subday='$subday' ";
	}
	if(!empty($titlelen))
	{
		$atts .= " keyword='$keyword' ";
	}
	if(!empty($att))
	{
		$atts .= " att='$att' ";
	}
	$innertext = trim($innertext);
	if(!empty($innertext))
	{
		$innertext = stripslashes($innertext);
	}
	$listTag = "{dede:list $atts}$innertext{/dede:list}";
	$listTag = addslashes($listTag);
	$inquery = "
     INSERT INTO `#@__freelist`(`title` , `namerule`  , `listdir` , `defaultpage` , `nodefault` , `templet` , `edtime` , `click` , `listtag` , `keyword` , `description`)
     VALUES ('$title','$namerule','$listdir','$defaultpage','$nodefault','$templet','$edtime','0','$listTag','$keyword','$description');
   ";
	$dsql->ExecuteNoneQuery($inquery);
	ShowMsg("鎴愬姛澧炲姞涓

⌨️ 快捷键说明

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