index.php
1.51 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
<?php
require("../class/connect.php");
require("../class/db_sql.php");
require("../data/dbcache/class.php");
require("../member/class/user.php");
require("../data/dbcache/MemberLevel.php");
require LoadLang("pub/fun.php");
$link=db_connect();
$empire=new mysqlquery();
$enews=$_POST['enews'];
if(empty($enews))
{
$enews=$_GET['enews'];
}
//導入文件
if($enews=='AddVote'||$enews=='AddInfoVote'||$enews=='AddInfoPfen')
{
include('votefun.php');
}
elseif($enews=='AddGbook')
{
include('gbookfun.php');
}
else
{
include('../class/q_functions.php');
}
if($enews=='AddVote')//增加投票
{
if($_GET['voteid'])
{
$voteid=$_GET['voteid'];
$vote=$_GET['vote'];
}
else
{
$voteid=$_POST['voteid'];
$vote=$_POST['vote'];
}
AddVote($voteid,$vote);
}
elseif($enews=='AddInfoVote')//增加信息投票
{
if($_GET['id'])
{
$id=$_GET['id'];
$classid=$_GET['classid'];
$vote=$_GET['vote'];
}
else
{
$id=$_POST['id'];
$classid=$_POST['classid'];
$vote=$_POST['vote'];
}
AddInfoVote($classid,$id,$vote);
}
elseif($enews=='AddInfoPfen')//信息評分
{
if($_GET['id'])
{
$add=$_GET;
}
else
{
$add=$_POST;
}
AddInfoPfen($add);
}
elseif($enews=="AddGbook")//增加留言
{
AddGbook($_POST);
}
elseif($enews=="AddFeedback")//增加反饋
{
$doetran=1;
AddFeedback($_POST);
}
elseif($enews=="AddError")//增加錯誤報告
{
AddError($_POST);
}
else
{printerror("ErrorUrl","history.go(-1)",1);}
db_close();
$empire=null;
?>