" . $poll_name." - FilmO"; ?> "> 0){ $image="pix/style/poll_bullet.png"; }else{ $image="pix/style/poll_bullet.png"; } } //FILMEK if($type=="1"){ if($object_id>0){ $image="pix/poster/".$object_id.".jpg"; }else{ $image="pix/style/poll_bullet.png"; } } //SZEMELYEK if($type=="2"){ if($object_id>0){ $image="pix/person/".$object_id.".jpg"; }else{ $image="pix/style/poll_bullet.png"; } } //KULTFIGURAK if($type=="3"){ if($object_id>0){ $image="pix/cult_character/".$object_id.".jpg"; }else{ $image="pix/style/poll_bullet.png"; } } return $image; } function getAnswerText($type,$answertextstored,$object_id){ GLOBAL $conn; GLOBAL $lng; $answertext=""; //ALTALANOS if($type<1){ if($object_id>0){ $answertext="

".$answertextstored."

"; }else{ $answertext="

".$answertextstored."

"; } } //FILMEK if($type=="1"){ if($object_id>0){ $parancs3="SELECT title, hun_title, eng_title, year, season FROM movies WHERE movie_id='".$object_id."' "; $eredmeny3 = mysql_query($parancs3, $conn) or die("Nem tudtam az adatokat lekérni. A hiba oka: ".mysql_error()); while ( $sor3 = mysql_fetch_array($eredmeny3)) { $answertext="

".$sor3['title']."

"; if($lng=="hun"){ $answertext.="

".$sor3['hun_title']."

"; }else if(strlen($sor3['eng_title'])>0){ $answertext.="

".$sor3['eng_title']."

"; } $answertext.="

".$sor3['year']."

"; } }else{ $answertext="

".$answertextstored."

"; } } //SZEMELYEK if($type=="2"){ if($object_id>0){ $parancs3="SELECT name FROM persons WHERE person_id='".$object_id."' "; $eredmeny3 = mysql_query($parancs3, $conn) or die("Nem tudtam az adatokat lekérni. A hiba oka: ".mysql_error()); while ( $sor3 = mysql_fetch_array($eredmeny3)) { $answertext="

".$sor3['name']."

"; } }else{ $answertext="

".$answertextstored."

"; } } //KULTFIGURAK if($type=="3"){ if($object_id>0){ $parancs3="SELECT hun_name, eng_name FROM cult_characters WHERE id='".$object_id."' "; $eredmeny3 = mysql_query($parancs3, $conn) or die("Nem tudtam az adatokat lekérni. A hiba oka: ".mysql_error()); while ( $sor3 = mysql_fetch_array($eredmeny3)) { if($lng=="hun"){ $answertext="

".$sor3['hun_name']."

"; }else{ $answertext="

".$sor3['eng_name']."

"; } } }else{ $answertext="

".$answertextstored."

