// ############## vote ###############
if($action=="vote") {
if(!$_POST['vote']) {
header("LOCATION: ".urldecode($url_jump)."");
exit;
}
if(!$userdata['canvotepoll']) {
header("LOCATION: misc.php?action=access_error&boardid=$boardid&styleid=$styleid$session");
exit;
}
$thread_info = $db_zugriff->query_first("SELECT starttime,ptimeout FROM bb".$n."_threads WHERE threadid = '$threadid'");
$poll_check = $db_zugriff->query_first("SELECT COUNT(*) FROM bb".$n."_vote WHERE threadid='$threadid' AND userid = '$user_id'");
if($poll_check[0] || ($thread_info['ptimeout'] && time() >= ($thread_info['starttime']+$thread_info['ptimeout']*(24*3600)))) {
eval ("$output = "".gettemplate("error25")."";");
$ride = urldecode($url_jump)."&presult=1";
}
else {
$db_zugriff->query("UPDATE bb".$n."_poll set votes=votes+1 WHERE id=".intval($_POST['vote']));
if($user_id) $db_zugriff->query("INSERT INTO bb".$n."_vote (threadid,userid) VALUES ('$threadid','$user_id')");
eval ("$output = "".gettemplate("note24")."";");
$ride = urldecode($url_jump)."&presult=1";
#setcookie("vote_poll[$pollid]", "1", time()+(3600*24*365));
$votepoll[$threadid]=1;
setcookie("votepoll",serialize($votepoll), time()+3600*24*365);
#setcookie("vote_poll");
}
}
// ############## getLastPost main ###############
if($action=="vote") {
if(!$vote) {
header("LOCATION: ".urldecode($url_jump)."");
exit;
}
if(!$userdata[canvotepoll]) {
header("LOCATION: misc.php?action=access_error&boardid=$boardid&styleid=$styleid$session");
exit;
}
$thread_info = $db_zugriff->query_first("SELECT starttime,ptimeout FROM bb".$n."_threads WHERE threadid = '$threadid'");
$poll_check = $db_zugriff->query_first("SELECT COUNT(*) FROM bb".$n."_vote WHERE threadid='$threadid' AND userid = '$user_id'");
if($poll_check[0] || ($thread_info[ptimeout] && time() >= ($thread_info[starttime]+$thread_info[ptimeout]*(24*3600)))) {
eval ("$output = "".gettemplate("error25")."";");
$ride = "thread.php?threadid=$threadid&boardid=$boardid&page=1&presult=1";
}
else {
$db_zugriff->query("UPDATE bb".$n."_poll set votes=votes+1 WHERE id='$vote'");
if($user_id) $db_zugriff->query("INSERT INTO bb".$n."_vote VALUES ('$threadid','$user_id')");
eval ("$output = "".gettemplate("note24")."";");
$ride = "thread.php?threadid=$threadid&boardid=$boardid&page=1&presult=1";
setcookie("vote_poll[$pollid]", "1", time()+(3600*24*365));
}
}
<?php
header ("Location: main.php");
exit;
?>
<?php
header ("Location: portal.php");
exit;
?>
0 Kullanıcı
Ultima Online 2 hafta önce
Sphere Scripting 3 hafta önce
Sunucular 3 hafta önce
Sunucular 2 ay önce
Sphere Scripting 2 ay önce
CS 1.6 3 ay önce
Sunucular 4 ay önce
Sunucular 4 ay önce
Sunucular 4 ay önce
Sunucular 4 ay önce
Sunucular 4 ay önce
Ultima Online 4 ay önce
2024-07-08 22:50
2024-07-08 22:34
2024-06-19 22:05
2024-06-01 02:19
2024-05-31 21:17
2024-04-09 16:53
2024-04-06 18:20
2024-04-06 17:43