0){ $conncond.=" AND conn_type='".$conn_type."'"; } if(isset($_GET['conn_id'])){ $conn_id=$_GET['conn_id']; }else{ $conn_id=""; } if(strlen($conn_id)>0){ if($ext=="coll"){ $conncond.= " AND coll_id='".$conn_id."'"; $imageconnectonstable=""; $imageconnectionscond=""; }else{ $conncond.= " AND conn_id='".$conn_id."'"; $imageconnectionstable=", image_connections kapocs "; $imageconnectionscond=" AND kapocs.img_id=kepek.id "; } } //HA film if($conn_type==1){ $parancs = "SELECT * FROM movies WHERE movie_id ='" . $conn_id ."' "; $eredmeny = mysql_query($parancs, $conn) or die("Nem tudtam az adatokat lekérni. A hiba oka: ".mysql_error()); while ( $sor = mysql_fetch_array($eredmeny)) { $title2= "
".$sor['title']; if($sor['season']>0){ if($lng=="hun"){ $title2.= " - ". $sor['season'].".".$txt['season'].""; }else{ $title2.= " - ".$txt['season']." ". $sor['season']; } } $title2.= "
"; if( $sor['hun_title']!= $sor['eng_title']){ $title2.= "".$sor['hun_title']; if($sor['season']>0){ if($lng=="hun"){ $title2.= " - ". $sor['season'].".".$txt['season'].""; }else{ $title2.= " - ".$txt['season']." ". $sor['season']; } } $title2.= "
"; } $title2.= "(".$sor['year']; $title2.= ")
"; } } //HA szemely if($conn_type==2){ $parancs = "SELECT person_id, name FROM persons WHERE person_id =" . $conn_id ; $eredmeny = mysql_query($parancs, $conn) or die("Nem tudtam az adatokat lekérni. A hiba oka: ".mysql_error()); while ( $sor = mysql_fetch_array($eredmeny)) { $title2= $sor['name']; } } //HA cimke if($conn_type==3){ $parancs = "SELECT ".$lng."_tag_name FROM tags WHERE tag_id =" . $conn_id ; $eredmeny = mysql_query($parancs, $conn) or die("Nem tudtam az adatokat lekérni. A hiba oka: ".mysql_error()); while ( $sor = mysql_fetch_array($eredmeny)) { $title2= $sor[$lng."_tag_name"]; } } //HA kultfigura if($conn_type==4){ $parancs = "SELECT ".$lng."_name FROM cult_characters WHERE id =" . $conn_id ; $eredmeny = mysql_query($parancs, $conn) or die("Nem tudtam az adatokat lekérni. A hiba oka: ".mysql_error()); while ( $sor = mysql_fetch_array($eredmeny)) { $title2= $sor[$lng."_name"]; } } if($ext=="coll" && $conn_id>0){ $pagerquery="SELECT name FROM image_collections WHERE id='".$conn_id."' "; $eredmeny = mysql_query($pagerquery, $conn) or die("Nem tudtam az adatokat lekérni. A hiba oka: ".mysql_error()); while ( $sor = mysql_fetch_array($eredmeny)){ $title2=$sor['name']; } } //csekkolni h csak sajatot /* if($nick!=$_SESSION['nick'] && $_SESSION['role']!="admin"){ header("Location: index.php"); echo ""; } */ ?>
".$nick."
".$title2."