"; } } return $answertext; } //END defining functions $poll_type_class=getPollTypeClass($poll_type); $poll_type_class_name=getPollTypeClassName($poll_type); if($poll_confirmed>0 || $_SESSION['role']=="admin"){ ?>
".$txt['polls']." >> ".$poll_type_class_name." >> "; if($_SESSION['role']=="admin" && $poll_confirmed<1){ echo " Még nincs jóváhagyva!"; } if($_SESSION['role']=="admin" && $owner!=$_SESSION['nick'] && $poll_confirmed<1){ echo " Jóváhagyom!"; } ?>
0 ){ ?>
".$txt['jump_to_the']."".$txt['to_the_movie']." "; } if($cat==22){ echo " ".$txt['jump_to_the']."".$txt['to_the_person']." "; } if($cat==33){ echo " ".$txt['jump_to_the']."".$txt['to_the_tag']." "; } if($cat==44){ echo " ".$txt['jump_to_the']."".$txt['to_the_location']." "; } if($cat==55){ echo " ".$txt['jump_to_the']."".$txt['to_the_time_period']." "; } if($cat==66){ echo " ".$txt['jump_to_the']."".$txt['to_the_cult_character']." "; } if($cat==77){ echo " ".$txt['jump_to_the']."".$txt['to_the_book']." "; } ?>

".$poll_name."

"; echo "
"; echo "
"; //$pollq="SELECT poll_answers.id, answer, COUNT(poll_votes.answer_id) as vote_num FROM poll_answers LEFT JOIN poll_votes ON (poll_answers.id=poll_votes.answer_id) WHERE poll_id='".$poll_id."' GROUP BY poll_answers.id ORDER BY vote_num DESC"; $max_num=0; $pollq2="SELECT MAX(vote_num) FROM (SELECT COUNT(szavazatok.answer_id) AS vote_num FROM poll_votes szavazatok, poll_answers valaszok WHERE szavazatok.answer_id=valaszok.id AND valaszok.poll_id='".$poll_id."' GROUP BY answer_id) AS allcounted"; $eredmeny2 = mysql_query($pollq2, $conn) or die("Nem tudtam az adatokat lekérni. A hiba oka: ".mysql_error()); while ( $sor2 = mysql_fetch_array($eredmeny2)) { $max_num=$sor2['MAX(vote_num)']; } $pollq="SELECT poll_answers.id, answer, object_id, poll_answers.owner, COUNT(poll_votes.answer_id) as vote_num FROM poll_answers LEFT JOIN poll_votes ON (poll_answers.id=poll_votes.answer_id) WHERE poll_id='".$poll_id."' GROUP BY poll_answers.id ORDER BY vote_num DESC"; $eredmeny = mysql_query($pollq, $conn) or die("Nem tudtam az adatokat lekérni. A hiba oka: ".mysql_error()); while ( $sor = mysql_fetch_array($eredmeny)) { $vote_num=$sor['vote_num']; echo "
"; echo "
"; if($sor['owner']==$_SESSION['nick'] || $_SESSION['nick']==$owner){ echo "
X
"; } echo "
"; echo "
".getAnswerText($poll_type,$sor['answer'],$sor['object_id'])."
"; echo "
"; $ans_nick="SELECT * FROM poll_votes WHERE answer_id='".$sor['id']."' AND nick='".$nick."' "; $eredmeny2 = mysql_query($ans_nick, $conn) or die("Nem tudtam az adatokat lekérni. A hiba oka: ".mysql_error()); if(mysql_num_rows($eredmeny2)>0){ $voteactive="voteActive"; }else{ $voteactive=""; } print "
 
"; echo "
"; $voteNumHide1=""; $voteNumHide2=""; if(getPercentToAnswerCounter($max_num,$vote_num)<20){ $voteNumHide1="hideThis"; }else{ $voteNumHide2="hideThis"; } echo "
 "; echo "
"; echo "
".$vote_num."
"; echo "
"; echo "
".$vote_num."
"; echo "
"; echo "
"; } echo "
"; //END answerholder if(($add_options>0 && $_SESSION['belepett']==true) || $owner==$_SESSION['nick']){ echo "
"; echo "
"; echo " "; if($poll_type!="0"){ echo $addAnswerLngtext.":"; echo ""; } if($poll_type=="0" || $owner==$_SESSION['nick']){ echo "".$addTextAnswerLngtext.""; } echo "
"; //END addAnswersHDR echo "
"; /* echo "
"; echo "ADD"; echo "
"; //END answerOption */ /* $pollq="SELECT poll_answers.id, answer, object_id, COUNT(poll_votes.answer_id) as vote_num FROM poll_answers LEFT JOIN poll_votes ON (poll_answers.id=poll_votes.answer_id) WHERE poll_id='".$poll_id."' GROUP BY poll_answers.id ORDER BY vote_num DESC"; $eredmeny = mysql_query($pollq, $conn) or die("Nem tudtam az adatokat lekérni. A hiba oka: ".mysql_error()); while ( $sor = mysql_fetch_array($eredmeny)) { $vote_num=$sor['vote_num']; echo "
"; echo "
"; echo "
".getAnswerText($poll_type,$sor['answer'],$sor['object_id'])."
"; echo "
"; $ans_nick="SELECT * FROM poll_votes WHERE answer_id='".$sor['id']."' AND nick='".$nick."' "; $eredmeny2 = mysql_query($ans_nick, $conn) or die("Nem tudtam az adatokat lekérni. A hiba oka: ".mysql_error()); if(mysql_num_rows($eredmeny2)>0){ $voteactive="voteActive"; }else{ $voteactive=""; } print "
 
"; echo "
"; $voteNumHide1=""; $voteNumHide2=""; if(getPercentToAnswerCounter($max_num,$vote_num)<20){ $voteNumHide1="hideThis"; }else{ $voteNumHide2="hideThis"; } echo "
 "; echo "
"; echo "
".$vote_num."
"; echo "
"; echo "
".$vote_num."
"; echo "
"; echo "
"; } */ echo "
"; //END answerOptions echo "
"; //END addAnswers } ?> 0){ ?> 66){ $image_src="pix/style/comment-big.png"; } $parancs = "SELECT ".$lng."_category_name FROM forum_categories WHERE category_id='".$cat."'"; $eredmeny = mysql_query($parancs, $conn) or die("Nem tudtam az adatokat lekérni. A hiba oka: ".mysql_error()); while ( $sor = mysql_fetch_array($eredmeny)) { $category_name=$sor[$lng."_category_name"]; } ?>
">
"; print "
0000-00-00 00:00:00
"; print "

".$txt["be_the_first_to_write_in_this_topic"]."
"; print "
"; } while ( $sor = mysql_fetch_array($eredmeny)) { $useravatar="pix/useravatar/".str_replace("/","_",strtolower($sor['nick'])).".png"; if (file_exists($useravatar)) { $useravatar_src=$useravatar; }else{ $useravatar_src="pix/useravatar/default.png"; } $spoiler=""; if($sor['spoiler']>0){ $spoiler="spoiler"; } print "
"; print "
".$sor['datetime']."
"; if($_SESSION['nick']==$sor['nick'] || $_SESSION['role']=="admin"){ print "
X
"; } if($sor['spoiler']>0){ print "
SPOILER
"; } print "
".$sor['nick']."
"; print "
".nl2br(preg_replace(" #((http|https|ftp)://(\S*?\.\S*?))(\s|\;|\)|\]|\[|\{|\}|,|\"|'|:|\<|$|\.\s)#ie", "'$3$4'", $sor['post']))."
"; //nl2br()---konvertalja a nemlathato sortoreseket print "
"; } if($post_rows==$post_num_limit){ print ""; } ?>
"; //END wrapper echo "
"; //END allcontent print "
".$txt["are_you_sure_you_delete"]."?
 
"; print "
".$txt["are_you_sure_you_delete"]."?
 
"; print "
"; print "
"; if($lng=="hun"){ $onlymembersabove500="Csak állandó tagok szavazhatnak
(500 értékelés felett)"; }else{ $onlymembersabove500="Only constant members are allowed to vote"; } echo "

".$onlymembersabove500."

"; print "
"; print "
:
X
"; print ""; print "
"; } //END csak adminok szzamara lathato, VAGY ha Jovahagyott.. echo ""; //END nemtudni include 'footer.php'; ?>