?pwd=jmwx
發布時間: 2024-07-14 22:15:29
❶ 求大神幫解這段php加密代碼,,把eval改為exit 可是還是沒效果呢那應該怎麼做呢
<?php
require_once(dirname(__FILE__).'/config.php');
CheckPurview('a_New,a_AccNew');
require_once(DEDEINC.'/customfields.func.php');
require_once(DEDEADMIN.'/inc/inc_archives_functions.php');
if(empty($dopost))
{
$dopost='';
}
if($dopost!='save')
{
require_once(DEDEINC.'/dedetag.class.php');
require_once(DEDEADMIN.'/inc/inc_catalog_options.php');
ClearMyAddon();
$channelid=empty($channelid)?0:intval($channelid);
$cid=empty($cid)?0:intval($cid);
if($cid>0&&$channelid==0)
{
$row=$dsql->GetOne("SelectchanneltypeFrom`#@__arctype`whereid='$cid';");
$channelid=$row['channeltype'];
}
else
{
if($channelid==0)
{
ShowMsg('無法識別模型信息,因此無法操作!','-1');
exit();
}
}
$cInfos=$dsql->GetOne("Select*From`#@__channeltype`whereid='$channelid'");
$channelid=$cInfos['id'];
$maxWright=$dsql->GetOne("SELECTCOUNT(*)ASccFROM#@__archives");
includeDedeInclude('templets/archives_line_add.htm');
exit();
}
elseif($dopost=='save')
{
require_once(DEDEINC.'/image.func.php');
require_once(DEDEINC.'/oxwindow.class.php');
$flag=isset($flags)?join(',',$flags):'';
$notpost=isset($notpost)&&$notpost==1?1:0;
if(empty($click))$click=($cfg_arc_click=='-1'?mt_rand(50,200):$cfg_arc_click);
if(empty($typeid2))$typeid2=0;
if(!isset($autokey))$autokey=0;
if(!isset($remote))$remote=0;
if(!isset($dellink))$dellink=0;
if(!isset($autolitpic))$autolitpic=0;
if(empty($click))$click=($cfg_arc_click=='-1'?mt_rand(50,200):$cfg_arc_click);
if($typeid==0)
{
ShowMsg('請指定文檔的欄目!','-1');
exit();
}
if(empty($channelid))
{
ShowMsg('文檔為非指定的類型,請檢查你發布內容的表單是否合法!','-1');
exit();
}
if(!CheckChannel($typeid,$channelid))
{
ShowMsg('你所選擇的欄目與當前模型不相符,請選擇白色的選項!','-1');
exit();
}
if(!TestPurview('a_New'))
{
CheckCatalog($typeid,"對不起,你沒有操作欄目{$typeid}的許可權!");
}
if(empty($writer))$writer=$cuserLogin->getUserName();
if(empty($source))$source='未知';
$pubdate=GetMkTime($pubdate);
$senddate=time();
$sortrank=AddDay($pubdate,$sortup);
$ismake=$ishtml==0?-1:0;
$title=ereg_replace('"','"',$title);
$title=cn_substrR($title,$cfg_title_maxlen);
$shorttitle=cn_substrR($shorttitle,36);
$color=cn_substrR($color,7);
$writer=cn_substrR($writer,20);
$source=cn_substrR($source,30);
$description=cn_substrR($description,$cfg_auot_description);
$keywords=cn_substrR($keywords,60);
$filename=trim(cn_substrR($filename,40));
$userip=GetIP();
$isremote=(empty($isremote)?0:$isremote);
$serviterm=empty($serviterm)?"":$serviterm;
if(!TestPurview('a_Check,a_AccCheck,a_MyCheck'))
{
$arcrank=-1;
}
$adminid=$cuserLogin->getUserID();
if(empty($ddisremote))
{
$ddisremote=0;
}
$litpic=GetDDImage('none',$picname,$ddisremote);
$arcID=GetIndexKey($arcrank,$typeid,$sortrank,$channelid,$senddate,$adminid);
if(empty($arcID))
{
ShowMsg("無法獲得主鍵,因此無法進行後續操作!","-1");
exit();
}
$inadd_f=$inadd_v='';
if(!empty($dede_addonfields))
{
$addonfields=explode(';',$dede_addonfields);
if(is_array($addonfields))
{
foreach($addonfieldsas$v)
{
if($v=='')continue;
$vs=explode(',',$v);
if($vs[1]=='htmltext'||$vs[1]=='textdata')
{
${$vs[0]}=AnalyseHtmlBody(${$vs[0]},$description,$litpic,$keywords,$vs[1]);
}
else
{
if(!isset(${$vs[0]}))${$vs[0]}='';
${$vs[0]}=GetFieldValueA(${$vs[0]},$vs[1],$arcID);
}
$inadd_f.=','.$vs[0];
$inadd_v.=",'".${$vs[0]}."'";
}
}
}
if($litpic!=''&&!ereg('p',$flag))
{
$flag=($flag==''?'p':$flag.',p');
}
if($redirecturl!=''&&!ereg('j',$flag))
{
$flag=($flag==''?'j':$flag.',j');
}
if(ereg('j',$flag))$ismake=-1;
$noo=count($att[from]);
if($noo>=0)
{
$okxc=okfromzj($noo,$att[from],$att[to],$att[by],$att[zc],$att[zhc],$att[wc],$att[home],$att[xingcheng]);
$xcjd=xcjd($noo,$att[jd]);
}
if($allll>0and$datee1<>'')
{
$da='';
for($i=1;$i<=$allll;$i++)
{
$datee="datee".$i;
$dateee="dateee".$i;
$crr="crr".$i;
$rtt="rtt".$i;
$smm="smm".$i;
$plda.="~".$$datee."+".$$dateee."+".$$crr."+".$$rtt."+".$$smm;
}
}
else
{
for($i=1;$i<=$alll;$i++)
{
$date="date".$i;
$cr="cr".$i;
$rt="rt".$i;
$sm="sm".$i;
$da.="~".$$date."+".$$cr."+".$$rt."+".$$sm;
}
}
$query="INSERTINTO`#@__archives`(id,typeid,typeid2,sortrank,flag,ismake,channel,arcrank,click,money,title,shorttitle,
color,writer,source,litpic,pubdate,senddate,mid,notpost,description,keywords,filename,tyadmin,weight)
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','$weight');";
if(!$dsql->ExecuteNoneQuery($query))
{
$gerr=$dsql->GetError();
$dsql->ExecuteNoneQuery("DeleteFrom`#@__arctiny`whereid='$arcID'");
ShowMsg("把數據保存到資料庫主表`#@__archives`時出錯,請把相關信息提交給CTSCMS官方。".str_replace('"','',$gerr),"javascript:;");
exit();
}
$cts=$dsql->GetOne("SelectaddtableFrom`#@__channeltype`whereid='$channelid'");
$addtable=trim($cts['addtable']);
if(!empty($addtable))
{
$useip=GetIP();
$query="INSERTINTO`{$addtable}`(aid,typeid,xc,bj,plbj,xcjd,redirecturl,userip{$inadd_f})Values('$arcID','$typeid','$okxc','$da','$plda','$xcjd','$redirecturl','$useip'{$inadd_v})";
if(!$dsql->ExecuteNoneQuery($query))
{
$gerr=$dsql->GetError();
$dsql->ExecuteNoneQuery("DeleteFrom`#@__archives`whereid='$arcID'");
$dsql->ExecuteNoneQuery("DeleteFrom`#@__arctiny`whereid='$arcID'");
ShowMsg("把數據保存到資料庫附加表`{$addtable}`時出錯,請把相關信息提交給CTSCMS官方。".str_replace('"','',$gerr),"javascript:;");
exit();
}
}
InsertTags($tags,$arcID);
if($cfg_remote_site=='Y'&&$isremote=="1")
{
if($serviterm!=""){
list($servurl,$servuser,$servpwd)=explode(',',$serviterm);
$config=array('hostname'=>$servurl,'username'=>$servuser,'password'=>$servpwd,'debug'=>'TRUE');
}else{
$config=array();
}
if(!$ftp->connect($config))exit('Error:NoneFTPConnection!');
}
ClearMyAddon($arcID,$title);
$artUrl=MakeArt($arcID,true,true,$isremote);
if($artUrl=='')
{
$artUrl=$cfg_phpurl."/view.php?aid=$arcID";
}
$msg="請選擇你的後續操作:
<ahref='archives_line_add.php?cid=$typeid'><u>繼續發布文檔</u></a>
<ahref='$artUrl'target='_blank'><u>查看文檔</u></a>
<ahref='archives_do.php?aid=".$arcID."&dopost=editArchives'><u>更改文檔</u></a>
<ahref='catalog_do.php?cid=$typeid&dopost=listArchives'><u>已發布文檔管理</u></a>
$backurl
";
$msg="<divstyle="line-height:36px;height:36p
熱點內容