多谢斑竹 按你的方法成功啦 提示 数据库连接上 提示成功 然后输入后台账号密码 弹出
Fatal error: Call to undefined function eCheckAccessIp() in /home/content/g/u/o/guodian/html/meijuya/e/class/functions.php on line 19
第19行错误 请斑竹在看一下 谢谢
functions.php 文件如下:
<?php
//处理专题提交变量
function DoPostZtVar($add){
if(empty($add[zttype])){
$add[zttype]=".html";
}
if(empty($add[ztnum])){
$add[ztnum]=25;
}
$add[zcid]=(int)$add['zcid'];
$add[jstempid]=(int)$add['jstempid'];
$add[intro]=addslashes(RepPhpAspJspcode($add[intro]));
$add[ztpagekey]=addslashes(RepPhpAspJspcode($add[ztpagekey]));
$add[ztnum]=(int)$add[ztnum];
$add[listtempid]=(int)$add[listtempid];
$add[newline]=(int)$add[newline];
$add[newstrlen]=(int)$add[newstrlen];
$add[newshowdate]=(int)$add[newshowdate];
$add[hotline]=(int)$add[hotline];
$add[hotstrlen]=(int)$add[hotstrlen];
$add[hotshowdate]=(int)$add[hotshowdate];
$add[goodline]=(int)$add[goodline];
$add[goodshowdate]=(int)$add[goodshowdate];
$add[goodstrlen]=(int)$add[goodstrlen];
$add[classid]=(int)$add[classid];
$add[hotplline]=(int)$add[hotplline];
$add[hotplshowdate]=(int)$add[hotplshowdate];
$add[hotplstrlen]=(int)$add[hotplstrlen];
$add[firstline]=(int)$add[firstline];
$add[firststrlen]=(int)$add[firststrlen];
$add[firstshowdate]=(int)$add[firstshowdate];
$add[islist]=(int)$add[islist];
$add[maxnum]=(int)$add[maxnum];
$add[showzt]=(int)$add[showzt];
$add[classtempid]=(int)$add[classtempid];
$add['myorder']=(int)$add['myorder'];
$add[nrejs]=(int)$add[nrejs];
//目录
$add[ztpath]=$add['pripath'].$add['ztpath'];
return $add;
}
//增加专题
function AddZt($add,$userid,$username){
global $empire,$class_r,$dbtbpre;
$add[ztpath]=trim($add[ztpath]);
if(!$add[ztname]||!$add[listtempid]||!$add[ztpath]){
printerror("EmptyZt","");
}
CheckLevel($userid,$username,$classid,"zt");
$add=DoPostZtVar($add);
$createpath='../../'.$add[ztpath];
//检测目录是否存在
if(file_exists($createpath)){
printerror("ReZtpath","");
}
CreateZtPath($add[ztpath]);//建立专题目录
//取得表名
$tabler=GetModTable(GetListtempMid($add[listtempid]));
$tabler[tid]=(int)$tabler[tid];
$sql=$empire->query("insert into {$dbtbpre}enewszt(ztname,ztnum,listtempid,onclick,ztpath,zttype,newline,newstrlen,newshowdate,zturl,hotline,hotstrlen,hotshowdate,goodline,goodshowdate,goodstrlen,classid,hotplline,hotplshowdate,hotplstrlen,firstline,firststrlen,firstshowdate,islist,maxnum,tid,tbname,reorderf,reorder,intro,ztimg,zcid,jstempid,showzt,ztpagekey,classtempid,myorder,nrejs) values('$add[ztname]',$add[ztnum],$add[listtempid],0,'$add[ztpath]','$add[zttype]',$add[newline],$add[newstrlen],$add[newshowdate],'$add[zturl]',$add[hotline],$add[hotstrlen],$add[hotshowdate],$add[goodline],$add[goodshowdate],$add[goodstrlen],$add[classid],$add[hotplline],$add[hotplshowdate],$add[hotplstrlen],$add[firstline],$add[firststrlen],$add[firstshowdate],$add[islist],$add[maxnum],$tabler[tid],'$tabler[tbname]','$add[reorderf]','$add[reorder]','$add[intro]','$add[ztimg]',$add[zcid],$add[jstempid],$add[showzt],'$add[ztpagekey]','$add[classtempid]',$add[myorder],$add[nrejs]);");
$ztid=$empire->lastid();
//生成页面
if(!$add[islist]){
NewsBq($ztid,GetClassTemp($add['classtempid']),3,1);
}
GetClass();//更新缓存
if($sql){
insert_dolog("ztid=".$ztid."<br>ztname=".$add[ztname]);//操作日志
printerror("AddZtSuccess","AddZt.php?enews=AddZt");
}
else{
printerror("DbError","");
}
}
//修改专题
function EditZt($add,$userid,$username){
global $empire,$class_r,$dbtbpre;
$add[ztid]=(int)$add[ztid];
$add[ztpath]=trim($add[ztpath]);
if(!$add[ztname]||!$add[listtempid]||!$add[ztpath]||!$add[ztid]){
printerror("EmptyZt","");
}
CheckLevel($userid,$username,$classid,"zt");
$add=DoPostZtVar($add);
//改变目录
if($add[oldztpath]<>$add[ztpath]){
$createpath='../../'.$add[ztpath];
if(file_exists($createpath)){
printerror("ReZtpath","");
}
if($add['oldpripath']==$add['pripath']){
$new="../../";
@rename($new.$add[oldztpath],$new.$add[ztpath]);//改变目录名
}
else{
CreateZtPath($add[ztpath]);//建立专题目录 |