File manager - Edit - /home/filmpbuk/public_html/filmotech_detail.php.testmenuhaut
Back
<!DOCTYPE html> <?php /* FILMOTECH Website DETAIL page (c) 2013-2015 by Pascal PLUCHON http://www.filmotech.fr */ // Site parameters require_once("include/params.inc.php"); require_once("include/config.inc.php"); require_once("include/functions.php"); // Get configuration $cfg = new CONFIG(); // Connection to database try { if ( $cfg->DB_TYPE == 'sqlite' ) { $db = new PDO('sqlite:'.$cfg->DB_NAME.'.sqlite3'); } else { $db = new PDO('mysql:host='.$cfg->DB_SERVER.';dbname='.$cfg->DB_NAME, $cfg->DB_USER, $cfg->DB_PASSWORD); $db->query("SET NAMES UTF8"); } } catch (Exception $e) { die('Erreur : ' . $e->getMessage()); } // Select Movie ID if ((isset($_GET['id']))) $id=$_GET['id']; else $id=-1; $req = $db->prepare('SELECT * FROM ' . $cfg->DB_TABLE . ' WHERE ID = :id'); $req->execute(array('id' => $id)); // Formatting functions /*function add_commas( $string ) { return str_replace("\r",", ",$string); }*/ // Query parameters //$search_fields = array( "TitreVF" , "TitreVO" , "Genre" , "Acteurs" , "Realisateurs" , "Commentaires" , "Bonus" , "Reference" ); $search_fields = array( "TitreVF" , "TitreVO" , "Acteurs" , "Pays" , "Annee" , "Genre" , "Realisateurs" , "Reference" , "Support" , "Edition", "Synopsis" ); $search_field = "TitreVF"; //$search_field2 = "TitreVF"; $search_label = "Titre"; //$search_label2 = "Titre"; $search_query = ""; //$search_query2 = ""; // Last update $lastUpdate = '?'; $filename = 'update.txt'; if (file_exists($filename)) { $handle = fopen($filename, "r"); $lastUpdate = fread($handle, filesize($filename)); fclose($handle); } $last_update_label = sprintf($last_update,$lastUpdate); // Preparing database request // Count number of records $query = "SELECT count(*) from " . $cfg->DB_TABLE; $result = $db->query($query); $result_fetch = $result->fetch(); $total_record = $result_fetch[0]; $result->closeCursor(); $TitreVO = 'TitreVO'; $page = 1; $offset = 0; $pagination = $paginate; // Recherche sur les champs titreVO, titreVF if ( (isset($_POST['search_query'])) && ($_POST['search_query']!="") ) { $search_query = stripslashes($_POST['search_query']); $search_field = $_POST['search_field']; $search_label = $field_labels[$search_field]; $select = sprintf( "SELECT ID, TitreVF, %s , Annee, Support, Edition, FilmVu, PretEnCours, Synopsis FROM %s WHERE %s LIKE '%s' OR %s LIKE '%s' ORDER BY TitreVF", $second_column, $cfg->DB_TABLE , $_POST['search_field'] , '%' . addslashes($search_query) . '%' ,'TitreVO', '%' . addslashes($search_query) . '%'); //,'Acteurs', '%' . addslashes($search_query) . '%' OR %s LIKE '%s' $select_count = sprintf( "SELECT COUNT(*) FROM %s WHERE %s LIKE '%s' OR %s LIKE '%s' ORDER BY TitreVF", $cfg->DB_TABLE , $_POST['search_field'] , '%' . addslashes($search_query) . '%' ,'TitreVO', '%' . addslashes($search_query) . '%'); //,'Acteurs', '%' . addslashes($search_query) . '%' OR %s LIKE '%s' $pagination = false; // Count number of rows returned $result = $db->query($select_count); $result_fetch = $result->fetch(); $count = $result_fetch[0]; $result->closeCursor(); } else { if (isset($_GET['Page'])) $page = $_GET['Page']; $offset = ($page-1) * $nb_record_per_page; if ($paginate) { $select = "SELECT ID, TitreVF, " . $second_column . ",Annee, Support, FilmVu, PretEnCours, Edition, Pays, Synopsis FROM " . $cfg->DB_TABLE . " ORDER BY ID desc LIMIT " . $nb_record_per_page . " OFFSET " . $offset; $select_count = "SELECT COUNT(*) FROM " . $cfg->DB_TABLE . " ORDER BY TitreVF LIMIT " . $nb_record_per_page . " OFFSET " . $offset; $count = 1; } else { $select = "SELECT ID, TitreVF, " . $second_column . ", FilmVu, Annee, Support, PretEnCours, Edition, Pay, Synopsiss FROM " . $cfg->DB_TABLE . " ORDER BY TitreVF"; $count = $total_record; } } $response = $db->query($select); if ($pagination) $label_movie_count = sprintf( $movie_count_paginate , $offset+1 , ($offset+$nb_record_per_page)>$total_record ? $total_record : $offset+$nb_record_per_page , $total_record ); else $label_movie_count = sprintf( $movie_count , $count ); function column_format( $field, $value ) { if (($field=='Acteurs')||($field=='Realisateurs')) return strlen( $value ) <= 80 ? str_replace("\r",", ",$value) : mb_substr(str_replace("\r",", ",$value), 0 , 120 , "UTF-8" ) . '...' ; if ($field=='Duree') return $value . ' mn'; return $value; } function add_commas( $string,$search_label ) { $string = str_replace("\r",", ",$string); $unique = explode(", ",$string); $result=""; foreach ($unique as $key => $value) { //formulaire de recherche $result.="<a href='#' onclick=\"javascript:document.forms['$value-$search_label'].submit();\">$value</a>, "; } return $result; } function add_forms( $string,$search_label ) { $string = str_replace("\r",", ",$string); $unique = explode(", ",$string); $result=""; foreach ($unique as $key => $value) { //formulaire de recherche $result.="<form name='$value-$search_label' method='post' action='index.php'> <input type='hidden' name='search_query' value='$value'> <input type='hidden' name='search_field' value='$search_label'> </form>"; } return $result; } function add_br( $string ) { return str_replace("\r","<br />",str_replace("\n","<br />",$string)); } function add_nothing( $string,$search_label ) { $string = str_replace("\r",", ",$string); $unique = explode(", ",$string); $result=""; foreach ($unique as $key => $value) { //formulaire de recherche $result.="<a href='#' onclick=\"javascript:document.forms['$value-$search_label'].submit();\">$value</a> "; } return $result; } ?> <html> <head> <title><?php echo($window_title); ?></title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <?php include('header2.php'); ?> <!-- Main block --> <div class="container"> <!--col-lg-8 --> <div class=" col-12 " style="margin:auto; max-width:1280px"> <!-- Update window title with movie title --> <?php while ($data = $req->fetch()) { // Update window title echo( '<script>document.title += " - ' . $data['TitreVF'] . '";</script>' ); ?> <!-- ---------------------------- Movie header for desktop/tablet--------------------------------------- --> <div id="page-inner"> <div class="row"> <!--<div class="col-lg-3"></div>--> <!-- bandeau fiche film --> <div class="panel-heading-liste-detail"> <i class="fa fa-info fa-2x"> </i> Fiche du film </div> <div id="titrefilm"> <center> <b> <span class="titrefilm-detail"><?php echo $data['TitreVF']; ?></span> </b> <span class="titrefilmvo-detail"><?php echo('('. $data['TitreVO'] . ')'. '<br />' ) ;?></span> </center> </div> <!-- fin bandeau fiche film --> <!-- affiche du film + Age --> <div class="affiche-film"> <?php $filename = sprintf('%s/Filmotech_%05d.jpg' , $cfg->POSTERS_DIRECTORY , $data['ID'] ); $filename2 = sprintf('%s/Filmotech_%05d.jpg' , $cfg->POSTERS_DIRECTORY_LARGE , $data['ID'] ); if (file_exists($filename2)) { ?> <a class="fancybox-effects-c" style="cursor: -webkit-zoom-in; cursor: -moz-zoom-in;" href="<?php echo $filename2; ?>" title="<?php echo $data['TitreVF']; ?>"> <center> <img class="affiche" src="<?php echo $filename; ?>" /></a><br> <?php } else { echo('<center><img class="affiche" src="' . $filename . '" "><br>'); } ?> <!-- Zoom au passage de la souris <script> $("#zoom_01").elevateZoom({tint:true, tintColour:'#F90', tintOpacity:0.5, scrollZoom : true}); </script> --> <div id="classificationages"> <?php $classages = $data['Commentaires']; echo ' '.(switch_classages($classages)).' '; ?> </div> </center> </div><!-- fin affiche du film + Age --> <!-- affichage #film --> <div class="col-md-3b infofilm"> <div class="panel panel-info-detail"> <div class="panel-heading"> <div class="texte-panel-heading"> <i class="fas fa-film fa-1_6x"></i> Film</div> </div> <div class="divdetailsupport "> <h5> <span style="color:#468847;"><?php echo add_forms($data['Annee'],'Annee' ); ?><?php echo add_nothing($data['Annee'],'Annee'); ?> <?php $drapeauxpays = $data['Pays']; echo ' '.switch_drapeauxpays($drapeauxpays); ?> <?php echo ' '.gmstrftime( "%Hh%Mmn", $data['Duree'] * 60 ); ?> </span> <h5><span><?php echo add_forms($data['Genre'],'Genre' ); ?><?php echo add_nothing($data['Genre'],'Genre'); ?></span></h5> <?php echo add_forms($data['Realisateurs'],'Realisateurs' ); ?> <h5><span class="nftext-info"><strong><?php echo($field_labels['Realisateurs']); ?> :</strong></span> <span class="muted"><?php echo add_commas($data['Realisateurs'],'Realisateurs'); ?></span></h5> <?php if ($show_media_infos) { echo( '' );?> <?php if ($show_lent || $show_not_seen) { if ( ($show_lent) && ($show_not_seen) ) { if ( ($data['FilmVu'] == 'NON') && ($data['PretEnCours'] == 'OUI') ) echo ( '<img src="img/pretpasvu.png" style="width:40px" alt="'.$movie_not_seen_and_lent.'" />'.'<span style="color:#060">'.$movie_not_seen_and_lent.'</span>'.'<br />'.'<br />' ); elseif ($data['FilmVu'] == 'NON') echo ( '<img src="img/avoir.png" style="width:25px" alt="'.$movie_not_seen.'" />'.'<span style="color:#060">'.$movie_not_seen.'</span>'.'<br />'.'<br />' ); elseif ($data['PretEnCours'] == 'OUI') echo ( '<img src="img/pret.png" style="width:25px" alt="'.$movie_lent.'" />'.'<span style="color:#060">'.$movie_lent.'</span>'.'<br />'.'<br />' ); } elseif ( ($show_lent) && ($data['PretEnCours'] == 'OUI') ) echo ( '<img src="img/pret.png" style="width:25px" alt="'.$movie_lent.'" />'.'<br />'.'<br />' ); elseif ( ($show_not_seen) && ($data['FilmVu'] == 'NON') ) echo ( '<img src="img/avoir.png" style="width:25px" alt="'.$movie_not_seen.'" />'.'<br />'.'<br />' ); } ?> <?php }?> </div> </div> <div class="dsynopsis"><span class="muted"><strong><?php echo add_br($data['Synopsis']); ?></strong></span></div> <div class="infosupport"> <div class="panel panel-info-detail" style="width: 260px;position: relative;float: left;"> <div class="panel-heading"> <div class="texte-panel-heading"> <i class="far fa-hdd fa-1_6x"></i> Support</div> </div> <div class="divdetailsupport "> <?php echo( '<strong>' . $field_labels['Reference'] . ' : </strong>' . $data['Reference'] . '<br />' ); echo( '<strong>' . $field_labels['Support'] . ' : </strong>' ); $imagesupport = $data['Support']; echo ' '.switch_imagesupport($imagesupport); echo( '<strong>' . $field_labels['Edition'] . ' : </strong>' ); $imageedition = $data['Edition']; echo ' '.switch_imageedition($imageedition). '<br />'; echo( '<strong>' . $field_labels['Zone'] . ' : </strong>' . $data['Zone'] . '<br />' ); //Affiche la taille du fichier if (($data['MediaChemin'] <> "") && ($data['MediaType'] = "URL")) echo '<span class="film-size">'.'<strong>'.($show_media).' '.':'.'</strong>'.'</span>'.'<span class="film-muted-size">'.($data['MediaChemin'].' '.'Go' .'</span>' ); ?> </div> </div> <div class="panel panel-info-detail" style="width: 200px;position: relative;float: left;"> <div class="panel-heading"> <div class="texte-panel-heading"><i class="far fa-bookmark fa-1_6x"></i> Entrée</div> </div> <div class="divdetailsupport "> <?php echo( '<strong>' . $field_labels['ID'] . ' : </strong>' . $data['ID'] . '<br />' ); echo( '<strong>' . $field_labels['EntreeType'] . ' : </strong>' . $data['EntreeType'] . '<br />' ); echo( '<strong>' . $field_labels['EntreeSource'] . ' : </strong>' . $data['EntreeSource'] . '<br />' ); echo( '<strong>' . $field_labels['EntreeDate'] . ' : </strong>' . $data['EntreeDate'] . '<br />' ); ?> </div> </div> </div> </div> <!--fin affichage #film --> <div class="col-md-3detail"> <div class="panel panel-info-detail"> <div class="panel-heading"> <div class="texte-panel-heading"> <i class="fas fa-video fa-2x"></i> Langues et Audio</div> </div> <!-- Affichage de l'Audio Langue Sous-titres --> <?php echo( '<div class="divdetailsupport ">' ); echo( '<div id="langue">'.'<div class="detailfilmheader">'.'<strong>' . $field_labels['Langues'] . ': </strong>' .'</div>' ); echo( '<div class="detailfilm">' ); $drapeauxlangue = $data['Langues']; echo switch_drapeauxlangue($drapeauxlangue); echo( '</div>'.'</div>'); echo( '<div id="soustitre">'.'<div class="detailfilmheader">'.'<strong>' . $field_labels['SousTitres'] . ': </strong>' .'</div>'); echo( '<div class="detailfilm">' ); $drapeauxsoustitres = $data['SousTitres']; echo switch_drapeauxsoustitres($drapeauxsoustitres); echo( '</div>'.'</div>'); echo( '<div id="audio">'.'<div class="detailfilmheader">'. $field_labels['Audio'] . ' : </strong>' .'</div>' ); echo( '<div class="detailfilm">' ); echo ('<table border="0" width="100%" cellspacing="10">'); $imageson = $data['Audio']; echo switch_imageson($imageson); ?> </table> </div > </div> </div > </div><!-- fin Affichage de l'Audio Langue Sous-titres --> </div> <!-- of row --> <div style="position:relative; float:left; width:100%"> <!-- Center block --> <div class="row"> <!-- Movie details --> <div class="div-center-page-info"> <div class="panel panel-info-detail-onglets"> <div class="panel-heading"> <div class="texte-panel-heading"> <i class="far fa-comment fa-2x"></i> Information </div> </div> <div class="panel-body"> <ul class="nav nav-tabs"> <!-- Onglet acteurs --> <li class="active label-onglet-active"><a href="#onglet1" data-toggle="tab"> <label ><?php echo ($onglet1); ?></label> </a></li> <!-- <li class="label-onglet"><a href="#onglet2" data-toggle="tab"> <label><?php echo ($onglet2); ?></label> </a></li>--> <!-- Affiche Onglet 3 Uniquement si renseigné dans la bdd --> <!-- Onglet commentaires --> <?php $afficheonglet3=$data['Commentaires']; if (strlen($afficheonglet3) > 32) { echo ('<li class="label-onglet">'.'<a href="#onglet3" data-toggle="tab">'.'<label>'); echo ($onglet3); echo ('</label>'.'</a>'.'</li>'); } ?> <!-- Affiche Ongle 4 Uniquement si renseigné dans la bdd --> <!-- Onglet Bonus --> <?php $afficheonglet4=$data['Bonus']; if (strlen($afficheonglet4) > 2) { echo ('<li class="label-onglet">'.'<a href="#onglet4" data-toggle="tab">'.'<label>'); echo ($onglet4); echo ('</label>'.'</a>'.'</li>'); } ?> <!-- Onglet Bande Annonce --> <?php if (($data['BAChemin'] <> "") && ($data['BAType'] == "URL")) { echo ('<li class="label-onglet">'.'<a href="#onglet5" data-toggle="tab">'.'<label>'); echo ($onglet5); echo ('</label>'.'</a>'.'</li>'); } ?> <!-- Onglet Jaquette --> <?php $jaquette = sprintf('%s/Filmotech_%05d_j.jpg' , $cfg->POSTERS_JAQUETTE , $data['ID'] ); if (file_exists($jaquette)) //if (file_exists($sticker)) { echo ('<li class="label-onglet">'.'<a href="#onglet7" data-toggle="tab">'.'<label>'); echo ($onglet7); echo ('</label>'.'</a>'.'</li>'); } ?> <!-- Onglet Sticker --> <?php $sticker = sprintf('%s/Filmotech_%05d_s.jpg' , $cfg->POSTERS_JAQUETTE , $data['ID'] ); if (file_exists($sticker)) { echo ('<li class="label-onglet">'.'<a href="#onglet8" data-toggle="tab">'.'<label>'); echo ($onglet8); echo ('</label>'.'</a>'.'</li>'); } ?> </ul> <div class="tab-content"> <div class="tab-pane fade active in" id="onglet1"> <br /> <?php echo add_forms($data['Acteurs'],'Acteurs' ); ?> <p ><span class="nftext-info"><strong><?php echo($field_labels['Acteurs']); ?> : </strong></span> <?php echo add_commas($data['Acteurs'],'Acteurs'); ?> <br /> <br /> <?php $acteurs = str_replace("\r", '|', $data['Acteurs'], $count); //on remplace les sauts de ligne par | $liste_acteurs = explode("|", $acteurs); //on récupère les données de chaque ligne for($i=0;$i<count($liste_acteurs);$i++) // on fait une boucle { ?> <!-- Affichage de la photo des acteurs --> <table border="0" class="table-acteur" > <td> <?php $acteurs = str_replace("\r", '|', $data['Acteurs'], $count); //on remplace les sauts de ligne par | $liste_acteurs = explode("|", $acteurs); //on récupère les données de chaque ligne for($i=0;$i<count($liste_acteurs);$i++) // on fait une boucle { $nomacteur = explode(" : ", $liste_acteurs[$i]); //on récupère les données qui se trouvent avant et après : if (count($nomacteur) > 1) // on fait une boucle pour vérifier que le rôle de l'acteur existe { $nomrole = $nomacteur[1]; // si le rôle acteur existe, on lui donne le nom $nomrole } else { $nomrole = '<br />'; // sinon, si le rôle acteur n'existe pas, $nomrole sera un retour à la ligne } ?> <div class="col-lg-2" style="text-align: center;"> <div class="actor"> <?php $filename = sprintf('./acteurs/' . $nomacteur[0] . '.jpg'); $filename2 = sprintf('./acteurs_larges/' . $nomacteur[0] . '.jpg'); $filename3 = str_replace(" ", '_', $nomacteur[0] ); $filename4 = sprintf( $nomacteur[0] . '.jpg'); ?> <?php if (file_exists($filename2)) { ?> <div style="height:175px"> <a class="fancybox-effects-d" style="cursor: -webkit-zoom-in; cursor: -moz-zoom-in;" href="<?php echo $filename2; ?>" title="<?php echo $nomacteur[0]; ?>"><img class="img-poster actor-img" img width='130'src="<?php echo $filename; ?>" alt="Acteur" /></a> </div> <a class="fancybox-effects-d" href="<?php echo $filename2; ?>" title="<?php echo $nomacteur[0]; ?>"><img src="img\zoom3.png" alt="" style="position:absolute; right:20px" /></a> <?php } elseif (file_exists($filename)) { ?> <div style="height:175px"> <img class="img-poster actor-img" img width='130'src="<?php echo $filename; ?>" alt="Acteur" /> </div> <!-- zoom image au survol avec elevateZoom --> <!--<div style="height:175px"> <img id="<?php echo $filename3; ?>" class="img-poster actor-img" img width='130'src="<?php echo $filename; ?>" data-zoom-image="<?php echo $filename2 ?>" alt="Acteur" /><script> $("#<?php echo $filename3; ?>").elevateZoom({tint:true, tintColour:'#F90', tintOpacity:0.5, scrollZoom: true, zoomWindowWidth:700, zoomWindowHeight:700}); </script> </div>--> <?php } else { ?> <div style="height:175px"> <img class="actor-img" img width='130'src="acteurs/image_non_disponible.png" alt="Acteur" /> </div> <?php } ?> <!-- Fin Affichage de la photo des acteurs --> <div class="nom-acteur-detail"> <h4> <span class="text-actor"><span class="text-actor"><?php echo add_nothing($nomacteur[0],'Acteurs'); ?> </span> </h4> </div> <div class="search-tmdb"> <?php // recherche sur themoviedb.org $query_acteur=str_replace(" ", '+', $liste_acteurs[$i]); echo '<a style="color:#008000" href=https://www.themoviedb.org/search?query='.$query_acteur.' target=/"blank/">' .'<img src="img/tmdb-logo.png" height="25" />'.'Plus d\'Info'.'</A>'; ?> </div> </div> </div> <?php } ?></td> </tr> </table> <?php } ?> </div> <div class="tab-pane fade" id="onglet2"> <br /> <span class="muted"><strong><?php echo add_br($data['Synopsis']); ?></strong></span> </div> <div class="tab-pane fade" id="onglet3"> <br /> <br /> <span class="muted"><strong><?php echo add_br($data['Commentaires']); ?></strong></span> </div> <div class="tab-pane fade" id="onglet4"> <br /> <br /> <span class="muted"><strong><?php echo add_br($data['Bonus']); ?></strong></span> </div> <div class="tab-pane fade" id="onglet5"> <br /> <br /> <!-- <div class="bgba"> <div class="ba">--> <?php // Bandes Annonce if (($data['BAChemin'] <> "") && ($data['BAType'] = "URL")) { $taille_ba="width=\"100%\" height=\"100%\""; // allociné if (substr($data['BAChemin'],11,8)=="allocine") { $id_ba_temp=explode("=", $data['BAChemin']); $id_ba=explode("&", $id_ba_temp['1']); ?> <div class="bgba-allocine" ><!--style="height: 600px;width: 700px;background-size: 700px 510px;"--> <div class="ba-allocine" > <!--style="width:670px; height:760px; top:88px;"--> <div id="blogvision"> <iframe src= "https://player.allocine.fr/<?php echo $id_ba['0']?>.html" scrolling="no" class="iframe-ba-allocine" ></iframe></div> <!--width="668px" height="370px" style="border:transparent;"--> <?php } ?> <!--if (substr($data['BAChemin'],11,8)=="allocine") { $id_ba_temp=explode("=", $data['BAChemin']); $id_ba=explode("&", $id_ba_temp['1']); echo '<object '.$taille_ba.'><param name="movie" value="http://www.allocine.fr/blogvision/'.$id_ba['0'].' "></param><param name=allowFullScreen value=true></param><param name=allowScriptAccess value=always></param> <embed src="http://www.allocine.fr/blogvision/'.$id_ba['0'].'" type="application/x-shockwave-flash" allowFullScreen="true" allowScriptAccess="always" '.$taille_ba.'></embed></object>'; $bandeannonce=1; }--> <?php // youtube if(substr($data['BAChemin'],11,7)=="youtube") { $id_ba_temp=explode("v=", $data['BAChemin']); $id_ba=explode("&", $id_ba_temp['1']); echo '<div class="bgba" ><div class="ba">'; echo '<object '.$taille_ba.'><param name="movie" value="https://www.youtube.com/v/'.$id_ba[0].'?fs=1&hl=fr_FR" ></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param> <embed src="https://www.youtube.com/v/'.$id_ba[0].'?fs=1&hl=fr_FR" type="application/x-shockwave-flash" allowscriptaccess= "always" allowfullscreen="true" '.$taille_ba.'></embed></object>'; $bandeannonce=1; } // dailymotion if(substr($data['BAChemin'],11,11)=="dailymotion") { $id_ba_temp=explode("video/", $data['BAChemin']); $id_ba=explode("_", $id_ba_temp['1']); echo '<object '.$taille_ba.'><param name="movie" value="http://www.dailymotion.com/swf/video/'.$id_ba[0]. '?additionalInfos=0"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param> <embed src="http://www.dailymotion.com/swf/video/'.$id_ba[0].'?additionalInfos=0" type="application/x-shockwave-flash" '.$taille_ba. ' allowfullscreen="true" allowscriptaccess="always"></embed></object>'; $bandeannonce=1; } // cinemovie if(substr($data['BAChemin'],11,10)=="cinemovies") { $id_ba=explode("-", $data['BAChemin']); echo '<object '.$taille_ba.'><param value="http://www.cinemovies.fr/player/cinemovies-playerexport.swf?IDBA=ba_'.$id_ba[3].'" name="movie"/> <embed src="http://www.cinemovies.fr/player/cinemovies-playerexport.swf?IDBA=ba_'.$id_ba[3].'" type="application/x-shockwave-flash" '. $taille_ba.'></embed></object>'; $bandeannonce=1; } // cinEmotions http://html5.previewnetworks.com/fr/cinema/2510/331100233-1/iframe.html?html5=2&width=650&height=365&volume=80&ewConfig= if(substr($data['BAChemin'],7,21)=="html5.previewnetworks") { echo( '<i class="fa fa-play-circle-o fa-2x" style=" color: green;"></i>'.' '.'<a href="'.$data['BAChemin'].'" class="btn-fmt btn-mini">'.$show_trailer.'</a>' ).'<br>'; } // dvdfr if (substr($data['BAChemin'],11,5)=="dvdfr") { echo( '<i class="fa fa-play-circle-o fa-2x" style=" color: green;"></i>'.' '.'<a href="'.$data['BAChemin'].'" class="btn-fmt btn-mini">'.$show_trailer.'</a>' ).'<br>'; } } else { ?> <?php } ?> </div> </div> </div> <div class="tab-pane fade" id="onglet7"> <br /> <br /> <div style="alignment-adjust:middle"> <?php $jaquette = sprintf('%s/Filmotech_%05d_j.jpg' , $cfg->POSTERS_JAQUETTE , $data['ID'] ); if (file_exists($jaquette)) echo('<img class="affiche" max-widht:100% src="' . $jaquette . '" ">'); ?> </div> </div> <div class="tab-pane fade" id="onglet8"> <br /> <?php $sticker = sprintf('%s/Filmotech_%05d_s.jpg' , $cfg->POSTERS_JAQUETTE , $data['ID'] ); if (file_exists($sticker)) echo('<img class="affiche" max-widht:100% src="' . $sticker . '" ">'); ?> <br /> </div> </div> </div> </div> </div> </div> </div> <!-- End of center block --> </div> <?php } $req->closeCursor(); // Termine le traitement de la requête ?> <!-- Footer --> </div> <!-- End of main block --> </div> <!--<div class="well well-small"> <table width="100%"> <tr> <td width="33%"><div class="footertexte-left"><?php echo($copyright); ?></div></td>--> <!--<td width="33%"><div class="footertexte-center"><a href="mailto:<?php echo($mail_address); ?>"> <?php echo($mail_label); ?></a></div></td>--> <!--<td width="33%"><div class="footertexte-right"><?php echo($powered_by); ?> <a href="http://www.filmotech.fr" class="footer">Filmotech</a></div></td> </tr> </table> </div>--> <br /> <center><i style="color:black"><a href="http://www.filmotech.fr/" target="_blank">Propulsé par Filmotech</a></i> <?php echo($copyright); ?></center> <br /> <!-- End of page --> <!-- JavaScript plugins (requires jQuery) --> <!--<script src="http://code.jquery.com/jquery.js"></script>--> <script src="js/jquery/jquery-1.12.4.js"></script> <script src="js/jquery/jquery-1.12.4.min.js"></script> <!-- Include all compiled plugins (below), or include individual files as needed --> <script src="js/bootstrap.min.js"></script> <script src="js/collapse.js"></script> <!-- Enable responsive features in IE8 with Respond.js (https://github.com/scottjehl/Respond) --> <script src="js/respond.min.js"></script> <!---Zoom sur la photo d'acteur --------------> <script src='js/elevatezoom/jquery-1.8.3.min.js'></script> <script src='js/elevatezoom/jquery.elevatezoom.js'></script> <!-- FancyBox --> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <!-- Add jQuery library <script type="text/javascript" src="../js/fancyBox/lib/jquery-1.10.1.min.js"></script>--> <!-- Add mousewheel plugin (this is optional) --> <script type="text/javascript" src="js/fancyBox/lib/jquery.mousewheel-3.0.6.pack.js"></script> <!-- Add fancyBox main JS and CSS files --> <script type="text/javascript" src="js/fancyBox/source/jquery.fancybox.js?v=2.1.5"></script> <link rel="stylesheet" type="text/css" href="js/fancyBox/source/jquery.fancybox.css" media="screen" /> <!-- ?v=2.1.5 --> <!-- Add Button helper (this is optional) --> <link rel="stylesheet" type="text/css" href="js/fancyBox/source/helpers/jquery.fancybox-buttons.css" /> <!--?v=1.0.5 --> <script type="text/javascript" src="js/fancyBox/source/helpers/jquery.fancybox-buttons.js?v=1.0.5"></script> <!-- Add Thumbnail helper (this is optional) --> <link rel="stylesheet" type="text/css" href="js/fancyBox/source/helpers/jquery.fancybox-thumbs.css" /> <!--?v=1.0.7 --> <script type="text/javascript" src="js/fancyBox/source/helpers/jquery.fancybox-thumbs.js?v=1.0.7"></script> <!-- Add Media helper (this is optional) --> <script type="text/javascript" src="js/fancyBox/source/helpers/jquery.fancybox-media.js?v=1.0.6"></script> <script type="text/javascript"> $(document).ready(function() { /* * Simple image gallery. Uses default settings */ $('.fancybox').fancybox(); /* * Different effects */ // Change title type, overlay closing speed $(".fancybox-effects-a").fancybox({ helpers: { title : { type : 'outside' }, overlay : { speedOut : 0 } } }); // Disable opening and closing animations, change title type $(".fancybox-effects-b").fancybox({ openEffect : 'none', closeEffect : 'none', helpers : { title : { type : 'over' } } }); // Set custom style, close if clicked, change title type and overlay color $(".fancybox-effects-c").fancybox({ wrapCSS : 'fancybox-custom', closeClick : true, openEffect : 'none', helpers : { title : { type : 'inside' }, overlay : { css : { 'background' : 'rgba(238,238,238,0.85)' } } } }); // Remove padding, set opening and closing animations, close if clicked and disable overlay $(".fancybox-effects-d").fancybox({ padding: 0, openEffect : 'elastic', openSpeed : 150, closeEffect : 'elastic', closeSpeed : 150, closeClick : true, helpers : { overlay : null } }); /* * Button helper. Disable animations, hide close button, change title type and content */ $('.fancybox-buttons').fancybox({ openEffect : 'none', closeEffect : 'none', prevEffect : 'none', nextEffect : 'none', closeBtn : false, helpers : { title : { type : 'inside' }, buttons : {} }, afterLoad : function() { this.title = 'Image ' + (this.index + 1) + ' of ' + this.group.length + (this.title ? ' - ' + this.title : ''); } }); /* * Thumbnail helper. Disable animations, hide close button, arrows and slide to next gallery item if clicked */ $('.fancybox-thumbs').fancybox({ prevEffect : 'none', nextEffect : 'none', closeBtn : false, arrows : false, nextClick : true, helpers : { thumbs : { width : 50, height : 50 } } }); /* * Media helper. Group items, disable animations, hide arrows, enable media and button helpers. */ $('.fancybox-media') .attr('rel', 'media-gallery') .fancybox({ openEffect : 'none', closeEffect : 'none', prevEffect : 'none', nextEffect : 'none', arrows : false, helpers : { media : {}, buttons : {} } }); /* * Open manually */ $("#fancybox-manual-a").click(function() { $.fancybox.open('1_b.jpg'); }); $("#fancybox-manual-b").click(function() { $.fancybox.open({ href : 'iframe.html', type : 'iframe', padding : 5 }); }); $("#fancybox-manual-c").click(function() { $.fancybox.open([ { href : '1_b.jpg', title : 'My title' }, { href : '2_b.jpg', title : '2nd title' }, { href : '3_b.jpg' } ], { helpers : { thumbs : { width: 75, height: 50 } } }); }); }); </script> <style type="text/css"> .fancybox-custom .fancybox-skin { box-shadow: 0 0 50px #222; } </style> </body> </html>
| ver. 1.4 |
Github
|
.
| PHP 7.3.33 | Generation time: 0.41 |
proxy
|
phpinfo
|
Settings