123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- <?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;
- ?>
|