ecmscom.php
4.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<?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();
$incftp=0;
if($public_r['phpmode'])
{
include("../class/ftp.php");
$incftp=1;
}
//防採集
if($public_r['opennotcj'])
{
@include("../data/dbcache/notcj.php");
}
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;
?>