You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
90 lines
1.5 KiB
90 lines
1.5 KiB
<?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")//增加留言
|
|
{
|
|
eCheckCloseMods('gb');//关闭模块
|
|
AddGbook($_POST);
|
|
}
|
|
elseif($enews=="AddFeedback")//增加反馈
|
|
{
|
|
eCheckCloseMods('fb');//关闭模块
|
|
$doetran=1;
|
|
AddFeedback($_POST);
|
|
}
|
|
elseif($enews=="AddError")//增加错误报告
|
|
{
|
|
eCheckCloseMods('error');//关闭模块
|
|
AddError($_POST);
|
|
}
|
|
else
|
|
{printerror("ErrorUrl","history.go(-1)",1);}
|
|
db_close();
|
|
$empire=null;
|
|
?>
|
|
|