2){ $parancs = "SELECT movie_rate FROM rate_movies WHERE movie_id =".$topic_ref." AND nick='". $_SESSION['nick']."'" ; $eredmeny = mysql_query($parancs, $conn) or die("Nem tudtam az adatokat lekérni. A hiba oka: ".mysql_error()); while ( $sor = mysql_fetch_array($eredmeny)) { $userertekeles=$sor['movie_rate']; } } if ($userertekeles>0){ $spoiler_text=""; }else{ $spoiler_text="spoiler"; } } if($cat==22){ $image_src="pix/person/".$topic_ref.".jpg"; } if($cat==10){ $image_src="pix/style/tick_c.png"; } if($cat==33){ $image_src_if="pix/tag/".$topic_ref.".png"; if (file_exists($image_src_if)) { $image_src=$image_src_if; }else{ $image_src="pix/style/label-big.png"; } } if($cat==44){ //helyszin-tipus 1=con 2=sta 3=tow $loc_type_id=substr($topic_ref, 0, 1); switch($loc_type_id){ case 1: $loc_type="con"; break; case 2: $loc_type="sta"; break; case 3: $loc_type="tow"; break; } $topic_ref=substr($topic_ref, 1); $image_src_if="pix/loc/".$loc_type."/".$topic_ref.".png"; if (file_exists($image_src_if)) { $image_src=$image_src_if; }else{ $image_src="pix/style/locpin-big.png"; } } if($cat==55){ $image_src="pix/style/time-big.png"; } if($cat==66){ $image_src_if="pix/cult_character/".$topic_ref.".jpg"; if (file_exists($image_src_if)) { $image_src=$image_src_if; }else{ $image_src="pix/style/cultcharacter.png"; } } if($cat>66){ $image_src="pix/style/comment-big.png"; } if($cat==77){ $image_src="pix/cover/".$topic_ref.".jpg"; } $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"]; } ?> ".$topic_name." - FilmO"; ?>
".$txt['forum']." >> ".$category_name." >> "; ?>
"; ?>
0 ){ ?>
1){ if ($_SESSION['belepett']== true){ ?>
2 ){ print "
"; 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"; $useravatar="pix/useravatar/".str_replace("ó","o",str_replace("/","_",strtolower($sor['nick']))).".png"; if (file_exists($useravatar)) { $useravatar_src=$useravatar; }else{ $useravatar="pix/useravatar/".str_replace("ó","o",str_replace("/","_",preg_replace('/[^A-Za-z0-9\-]/', 'e',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_text; } print "
"; print "
".$sor['datetime']."
"; if($_SESSION['nick']==$sor['nick'] || $_SESSION['role']=="admin"){ print "
X
"; } if($sor['spoiler']>0){ print "
SPOILER
"; } print "
".$sor['nick']."
"; $the_post_full=nl2br(preg_replace('@(https?://([-\w\.]+[-\w])+(:\d+)?(/([\w/_\.#-]*(\?\S+)?[^\.\s])?)?)@', '$1', $sor['post'])); print "
".$the_post_full."
"; //nl2br()---konvertalja a nemlathato sortoreseket print "
"; } if($post_rows==$post_num_limit){ print ""; } ?>
"; print "
"; print ""; print "
"; print "
"; } ?> ".$txt["are_you_sure_you_delete"]."?
  "; print "
"; print "
"; ?>