123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136 |
- <?php
- define('EmpireCMSAdmin','1');
- require("../class/connect.php");
- require("../class/db_sql.php");
- require("../class/functions.php");
- require LoadLang("pub/fun.php");
- require("../class/t_functions.php");
- require("../data/dbcache/class.php");
- require("../data/dbcache/MemberLevel.php");
- $link=db_connect();
- $empire=new mysqlquery();
- $enews=$_POST['enews'];
- if(empty($enews))
- {
- $enews=$_GET['enews'];
- }
- //验证用户
- $lur=is_login();
- $logininid=$lur['userid'];
- $loginin=$lur['username'];
- $loginrnd=$lur['rnd'];
- $loginlevel=$lur['groupid'];
- $loginadminstyleid=$lur['adminstyleid'];
- hCheckEcmsRHash();
- @set_time_limit(0);
- $incftp=0;
- if($public_r['phpmode'])
- {
- include("../class/ftp.php");
- $incftp=1;
- }
- //防采集
- if($public_r['opennotcj'])
- {
- @include("../data/dbcache/notcj.php");
- }
- //设置访问端
- $moreportpid=0;
- if($enews=='ClearTmpFileData')
- {
- $moreportpid=Moreport_hDoSetSelfPath(0);
- }
- require("../class/comdofun.php");
- if($enews=="AddUserpage")//增加自定义页面
- {
- AddUserpage($_POST,$logininid,$loginin);
- }
- elseif($enews=="EditUserpage")//修改自定义页面
- {
- EditUserpage($_POST,$logininid,$loginin);
- }
- elseif($enews=="DelUserpage")//删除自定义页面
- {
- $id=$_GET['id'];
- $cid=$_GET['cid'];
- DelUserpage($id,$cid,$logininid,$loginin);
- }
- elseif($enews=="DoReUserpage")//刷新自定义页面
- {
- DoReUserpage($_POST,$logininid,$loginin);
- }
- elseif($enews=="ChangeInfoOtherLink")//批量更新相关链接
- {
- $start=$_GET['start'];
- $classid=$_GET['classid'];
- $from=$_GET['from'];
- $retype=$_GET['retype'];
- $startday=$_GET['startday'];
- $endday=$_GET['endday'];
- $startid=$_GET['startid'];
- $endid=$_GET['endid'];
- $tbname=$_GET['tbname'];
- ChangeInfoOtherLink($start,$classid,$from,$retype,$startday,$endday,$startid,$endid,$tbname,$logininid,$loginin);
- }
- elseif($enews=="CheckPath")//目录是否存在
- {
- $classpath=$_GET['pripath'].$_GET['classpath'];
- CheckPath($classpath);
- }
- elseif($enews=="DoRepNewstext")//批量替换字段值
- {
- $start=$_POST['start'];
- $oldword=$_POST['oldword'];
- $newword=$_POST['newword'];
- $field=$_POST['field'];
- $classid=$_POST['classid'];
- $tid=$_POST['tid'];
- $tbname=$_POST['tbname'];
- $over=$_POST['over'];
- $dozz=$_POST['dozz'];
- $dotxt=$_POST['dotxt'];
- DoRepNewstext($start,$oldword,$newword,$field,$classid,$tid,$tbname,$over,$dozz,$dotxt,$logininid,$loginin);
- }
- elseif($enews=="AddTempvarClass"||$enews=="AddPageClass"||$enews=="AddBqtempClass"||$enews=="AddListtempClass"||$enews=="AddNewstempClass"||$enews=="AddSearchtempClass"||$enews=="AddBqClass"||$enews=="AddJsTempClass"||$enews=="AddZtClass"||$enews=="AddLinkClass"||$enews=="AddClassTempClass"||$enews=="AddErrorClass"||$enews=='AddTagsClass'||$enews=='AddUserlistClass'||$enews=='AddUserjsClass')//增加类别
- {
- $add=$_POST;
- AddThisClass($add,$logininid,$loginin);
- }
- elseif($enews=="EditTempvarClass"||$enews=="EditPageClass"||$enews=="EditBqtempClass"||$enews=="EditListtempClass"||$enews=="EditNewstempClass"||$enews=="EditSearchtempClass"||$enews=="EditBqClass"||$enews=="EditJsTempClass"||$enews=="EditZtClass"||$enews=="EditLinkClass"||$enews=="EditClassTempClass"||$enews=="EditErrorClass"||$enews=='EditTagsClass'||$enews=='EditUserlistClass'||$enews=='EditUserjsClass')//修改类别
- {
- $add=$_POST;
- EditThisClass($add,$logininid,$loginin);
- }
- elseif($enews=="DelTempvarClass"||$enews=="DelPageClass"||$enews=="DelBqtempClass"||$enews=="DelListtempClass"||$enews=="DelNewstempClass"||$enews=="DelSearchtempClass"||$enews=="DelBqClass"||$enews=="DelJsTempClass"||$enews=="DelZtClass"||$enews=="DelLinkClass"||$enews=="DelClassTempClass"||$enews=="DelErrorClass"||$enews=='DelTagsClass'||$enews=='DelUserlistClass'||$enews=='DelUserjsClass')//删除类别
- {
- $classid=$_GET['classid'];
- $doing=$_GET['doing'];
- DelThisClass($classid,$doing,$logininid,$loginin);
- }
- elseif($enews=="RepDownLevel")//批量替换地址权限
- {
- RepDownLevel($_POST,$logininid,$loginin);
- }
- elseif($enews=='ClearTmpFileData')//清空临时数据与文件
- {
- ClearTmpFileData($_GET,$logininid,$loginin);
- }
- elseif($enews=='ClearBreakInfo')//清理多余信息
- {
- ClearBreakInfo($_POST,$logininid,$loginin);
- }
- elseif($enews=='ResetAddDataNum')//重置信息或评论数统计
- {
- $type=$_GET['type'];
- $from=$_GET['from'];
- ResetAddDataNum($type,$from,$logininid,$loginin);
- }
- else
- {
- printerror("ErrorUrl","history.go(-1)");
- }
- db_close();
- $empire=null;
- ?>
|