当前位置:首页 » 净水设备 » ?pwd=jmwx

?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>
&nbsp;&nbsp;
<ahref='$artUrl'target='_blank'><u>查看文档</u></a>
&nbsp;&nbsp;
<ahref='archives_do.php?aid=".$arcID."&dopost=editArchives'><u>更改文档</u></a>
&nbsp;&nbsp;
<ahref='catalog_do.php?cid=$typeid&dopost=listArchives'><u>已发布文档管理</u></a>
&nbsp;&nbsp;
$backurl
";
$msg="<divstyle="line-height:36px;height:36p

热点内容
丁度巴拉斯情人电影推荐 发布:2024-08-19 09:13:07 浏览:886
类似深水的露点电影 发布:2024-08-19 09:10:12 浏览:80
《消失的眼角膜》2电影 发布:2024-08-19 08:34:43 浏览:878
私人影院什么电影好看 发布:2024-08-19 08:33:32 浏览:593
干 B 发布:2024-08-19 08:30:21 浏览:910
夜晚看片网站 发布:2024-08-19 08:20:59 浏览:440
台湾男同电影《越界》 发布:2024-08-19 08:04:35 浏览:290
看电影选座位追女孩 发布:2024-08-19 07:54:42 浏览:975
日本a级爱情 发布:2024-08-19 07:30:38 浏览:832
生活中的玛丽类似电影 发布:2024-08-19 07:26:46 浏览:239