index.php
1.49 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
<?php
require('../../class/connect.php');
require('../../class/db_sql.php');
require('../class/user.php');
$link=db_connect();
$empire=new mysqlquery();
$editor=1;
eCheckCloseMods('member');//關閉模塊
$enews=$_POST['enews'];
if(empty($enews))
{
$enews=$_GET['enews'];
}
//導入文件
if($enews=='ChangeSpaceStyle'||$enews=='DoSetSpace')
{
include('spacecomfun.php');
}
elseif($enews=='AddMemberGbook'||$enews=='ReMemberGbook'||$enews=='DelMemberGbook'||$enews=='DelMemberGbook_All')
{
include('gbookfun.php');
}
elseif($enews=='AddMemberFeedback'||$enews=='DelMemberFeedback'||$enews=='DelMemberFeedback_All')
{
include('feedbackfun.php');
}
if($enews=="ChangeSpaceStyle")//選擇空間模板
{
ChangeSpaceStyle($_GET);
}
elseif($enews=="DoSetSpace")//設置空間信息
{
DoSetSpace($_POST);
}
elseif($enews=="AddMemberGbook")//留言
{
AddMemberGbook($_POST);
}
elseif($enews=="ReMemberGbook")//回復留言
{
ReMemberGbook($_POST);
}
elseif($enews=="DelMemberGbook")//刪除留言
{
DelMemberGbook($_GET);
}
elseif($enews=="DelMemberGbook_All")//批量刪除留言
{
DelMemberGbook_All($_POST);
}
elseif($enews=="AddMemberFeedback")//提交反饋
{
AddMemberFeedback($_POST);
}
elseif($enews=="DelMemberFeedback")//刪除反饋
{
DelMemberFeedback($_GET);
}
elseif($enews=="DelMemberFeedback_All")//批量刪除反饋
{
DelMemberFeedback_All($_POST);
}
else
{
printerror("ErrorUrl","history.go(-1)",1);
}
db_close();
$empire=null;
?>