Exemplo n.º 1
0
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 {
Exemplo n.º 2
0
    $enews = $_GET['enews'];
}
//增加投票
if ($enews == "AddVote") {
    $title = $_POST['title'];
    $votename = $_POST['votename'];
    $votenum = $_POST['votenum'];
    $delvid = $_POST['delvid'];
    $vid = $_POST['vid'];
    $voteclass = $_POST['voteclass'];
    $doip = $_POST['doip'];
    $dotime = $_POST['dotime'];
    $width = $_POST['width'];
    $height = $_POST['height'];
    $tempid = $_POST['tempid'];
    AddVote($title, $votename, $votenum, $delvid, $vid, $voteclass, $doip, $dotime, $width, $height, $tempid, $logininid, $loginin);
} elseif ($enews == "EditVote") {
    $voteid = $_POST['voteid'];
    $title = $_POST['title'];
    $votename = $_POST['votename'];
    $votenum = $_POST['votenum'];
    $delvid = $_POST['delvid'];
    $vid = $_POST['vid'];
    $voteclass = $_POST['voteclass'];
    $doip = $_POST['doip'];
    $dotime = $_POST['dotime'];
    $width = $_POST['width'];
    $height = $_POST['height'];
    $tempid = $_POST['tempid'];
    EditVote($voteid, $title, $votename, $votenum, $delvid, $vid, $voteclass, $doip, $dotime, $width, $height, $tempid, $logininid, $loginin);
} elseif ($enews == "DelVote") {