// ############## 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;
?>
September 24, 2004
September 24, 2004
February 03, 2009
July 16, 2008
January 07, 2007
Ultima Online 1 days önce
Ultima Online 1 months önce
Sunucular 1 months önce
Ultima Online 1 months önce
Sunucular 2 months önce
Sunucular 3 months önce
Sunucular 3 months önce
Ultima Online 3 months önce
June 30, 2017
June 24, 2017
June 22, 2017
June 18, 2017
June 03, 2017
May 28, 2017
May 09, 2017
March 31, 2017
Yorumlar (0)