database_query("SELECT * FROM bateworldcom_zips.bateoff WHERE id=".$database->database_real_escape_string($id)." ORDER BY id"); $thisbateoff=$database->database_fetch_array($query); if($thisbateoff["approved"]!=1){ //header("Location:bateoff.php");exit; } function general() { global $user, $owner, $database, $thisbateoff, $id; //if(isset($_POST['id'])) { $id = $_POST['id']; } elseif(isset($_GET['id'])) { $id = $_GET['id']; } else { $id = "1"; } ?>


database_query("SELECT * FROM bateworldcom_zips.bateoff ORDER BY id"); $bateoff=$database->database_fetch_array($query); echo "

".html_entity_decode($thisbateoff["title"])."

"; echo html_entity_decode($thisbateoff["body"]); ?>



=1655492400){?>
Voting is now over



database_query("SELECT COUNT(*) AS total FROM bateworldcom_zips.bateoffvotes WHERE videoid='".$database->database_real_escape_string($id)."'"); $totalvotes=$database->database_fetch_array($query); $query=$database->database_query("SELECT * FROM bateworldcom_zips.bateoff_contestants ORDER BY id"); $x=0; while($row=$database->database_fetch_array($query)){ $contestants[$x]["username"]=$row["name"]; $contestants[$x]["id"]=$row["id"]; $contestants[$x]["picture"]=$row["picture"]; $query1=$database->database_query("SELECT COUNT(*) AS votes FROM bateworldcom_zips.bateoffvotes WHERE videoid='".$database->database_real_escape_string($id)."' AND votefor='".$database->database_real_escape_string($row["id"])."'"); $contestants[$x]["votes"]=$database->database_fetch_array($query1); $x++; } shuffle($contestants); $x=0;$y=1; foreach($contestants as $contestant){?>
" class="img-responsive" style="margin:auto;">" onclick="bateoffvote('')">
%


database_result($database->database_query("SELECT COUNT(*) FROM bateoffcomments WHERE object_id='".$id."'"),0); if($commentcount==""){$commentcount=0;} //if($thisbateoff["is_converted"]==0){}else{ ?>
_postcomment">
Comments ()
Allowed HTML Tags: b, img, a, br
"> "> "> ">
database_query("SELECT * FROM bateoffcomments WHERE object_id='".$id."' ORDER BY id DESC"); while($row=$database->database_fetch_array($query)) { $owner1=new SEUser(Array($row["authoruser_id"])); ?>
"> user_photo("./images/nophoto.png"); echo $owner1->userprofiledot($profilepicture, "75px");?>
'; $smarty->assign('modalcontent', $modal); include "footer.php"; ?>