ecmschtml.php
4.43 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<?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/chtmlfun.php");
if($enews=="ReNewsHtml")//刷新內容頁面
{
$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'];
$havehtml=$_GET['havehtml'];
ReNewsHtml($start,$classid,$from,$retype,$startday,$endday,$startid,$endid,$tbname,$havehtml);
}
elseif($enews=="ReListHtml_all")//刷新所有列表
{
$start=$_GET['start'];
$do=$_GET['do'];
$from=$_GET['from'];
ReListHtml_all($start,$do,$from);
}
elseif($enews=="ReZtListHtml_all")//刷新所有專題頁面
{
$start=$_GET['start'];
$do=$_GET['do'];
$from=$_GET['from'];
ReZtListHtml_all($start,$do,$from);
}
elseif($enews=="ReTtListHtml_all")//刷新所有標題分類頁面
{
$start=$_GET['start'];
$do=$_GET['do'];
$from=$_GET['from'];
ReTtListHtml_all($start,$do,$from);
}
elseif($enews=="ReAllNewsJs")//刷新所有信息js
{
$start=$_GET['start'];
$do=$_GET['do'];
$from=$_GET['from'];
ReAllNewsJs($start,$do,$from);
}
elseif($enews=="ReIndex")//刷新首頁
{
ReIndex();
}
elseif($enews=="ReUserpageAll")//批量刷新自定義頁面
{
ReUserpageAll($_GET['start'],$_GET['from'],$logininid,$loginin);
}
elseif($enews=="ReUserlistAll")//批量刷新自定義信息列表
{
$start=$_GET['start'];
$from=$_GET['from'];
ReUserlistAll($start,$from,$logininid,$loginin);
}
elseif($enews=="ReUserjsAll")//批量刷新自定義JS
{
$start=$_GET['start'];
$from=$_GET['from'];
ReUserjsAll($start,$from,$logininid,$loginin);
}
elseif($enews=="ReHot_NewNews")//刷新最新信息與熱門信息JS
{
ReHot_NewNews();
}
elseif($enews=="ReSpAll")//批量刷新碎片文件
{
ReSpAll($_GET['start'],$_GET['from'],$logininid,$loginin);
}
elseif($enews=='ReSingleInfo')//刷新單信息頁面
{
ReSingleInfo($logininid,$loginin);
}
elseif($enews=="ReZtHtml")//刷新專題
{
$ztid=$_GET['ztid'];
$ecms=$_GET['ecms'];
ReZtHtml($ztid,$ecms);
}
elseif($enews=="ReTtHtml")//刷新標題分類
{
$typeid=$_GET['typeid'];
ReTtHtml($typeid);
}
elseif($enews=="ReSingleJs")//刷新單個欄目JS
{
$classid=$_GET['classid'];
$doing=$_GET['doing'];
ReSingleJs($classid,$doing);
}
elseif($enews=="ReDtPage")//批量更新動態頁面
{
ReDtPage($logininid,$loginin);
}
elseif($enews=="GoReListHtmlMore")//初使化刷新多欄目
{
$classid=$_POST['classid'];
$gore=$_POST['gore'];
$from=$_POST['from'];
$ecms=$_POST['ecms'];
GoReListHtmlMore($classid,$gore,$from,$ecms);
}
elseif($enews=="GoReListHtmlMoreA")//初使化刷新多欄目(管理欄目)
{
$classid=$_POST['reclassid'];
$gore=$_POST['gore'];
$from=$_POST['from'];
$ecms=$_POST['ecms'];
GoReListHtmlMore($classid,$gore,$from,$ecms);
}
elseif($enews=="ReListHtmlMore")//刷新多欄目
{
$start=$_GET['start'];
$classid=$_GET['classid'];
$from=$_GET['from'];
ReListHtmlMore($start,$classid,$from);
}
elseif($enews=="ReListZtHtmlMore")//刷新多專題
{
$start=$_GET['start'];
$classid=$_GET['classid'];
$from=$_GET['from'];
$ecms=$_GET['ecms'];
ReListZtHtmlMore($start,$classid,$from,$ecms);
}
elseif($enews=="ReListTtHtmlMore")//刷新多標題分類
{
$start=$_GET['start'];
$classid=$_GET['classid'];
$from=$_GET['from'];
ReListTtHtmlMore($start,$classid,$from);
}
elseif($enews=="ReClassPath")//恢復欄目目錄
{
$start=$_GET['start'];
ReClassPath($start);
}
elseif($enews=='UpdateClassInfosAll')//更新欄目信息數
{
UpdateClassInfosAll($_GET);
}
else
{
printerror("ErrorUrl","history.go(-1)");
}
db_close();
$empire=null;
?>