"; exit; header("Location: fresh.php"); die(); } while ( $sor = mysql_fetch_array($eredmeny)) { $title= $sor['title']; $hun_title= $sor['hun_title']; $eng_title= $sor['eng_title']; $year= $sor['year']; $wordcount = $sor['wordcount']; $season= $sor['season']; $plot_eng=$sor['plot_eng']; $plot_hun=$sor['plot_hun']; } $cover = "pix/cover/".$book_id.".jpg" ; $pagetitle=$title; if ($lng=="hun"){ $pagetitle.=" // ".$hun_title; } if ($lng=="eng" && strlen($eng_title)>0){ $pagetitle.=" // ".$eng_title; } $pagetitle.=" (".$year.") - FilmO"; /// datum es film mmegjelenes date_default_timezone_set('Europe/Budapest'); $datetime = date("Y-m-d G:i:s"); $pieces = explode(" ", $datetime); $date=$pieces[0]; $currDate=$date; $time=$pieces[1]; $datepieces = explode("-", $date); $curryear=$datepieces[0]; $month=$datepieces[1]; $day=$datepieces[2]; $is_released; $to_release; if($release>$datetime){ $is_released="false"; $release_pieces = explode(" ", $release); $release_date=$release_pieces[0]; $diff = abs(strtotime($release_date) - strtotime($currDate)); $to_release = floor($diff / (60*60*24)); } $release_datepieces = explode("-", $release_date); $release_year=$release_datepieces[0]; $release_nummonth=$release_datepieces[1]; $release_day=$release_datepieces[2]; switch ($release_nummonth) { case 01: $release_month=$txt["january"]; break; case 02: $release_month=$txt["february"]; break; case 03: $release_month=$txt["march"]; break; case 04: $release_month=$txt["april"]; break; case 05: $release_month=$txt["may"]; break; case 06: $release_month=$txt["june"]; break; case 07: $release_month=$txt["july"]; break; case 8: $release_month=$txt["august"]; break; case 9: $release_month=$txt["september"]; break; case 10: $release_month=$txt["october"]; break; case 11: $release_month=$txt["november"]; break; case 12: $release_month=$txt["december"]; break; } ?>
" . $pagetitle.""; ?> 
";
while ( $sor = mysql_fetch_array($eredmeny)){
$wane=$sor['COUNT(book_id)'];
}
?>
0){
print "
";
}
?>
0){ print " - ".$txt['season']." " . $season; } */ ?>
".$sequel." ".$sequelsout." |
ez egy másik film címe (1239) >> Megegy másik gilm
"; print "| "; print " | ";
if($userertekeles<1){
$hiderate0="hideRate";
}
echo " ";
/*
print "";
echo $txt["book_rate0"];
echo " ";
for($i=1;$i<=5;$i++){
$currclass="";
if($userertekeles>0){
//$modtitle=$txt["i_modify_to"].": ";
if($i==$userertekeles){
//$modtitle=$txt["you_think"].": ";
$currclass="currentRate";
}
}
echo "";
echo $txt["book_rate".$i];
echo " ";
}
echo "";
include 'ratingviewer.php';
print " ";
*/
} else {
print "";
print "".$txt["to_rate_and_have_other_options_you_have_to_be_signed_in"]."" ;
print " ";
}
print " | "; print " |
";
}
if($wordcount>0){
print "| "; $runtime=round($wordcount/$_SESSION["wpm"]); echo $runtime." ".$txt['minutes']; if($defaultruntime!=$runtime){ //$episodesdisplay="".$defaultruntime." ".$txt['minutes']; //echo " *"; }else{ $episodesdisplay=""; } //echo $totalepisodes; echo " |
| [ ".$sor[$langgenrename]." ] | "; } while ( $sor = mysql_fetch_array($eredmeny)); } if($_SESSION['role'] == 'admin'){ print "
| ";
if($_SESSION['belepett'] == true ) {
//Favorit film-e
$parancs = "SELECT book_id FROM favbooks WHERE book_id='" . $book_id."' AND nick='".$_SESSION['nick']."'" ;
$eredmeny = mysql_query($parancs, $conn) or die("Nem tudtam az adatokat lekérni. A hiba oka: ".mysql_error());
if(mysql_num_rows($eredmeny)>0){
$isFavbook="favbookActive";
$favbookTitle=$txt["delete_from_favourites"];
}else{
$isFavbook="";
$favbookTitle=$txt["add_to_favourites"];
}
//Megnezendo-e
$parancs = "SELECT book_id FROM wannaread WHERE book_id='" . $book_id."' AND nick='".$_SESSION['nick']."'" ;
$eredmeny = mysql_query($parancs, $conn) or die("Nem tudtam az adatokat lekérni. A hiba oka: ".mysql_error());
if(mysql_num_rows($eredmeny)>0){
$isWannaread="wannareadActive";
$wannareadTitle=$txt["delete_from_wannareads"];
}else{
$isWannaread="";
$wannareadTitle=$txt["add_to_wannareads"];
}
//Folyamatban-e
$parancs = "SELECT book_id FROM books_in_progress WHERE book_id='" . $book_id."' AND nick='".$_SESSION['nick']."'" ;
$eredmeny = mysql_query($parancs, $conn) or die("Nem tudtam az adatokat lekérni. A hiba oka: ".mysql_error());
if(mysql_num_rows($eredmeny)>0){
$isInProgress="inProgressActive";
$inProgressTitle=$txt["cancel"];
}else{
$isInProgress="";
$inProgressTitle=$txt["in_progress"];
}
//Megwan-e
$parancs = "SELECT book_id, extra_info FROM book_megwan WHERE book_id='" . $book_id."' AND nick='".$_SESSION['nick']."'" ;
$eredmeny = mysql_query($parancs, $conn) or die("Nem tudtam az adatokat lekérni. A hiba oka: ".mysql_error());
$extra_info;
if(mysql_num_rows($eredmeny)>0){
$isMegwan="megwanActive";
$megwanTitle=$txt["i_dont_have_this"];
while($row = mysql_fetch_array($eredmeny)){
$extra_info=$row['extra_info'];
}
}else{
$isMegwan="";
$megwanTitle=$txt["i_have_this"];
}
//Olvasott=e
$parancs6 = "SELECT book_id FROM lastbooks WHERE book_id='" . $book_id."' AND nick='".$_SESSION['nick']."'" ;
$eredmeny6= mysql_query($parancs6, $conn) or die("Nem tudtam az adatokat lekérni. A hiba oka: ".mysql_error());
if(mysql_num_rows($eredmeny6)>0){
$isLastbook="lastbookActive";
$lastbookTitle=$txt["i_read_this_last"];
}else{
$isLastbook="";
$lastbookTitle=$txt["i_read_this"];
}
}
if($_SESSION['belepett'] == true){
/*
print " ";
print " ";
print "";
print "";
print " ";
print "";
print ""; */ print " ";
if($is_released!="false"){
$parancs8 = "SELECT DISTINCT nick FROM book_megwan WHERE book_id='".$book_id."' AND userid IN (".$_SESSION['active_list_userids'].")";
$eredmeny8 = mysql_query($parancs8, $conn) or die("Nem tudtam az adatokat lekérni. A hiba oka: ".mysql_error());
$numberOfMegwans=mysql_num_rows($eredmeny8);
if($numberOfMegwans<1){
$numberOfMegwans="0";
}
print " ";
print "";
print "". $numberOfMegwans." ".$txt['members']."".$txt['have_this']."\" class='hastipButton'>".ucfirst(strtolower($txt['i_have_this']))." [".$numberOfMegwans."] ";
if(strlen($extra_info)>0){
print "> ".$extra_info."'> ";
}
print "". $numberOfFavbooks." ".$txt['members']." ".$txt['marked_as_favourite']."\" class='hastipButton'>".ucfirst(strtolower($txt['favourite']))." [".$numberOfFavbooks."] ";
print "". $numberOfWannareads." ".$txt['members']." ".$txt['marked_as_wannaread']."\" class='hastipButton'>".ucfirst(strtolower($txt['wannaread']))." [".$numberOfWannareads."] ";
print "". $numberOfInProgresss." ".$txt['members']." ".$txt['marked_as_inProgress']."\" class='hastipButton'>".ucfirst(strtolower($txt['in_progress']))." [".$numberOfInProgresss."] ";
print "";
print " ";
}
print "Kérések: . ";
print ""; if($is_released!="false"){ print " ";
//include 'favbooksajax.php';
print " ";
}
//megnézendõstipp
print "";
//include 'wannareadbookajax.php';
print " ";
print " | ";
print "";
?>
";
}
print " ";
?>
0){ $titleurlhez=substr($title,0,strripos($title, $kivag)); }else{ $titleurlhez=$title; } if (!(strripos($title, $extradisc)>0)){ print " "; print" ";
//print" ";
if (($season>0)==false){
print " ";
print " ";
}
if ($anime=="true"){
print" ";
}
print ""; } else { print " - - - extra - - - "; } */ print ""; //HOZZÁADÁS A LEGUTÓBBIAKHOZ ?> |
0) {
$wane_hanyfele+=1;
$parancs = "SELECT name, szemelyek.person_id FROM persons szemelyek, author szerzo WHERE szerzo.person_id=szemelyek.person_id AND szerzo.book_id=".$book_id." ORDER BY name ASC;" ;
$eredmeny = mysql_query($parancs, $conn) or die("Nem tudtam az adatokat lekérni. A hiba oka: ".mysql_error());
$actorDisplayLimit=3;
$allActorNum=mysql_num_rows($eredmeny);
print "
| ||
|
";
print "";
print " ".$sor['name']."
| ";
if($_SESSION['role'] == 'admin'){
print "![]() | ";
}
print"|||
| ".$txt['more']." | "; if($_SESSION['role'] == 'admin'){ print ""; } print " |
| ";
$actornumber=0;
while ( $sor = mysql_fetch_array($eredmeny)) {
$actornumber++;
if($actornumber>$actorDisplayLimit && $actorDisplayLimit+1 < $allActorNum){
$moreActor="moreActor";
}
$portray = "pix/person/". $sor['person_id'].".jpg" ;
if (!file_exists($portray)) {
$portray = "pix/person/person0.jpg" ;
}
$hastipPortrait="hastipPortrait";
if (($sor['voice_lang']=='hun' && $lng=='hun')|| $sor['voice_lang']!='hun' ){
print "||
|
";
print "";
print " ".$sor['name']."
| ";
if($_SESSION['role'] == 'admin'){
print "![]() | ";
}
print"|||
| ".$txt['more']." | "; if($_SESSION['role'] == 'admin'){ print ""; } print " |
| ";
$actornumber=0;
while ( $sor = mysql_fetch_array($eredmeny)) {
$actornumber++;
if($actornumber>$actorDisplayLimit && $actorDisplayLimit+1 < $allActorNum){
$moreActor="moreActor";
}
$portray = "pix/cult_character/". $sor['id'].".jpg" ;
if (!file_exists($portray)) {
$portray = "pix/person/person0.jpg" ;
}
$hastipPortrait="hastipPortrait";
if (($sor['voice_lang']=='hun' && $lng=='hun')|| $sor['voice_lang']!='hun' ){
print "||
|
";
print "";
print " ".$sor[$lng.'_name']."
| ";
if($_SESSION['role'] == 'admin'){
print "![]() | ";
}
print"|||
| ".$txt['more']." | "; if($_SESSION['role'] == 'admin'){ print ""; } print " | "; print " | "; print ""; } //ha a sorok száma kisebb mint: 5 $wane_osszes=$wane_author; $wane_sorok=$wane_osszes+$wane_hanyfele; if ($wane_sorok<8 && $wane_osszes>0) { print "||
".ucfirst($txt["location"]).": " ;
}
print "".$locationsor." |
![]() |
| || ".$sor['label']." || | "; } while ( $sor = mysql_fetch_array($eredmeny)); print "
".$timesor." |
";
print "
";
print "
";
print "
";
print "
";
print "
";
print "
";
print "
";
echo "


";
*/
}
//TORTENET
if($lng=="hun"){
if(strlen($plot_hun)>2){
echo "| "; echo $txt['plot']; echo " | "; echo "
| "; echo nl2br($plot_hun); echo " | "; echo "