欢迎进入广州凡科互联网科技有限公司网站
全国服务热线
4000-399-000
dedecms将题目立即连接到外界连接
时间: 2021-02-23 08:19 浏览次数:
真实的【将题目立即连接到外界连接】作用:改法:第一步假定dede_为表作为前缀,则在dede_archives 加上一字段名字段名名:redirecturl开启:view.php寻找:CODE: $arc- Display();$arc- Close(); [Cop

真实的【将题目立即连接到外界连接】
作用:
改法:
第一步
假定dede_为表作为前缀,则在dede_archives 加上一字段名
字段名名:redirecturl
开启:view.php
寻找:
CODE: $arc- Display();
$arc- Close(); [Copy to clipboard] 
前边添加:
CODE: $url = new Archives($aid);
$redirecturl = $url- ArcInfos[ redirecturl
if ($redirecturl != ) {
$dsql = new DedeSql(false);
$dsql- SetQuery( Update dede_archives set click=click 1 where ID= $aid
$dsql- ExecuteNoneQuery();
header( Location:$redirecturl
exit();
}
$url- Close(); [Copy to clipboard] 
开启:article_add.php
寻找
CODE:  table width= 600 border= 0 cellspacing= 0 cellpadding= 0
tr  
td width= 80 阅读文章管理权限: /td
td width= 224 select name= arcrank id= arcrank > ?
$urank = $cuserLogin- getUserRank();
$dsql = new DedeSql(false);
$dsql- SetQuery( Select * from dede_arcrank where adminrank = $urank
$dsql- Execute();
while($row = $dsql- GetObject())
{
echo option value= .$row- rank. .$row- membername. /option

}
$dsql- Close();
?
/select /td
td width= 63 公布选择项: /td
td input name= ishtml type= radio > 转化成HTML 
input type= radio name= ishtml > 仅动态性访问 /td
/tr
/table [Copy to clipboard] 
后边添加:
CODE:  table width= 600 border= 0 cellspacing= 0 cellpadding= 0
tr  
td width= 80 转为 /td
td width= 520 input name= redirecturl type= text id= redirecturl > /tr
/table [Copy to clipboard] 
开启:article_edit.php
寻找:
CODE:  table width= 600 border= 0 cellspacing= 0 cellpadding= 0
tr  
td width= 80 阅读文章管理权限: /td
td width= 224
select name= arcrank id= arcrank > option value= ?=$arcRow[ arcrank ]? ?=$arcRow[ rankname ]? /option
?
$urank = $cuserLogin- getUserRank();
$dsql = new DedeSql(false);
$dsql- SetQuery( Select * from dede_arcrank where adminrank = $urank
$dsql- Execute();
while($row = $dsql- GetObject())
{
echo option value= .$row- rank. .$row- membername. /option

}
$dsql- Close();
?
/select /td
td width= 63 公布选择项: /td
td
input name= ishtml type= radio > 转化成HTML 
input type= radio name= ishtml > 仅动态性访问
/td
/tr
/table [Copy to clipboard] 
后边添加:
CODE:  table width= 600 border= 0 cellspacing= 0 cellpadding= 0
tr  
td width= 80 转为 /td
td width= 520 input name= redirecturl type= text id= redirecturl > /tr
/table [Copy to clipboard] 
开启:action_archives_save.php
寻找
CODE: if($ishtml==0) $ismake = -1; [Copy to clipboard] 
改成
CODE: if($redirecturl!= ) $ishtml = 0;
if($ishtml==0) $ismake = -1; [Copy to clipboard] 
适度地区添加:
CODE: $redirecturl = cn_substr($redirecturl,250); [Copy to clipboard] 
查寻句子:对比添加redirecturl
CODE: 
//添加数据信息库的SQL句子
//----------------------------------
$inQuery = INSERT INTO dede_archives(
typeid,typeid2,mend,ismake,channel,
arcrank,click,money,title,color,writer,source,litpic,
pubdate,senddate,adminID,memberID,description,keywords,redirecturl) 
VALUES ( $typeid , $typeid2 , $sortrank , $iscommend , $ismake , $channelid ,
$arcrank , 0 , $money , $title , $color , $writer , $source , $litpic ,
$pubdate , $senddate , $adminID , 0 , $description , $keywords , $redirecturl [Copy to clipboard] 
开启:action_archives_edit_save.php
寻找
CODE: if($ishtml==0) $ismake = -1; [Copy to clipboard] 
改成
CODE: if($redirecturl!= ) $ishtml = 0;
if($ishtml==0) $ismake = -1; [Copy to clipboard] 
适度地区添加:
CODE: $redirecturl = cn_substr($redirecturl,250); [Copy to clipboard] 
查寻句子:
CODE: //升级数据信息库的SQL句子
//----------------------------------
$inQuery =
update dede_archives set
typeid= $typeid ,
typeid2= $typeid2 ,
sortrank= $sortrank ,
iscommend= $iscommend ,
ismake= $ismake ,
arcrank= $arcrank ,
money= $money ,
title= $title ,
color= $color ,
writer= $writer ,
source= $source ,
litpic= $litpic ,
pubdate= $pubdate ,
description= $description ,
keywords= $keywords ,
redirecturl= $redirecturl  
where ID= $ID [Copy to clipboard] 
CODE: [/code]
[code] [Copy to clipboard] 
CODE: [/code]
[code]


dedecms模版,dedecms公司模版,dedecms新闻资讯模版,高档HTML5响应式模版,dedecms手机上模版,织梦cms模版实例教程,网站模版,网页页面模版,完全免费网页页面模版



Copyright © 广州凡科互联网科技有限公司 版权所有 粤ICP备10235580号
全国服务电话:4000-399-000   传真:021-45545458
公司地址:广州市海珠区工业大道北67号凤凰创意园