Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
- <script>
- $(document).ready(function() {
- $("#content").find("[id^='tab']").hide(); // Hide all content
- $("#tabs li:first").attr("id","current"); // Activate the first tab
- $("#content #tab1").fadeIn(); // Show first tab's content
- $('#tabs a').click(function(e) {
- e.preventDefault();
- if ($(this).closest("li").attr("id") == "current"){ //detection for current tab
- return;
- }
- else{
- $("#content").find("[id^='tab']").hide(); // Hide all content
- $("#tabs li").attr("id",""); //Reset id's
- $(this).parent().attr("id","current"); // Activate this
- $('#' + $(this).attr('name')).fadeIn(); // Show content for the current tab
- }
- });
- });
- $(function () {
- $('[data-toggle="popover"]').popover()
- })
- </script>
- <head>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>Free Bootstrap Admin Template : Binary Admin</title>
- <!-- BOOTSTRAP STYLES-->
- <link href="assets/css/bootstrap.css" rel="stylesheet" />
- <!-- FONTAWESOME STYLES-->
- <link href="assets/css/font-awesome.css" rel="stylesheet" />
- <!-- CUSTOM STYLES-->
- <link href="assets/css/custom.css" rel="stylesheet" />
- <!-- GOOGLE FONTS-->
- <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />
- </head>
- <?php
- function remplacer_support($support)
- {
- $support = str_replace(
- array(
- 'Dvix',
- 'Blu-Ray 720p',
- 'Blu-Ray 1080p',
- 'DVD',
- 'Mkv 720p',
- 'Mkv 1080p',
- ),
- array(
- '<img width="140px" src="img/dvix1.png" alt="Dvix" title=" Support Dvix ">',
- '<img width="160px" src="img/Blu-Ray2.png" alt="Blu-Ray 720p" title=" Support Blu-Ray Hd 720p ">',
- '<img width="160px" src="img/Blu-Ray3.png" alt="Blu-Ray 1080p" title=" Support Blu-Ray Hd 1080p ">',
- '<img width="130px" src="img/DVD.png" alt="DVD" title=" Support DVD ">',
- '<img width="160px" src="img/mkv720p.png" alt="Mkv 720p" title=" Support Mkv 720p ">',
- '<img width="160px" src="img/mkv1080p.png" alt="Mkv 1080p" title=" Support Mkv 1080p ">'
- ),
- $support
- );
- return $support;
- }
- function remplacer_image($image)
- {
- $image = str_replace(
- array(
- 'Anglais',
- ',',
- 'Français',
- 'Néerlandais',
- 'Espagnol',
- 'Portugais',
- 'Allemand',
- 'Roumain',
- 'Bulgare',
- 'Grec',
- 'Suédois',
- 'Islandais',
- 'Norvégien',
- 'Danois',
- 'Finlandais',
- 'Polonais',
- 'Tchèque',
- 'Turc',
- 'Hongrois',
- 'Italien',
- 'Castillan',
- 'Chinois',
- 'Thaïlandais',
- 'Cantonais',
- 'Coréen',
- 'Indonésien',
- 'Mandarin',
- 'Arabe',
- 'Chtimi'
- ),
- array(
- '<img width="45px" src="img/Drapeaux/Anglais.gif" title=" Langue Anglaise ">',
- ' ',
- '<img width="45px" src="img/Drapeaux/Français.gif" title=" Langue Francaise ">',
- '<img width="45px" src="img/Drapeaux/Néerlandais.gif" title=" Langue Néerlandaise ">',
- '<img width="45px" src="img/Drapeaux/Espagnol.gif" title=" Langue Espagnol ">',
- '<img width="45px" src="img/Drapeaux/Portugais.gif" title=" Langue Portugaise ">',
- '<img width="45px" src="img/Drapeaux/Allemand.gif" title=" Langue Allemande ">',
- '<img width="45px" src="img/Drapeaux/Roumain.gif" title=" Langue Roumaine ">',
- '<img width="45px" src="img/Drapeaux/Bulgare.gif" title=" Langue Bulgare ">',
- '<img width="45px" src="img/Drapeaux/Grec.gif" title=" Langue Grec ">',
- '<img width="45px" src="img/Drapeaux/Suédois.gif" title=" Langue Suédoise ">',
- '<img width="45px" src="img/Drapeaux/Islandais.gif" title=" Langue Islandaise">',
- '<img width="45px" src="img/Drapeaux/Norvégien.gif" title=" Langue Norvégienne ">',
- '<img width="45px" src="img/Drapeaux/Danois.gif" title=" Langue Danoise ">',
- '<img width="45px" src="img/Drapeaux/Finlandais.gif" title=" Langue Finlandaise ">',
- '<img width="45px" src="img/Drapeaux/Polonais.gif" title=" Langue Polonaise ">',
- '<img width="45px" src="img/Drapeaux/Tchèque.gif" title=" Langue Tchèque ">',
- '<img width="45px" src="img/Drapeaux/Turc.gif" title=" Langue Turc ">',
- '<img width="45px" src="img/Drapeaux/Hongrois.gif" title=" Langue Hongroise">',
- '<img width="45px" src="img/Drapeaux/Italien.gif" title=" Langue Italienne ">',
- '<img width="45px" src="img/Drapeaux/Castillan.gif" title=" Langue Castillanne ">',
- '<img width="45px" src="img/Drapeaux/Chinois.gif" title=" Langue Chinoise ">',
- '<img width="45px" src="img/Drapeaux/Thaïlandais.gif" title=" Langue Thaïlandaise ">',
- '<img width="45px" src="img/Drapeaux/Cantonais.gif" title=" Langue Cantonaise ">',
- '<img width="45px" src="img/Drapeaux/Coréen.gif" title=" Langue Coréenne ">',
- '<img width="45px" src="img/Drapeaux/Indonésien.gif" title=" Langue Indonésienne ">',
- '<img width="45px" src="img/Drapeaux/Chinois.gif" title=" Langue Mandarin ">',
- '<img width="45px" src="img/Drapeaux/Arabe.gif" title=" Langue Arabe ">',
- '<img width="45px" src="img/Drapeaux/chtimi.png" title=" Langue Chtimi ">',
- ),
- $image
- );
- return $image;
- }
- function remplacer_image_soustitres($image_soustitres)
- {
- $image_soustitres = str_replace(
- array(
- 'Anglais',
- ',',
- 'Français',
- 'Néerlandais',
- 'Espagnol',
- 'Portugais',
- 'Allemand',
- 'Roumain',
- 'Bulgare',
- 'Grec',
- 'Suédois',
- 'Islandais',
- 'Norvégien',
- 'Danois',
- 'Finlandais',
- 'Polonais',
- 'Tchèque',
- 'Turc',
- 'Hongrois',
- 'Italien',
- 'Castillan',
- 'Chinois',
- 'Thaïlandais',
- 'Cantonais',
- 'Coréen',
- 'Indonésien',
- 'Mandarin',
- 'Arabe',
- 'Chtimi'
- ),
- array(
- '<img width="45px" src="img/Drapeaux/Anglais.gif" title=" Langue Anglaise ">',
- ' ',
- '<img width="45px" src="img/Drapeaux/Français.gif" title=" Langue Francaise ">',
- '<img width="45px" src="img/Drapeaux/Néerlandais.gif" title=" Langue Néerlandaise ">',
- '<img width="45px" src="img/Drapeaux/Espagnol.gif" title=" Langue Espagnol ">',
- '<img width="45px" src="img/Drapeaux/Portugais.gif" title=" Langue Portugaise ">',
- '<img width="45px" src="img/Drapeaux/Allemand.gif" title=" Langue Allemande ">',
- '<img width="45px" src="img/Drapeaux/Roumain.gif" title=" Langue Roumaine ">',
- '<img width="45px" src="img/Drapeaux/Bulgare.gif" title=" Langue Bulgare ">',
- '<img width="45px" src="img/Drapeaux/Grec.gif" title=" Langue Grec ">',
- '<img width="45px" src="img/Drapeaux/Suédois.gif" title=" Langue Suédoise ">',
- '<img width="45px" src="img/Drapeaux/Islandais.gif" title=" Langue Islandaise">',
- '<img width="45px" src="img/Drapeaux/Norvégien.gif" title=" Langue Norvégienne ">',
- '<img width="45px" src="img/Drapeaux/Danois.gif" title=" Langue Danoise ">',
- '<img width="45px" src="img/Drapeaux/Finlandais.gif" title=" Langue Finlandaise ">',
- '<img width="45px" src="img/Drapeaux/Polonais.gif" title=" Langue Polonaise ">',
- '<img width="45px" src="img/Drapeaux/Tchèque.gif" title=" Langue Tchèque ">',
- '<img width="45px" src="img/Drapeaux/Turc.gif" title=" Langue Turc ">',
- '<img width="45px" src="img/Drapeaux/Hongrois.gif" title=" Langue Hongroise">',
- '<img width="45px" src="img/Drapeaux/Italien.gif" title=" Langue Italienne ">',
- '<img width="45px" src="img/Drapeaux/Castillan.gif" title=" Langue Castillanne ">',
- '<img width="45px" src="img/Drapeaux/Chinois.gif" title=" Langue Chinoise ">',
- '<img width="45px" src="img/Drapeaux/Thaïlandais.gif" title=" Langue Thaïlandaise ">',
- '<img width="45px" src="img/Drapeaux/Cantonais.gif" title=" Langue Cantonaise ">',
- '<img width="45px" src="img/Drapeaux/Coréen.gif" title=" Langue Coréenne ">',
- '<img width="45px" src="img/Drapeaux/Indonésien.gif" title=" Langue Indonésienne ">',
- '<img width="45px" src="img/Drapeaux/Chinois.gif" title=" Langue Mandarin ">',
- '<img width="45px" src="img/Drapeaux/Arabe.gif" title=" Langue Arabe ">',
- '<img width="45px" src="img/Drapeaux/chtimi.png" title=" Langue Chtimi ">',
- ),
- $image_soustitres
- );
- return $image_soustitres;
- }
- function remplacer_audio($image_audio)
- {
- $image_audio = str_replace(
- array(
- 'Dolby Digital 5.1',
- ',',
- 'DD2.0 mono Français',
- 'DD2.0 Français',
- 'DD5.1 Français',
- 'DD5.1 Anglais',
- 'DDTHD 5.1',
- 'DTS 5.1',
- 'DTSHD-MA 5.1',
- 'DTSHD-MA2.0 Français',
- 'DTSHD-MA5.1 Français',
- 'DTSHD-MA5.1 Anglais',
- 'DTSHD-MA7.1 Français',
- 'DTSHD-MA7.1 Anglais',
- 'DTSHD-HRA5.1 Français',
- 'DTSHD-HRA7.1 Français'
- ),
- array(
- '<img width="85px" src="img/Formats/DD.png" title=" Audio Dolby Digital 5.1">',
- ' ',
- '<img width="85px" src="img/Formats/DD.png" title=" Audio Dolby Digital Français 2.0 mono">',
- '<img width="85px" src="img/Formats/DD.png" title=" Audio Dolby Digital Français 2.0">',
- '<img width="85px" src="img/Formats/DD.png" title=" Audio Dolby Digital Français 5.1">',
- '<img width="85px" src="img/Formats/DD.png" title=" Audio Dolby Digital Anglais 5.1">',
- '<img width="85px" src="img/Formats/DDTHD.png" title=" Audio DDTHD 5.1">',
- '<img width="85px" src="img/Formats/DTS.png" title=" DTS 5.1">',
- '<img width="85px" src="img/Formats/DTSHD.png" title=" DTSHD-MA 5.1">',
- '<img width="85px" src="img/Formats/DTSHD.png" title=" Audio DTSHD Français 2.0">',
- '<img width="85px" src="img/Formats/DTSHD.png" title=" Audio DTSHD Français 5.1 ">',
- '<img width="85px" src="img/Formats/DTSHD.png" title=" Audio DTSHD Anglais 5.1 ">',
- '<img width="85px" src="img/Formats/DTSHD 7.png" title=" Audio DTSHD Français 7.1">',
- '<img width="85px" src="img/Formats/DTSHD 7.png" title=" Audio DTSHD Anglais 7.1">',
- '<img width="85px" src="img/Formats/DTSHD HRA.png" title=" Audio DTSHD-HRA Français 5.1">',
- '<img width="85px" src="img/Formats/DTSHD HRA.png" title=" Audio DTSHD-HRA Français 7.1">'
- ),
- $image_audio
- );
- return $image_audio;
- }
- // CONFIGURATION
- $cfg = new CONFIG();
- // 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());
- }
- if ($_POST['addactor2'] == "ok")
- {
- function gw2_api_request($request)
- {
- $api_url = "http://api.themoviedb.org";
- $api_version = "3";
- $api_key = '79f65cf6667f54e297a68a4ef6bc862e';
- $url = parse_url($api_url . '/' . $api_version . '/person/' . $request . '?api_key=' . $api_key);
- if(!$fp = @fsockopen('ssl://' . $url['host'], 443, $errno, $errstr, 5)){
- return 'connection error: ' . $errno . ', ' . $errstr;
- }
- $nl = "\r\n";
- $header = 'GET ' . $url['path'] . '?' . $url['query'] . ' HTTP/1.1' . $nl . 'Host: ' . $url['host'] . $nl . 'Connection: Close' . $nl . $nl;
- fwrite($fp, $header);
- stream_set_timeout($fp, 5);
- $response = '';
- do
- {
- if(strlen($in = fread($fp,1024))==0)
- {
- break;
- }
- $response .= $in;
- }
- while(true);
- $response = explode($nl,$response);
- if(isset($response[0]) && $response[0] == 'HTTP/1.1 200 OK')
- {
- $response = json_decode($response[count($response)-1]);
- }
- return $response;
- }
- function DateTime($datein)
- {
- $mois = array('janvier', 'février', 'mars', 'avril', 'mai', 'juin', 'juillet', 'aout', 'septembre', 'octobre', 'novembre', 'décembre');
- preg_match('/([0-9]+)-([0-9]+)-([0-9]+)/', $datein, $m);
- $lemois = $mois[$m[2]-1];
- return $m[3] . ' ' . $lemois . ' ' . $m[1];
- }
- $id_acteur = $_POST['ID_acteur'];
- $name = gw2_api_request($id_acteur)->name;
- $biography = gw2_api_request($id_acteur)->biography;
- $birthday = gw2_api_request($id_acteur)->birthday;
- $place_of_birth = gw2_api_request($id_acteur)->place_of_birth;
- $deathday = gw2_api_request($id_acteur)->deathday;
- if (!empty($birthday))
- {
- $birthday2 = DateTime($birthday);
- }
- else
- {
- $birthday2 = '';
- }
- if (!empty($deathday))
- {
- $deathday2 = DateTime($deathday);
- }
- else
- {
- $deathday2 = '';
- }
- $db->query('INSERT INTO ' . $cfg->DB_TABLE . '_acteurs (ID, NomActeur, DateNaissance, LieuNaissance, DateDeces, Biographie) VALUES ("", "' . $name . '", "' . $birthday2 . '", "' . $place_of_birth . '", "' . $deathday2 . '", "' . str_replace( '"', '\"', $biography) . '")');
- refresh('index.php?op=details&id=' . $_GET['id']);
- }
- if ($_POST['addactor'] == "ok")
- {
- if (isset($_POST['Password']) && $_POST['Password'] == '60078') /* LE MOT DE PASSE ICI EST DEFINIT PAR MOI, MAIS TU PEUX METTRE CEUX QUE TU VEUX A LA PLACE DE 60078 */
- {
- $NomActeur = strip_tags($_POST['NomActeur']);
- $DateNaissance = strip_tags($_POST['DateNaissance']);
- $LieuNaissance = strip_tags($_POST['LieuNaissance']);
- $DateDeces = strip_tags($_POST['DateDeces']);
- $Biographie = strip_tags($_POST['Biographie']);
- $db->query('INSERT INTO ' . $cfg->DB_TABLE . '_acteurs (ID, NomActeur, DateNaissance, LieuNaissance, DateDeces, Biographie) VALUES ("", "' . $NomActeur . '", "' . $DateNaissance . '", "' . $LieuNaissance . '", "' . $DateDeces . '", "' . str_replace( '"', '\"', $Biographie) . '")');
- refresh('index.php?op=details&id=' . $_GET['id']);
- }
- else
- {
- $messageno = 'Mauvais mot de passe';
- }
- }
- else
- {
- ?>
- <?php
- $cfg->DB_TABLE=$_SESSION['table'];
- $_SESSION['table']=$cfg->DB_TABLE;
- $cfg->POSTERS_DIRECTORY=$_SESSION['poster'];
- $_SESSION['poster']=$cfg->POSTERS_DIRECTORY;
- // 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,$search_label ) {
- $string = str_replace("\r",", ",$string);
- $unique = explode(", ",$string);
- $result="";
- foreach ($unique as $key => $value) {
- //formulaire de recherche
- $result.="<a style='color:blue' 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));
- }
- ?>
- <?php
- $bandeannonce=0;
- while ($data = $req->fetch()) {
- ?>
- <!-- <div id="fade" class="black_overlay" onclick="document.getElementById('light').style.display='none';document.getElementById('fade').style.display='none';"></div> -->
- <?php
- if (isset($_GET['id']))
- $id=$_GET['id'];
- else $id=-1;
- $query_66 = 'SELECT *, (SELECT ID FROM ' . $cfg->DB_TABLE . ' WHERE ID < ' . $id . ' ORDER BY ID DESC LIMIT 1) AS prec, (SELECT ID FROM ' . $cfg->DB_TABLE . ' WHERE ID > ' . $id . ' LIMIT 1) AS suiv FROM ' . $cfg->DB_TABLE . ' WHERE ID=' . $id;
- $result_66 = $db->query($query_66) or die(print_r($bdd->errorInfo()));
- $result_fetch_66 = $result_66->fetch();
- $result_66->closeCursor();
- ?>
- <?php
- echo add_forms($data['Realisateurs'],'Realisateurs');
- echo add_forms($data['Acteurs'],'Acteurs');
- ?>
- <div id="wrapper">
- <nav class="navbar navbar-default navbar-cls-top " role="navigation" style="margin-bottom: 0">
- <div class="navbar-header">
- <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-collapse">
- <span class="sr-only">Toggle navigation</span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </button>
- <?php echo($config['titre']['baseconf']) ?>
- </div>
- <div style="color: white;padding: 15px 50px 5px 50px;float: right;font-size: 16px;">
- <script>
- function date_heure(id)
- {
- date = new Date;
- annee = date.getFullYear();
- moi = date.getMonth();
- mois = new Array('Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre');
- j = date.getDate();
- jour = date.getDay();
- jours = new Array('Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi');
- h = date.getHours();
- if(h<10)
- {
- h = "0"+h;
- }
- m = date.getMinutes();
- if(m<10)
- {
- m = "0"+m;
- }
- s = date.getSeconds();
- if(s<10)
- {
- s = "0"+s;
- }
- resultat = ''+jours[jour]+' '+j+' '+mois[moi]+' '+annee+' : '+h+':'+m+':'+s;
- document.getElementById(id).innerHTML = resultat;
- setTimeout('date_heure("'+id+'");','1000');
- return true;
- }
- </script>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <script type="text/javascript" src="date_heure.js"></script>
- <span id="date_heure"></span>
- <script type="text/javascript">window.onload = date_heure('date_heure');</script>
- <a href="?op=logout" class="btn btn-danger square-btn-adjust">Déconnexion</a>
- </div>
- </nav>
- <!-- /. NAV TOP -->
- <nav class="navbar-default navbar-side" role="navigation">
- <div class="sidebar-collapse">
- <ul class="nav" id="main-menu">
- <li class="text-center">
- <?php if ($user['permission']=="Administrateur"&&$_GET['id']!="") { $id=$_GET['id']; } else $id=$user['id']; $nfsql = $db->query("SELECT * from ".$cfg->DB_TABLE."_users WHERE `id`='$id'"); $changeuser = $nfsql->fetch(); $nfsql->closeCursor(); ?>
- <img style="border: 1px solid #667882; box-shadow: 1px 1px 2px #555" class="user-image img-responsive img-circle" width="145" src="../Avatars/<?php echo $user['username']; ?>.jpg" />
- </li>
- <li>
- <a href="?op=liste"><i class="fa fa-desktop fa-2x"></i> Ecran principal</a>
- </li>
- <li>
- <a class="active-menu" href="javascript:history.go(-1)"><i class="fa fa-fast-backward fa-2x"></i> Page précédente</a>
- </li>
- </ul>
- </div>
- </nav>
- <!-- /. NAV SIDE -->
- <div id="fade" class="black_overlay" onclick="document.getElementById('light').style.display='none';document.getElementById('fade').style.display='none';"></div>
- <div id="page-wrapper" >
- <div id="page-inner">
- <?php if ($user['permission']=="Invite") { ?>
- <div class="col-md-12 col-sm-12">
- <h2> Vous n'avez pas accès aux détails du film en tant qu'invité pensez à vous inscrire ! </h2>
- <h4 > <a href="http://br.nenessentertainment.fr/register.php"> CREER UN COMPTE UTILISATEUR PAR ICI </a></h4>
- </div>
- <?php }
- else { ?>
- <!-- /. ROW -->
- <div class="row">
- <div class="col-md-6 col-sm-6">
- <style>
- essais{
- border: 2px solid red;
- -webkit-box-shadow: 0px 4px 14px 10px rgba(133,70,133,1);
- -moz-box-shadow: 0px 4px 14px 10px rgba(133,70,133,1);
- box-shadow: 0px 4px 14px 10px rgba(133,70,133,1);
- margin-left: auto;
- margin-right: auto;
- }
- h4{
- color: red;
- }
- </style>
- <br /><br /><br /><br />
- <?php
- $filename = sprintf('%s/Filmotech_%05d.jpg' , $cfg->POSTERS_DIRECTORY , $data['ID'] );
- if (file_exists($filename)) echo('<center><table width="50%"><tr align="center"><td><img class="essais" max-widht:100% src="' . $filename . '" "></td></tr></table></center>');
- ?>
- <br /><br /><br /><br />
- </div>
- <div class="col-md-6 col-sm-6">
- <div class="panel panel-info">
- <div class="panel-heading">
- <i class="fa fa-video-camera fa-2x"></i> La bande annonce
- </div>
- <div class="panel-body">
- <center>
- <div style="height:360px;" >
- <?php // Bandes Annonce
- if (($data['BAChemin'] <> "") && ($data['BAType'] = "URL")) {
- $taille_ba="width=\"100%\" height=\"100%\"";
- //echo substr($data['BAChemin'],11,7);
- // allociné
- 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;
- }
- // youtube
- if(substr($data['BAChemin'],11,7)=="youtube") {
- $id_ba_temp=explode("v=", $data['BAChemin']); $id_ba=explode("&", $id_ba_temp['1']);
- echo '<object '.$taille_ba.'><param name="movie" value="http://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="http://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;
- }
- }
- ?>
- <?php if (substr($data['BAChemin'],11,8)=="allocine") {
- }
- else {
- ?> <img style="max-width: 30px;" class="img-monitor" src="img/bobine.png"> <?php } ?>
- </div>
- <br />
- </center>
- </div>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-md-12 col-sm-12">
- <div class="panel panel-info">
- <div class="panel-heading">
- <i class="fa fa-comment-o fa-2x"></i> Information
- </div>
- <div class="panel-body">
- <ul class="nav nav-tabs">
- <li class="active"><a href="#home" data-toggle="tab"><label style="color:black">Acteur(s) et réalisateur(s)</label></a>
- </li>
- <li class=""><a href="#profile" data-toggle="tab"><label style="color:black">Détails et support</label></a>
- </li>
- <li class=""><a href="#messages" data-toggle="tab"><label style="color:black">Synopsis</label></a>
- </li>
- <li class=""><a href="#musique" data-toggle="tab"><label style="color:black">Musique du film</label></a>
- </li>
- </ul>
- <div class="tab-content">
- <div class="tab-pane fade active in" id="home">
- <br />
- <h4>Acteur(s) et réalisateur(s)</h4>
- <?php
- echo add_forms($data['Realisateurs'],'Realisateurs');
- echo add_forms($data['Acteurs'],'Acteurs' );
- ?>
- <?php echo( '<h4>' . $media_informations2 . '</h4>' ); ?>
- <p><span class="nftext-info"><span style="color:black"><?php echo($field_labels['Realisateurs']); ?> : </span> </span>
- <span style="color:#000000" class="muted"><?php echo add_commas($data['Realisateurs'],'Realisateurs'); ?></span></p>
- <p style="color:black"><span class="nftext-info"><span style="color:black"><?php echo($field_labels['Acteurs']); ?> : </span> </span>
- <span style="color:#000000"><?php echo add_commas($data['Acteurs'],'Acteurs'); ?></span>
- <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
- {
- ?>
- <div id="larg" class="col-md-2 col-sm-2">
- <div class="actor">
- <table align="center">
- <tr>
- <td class="bulcol">
- <a class="Bulle">
- <?php $filename = sprintf('acteurs/' . $liste_acteurs[$i] . '.jpg'); ?>
- <?php if (file_exists($filename)) { ?>
- <img src="<?php echo $filename; ?>" class="actor-img" width="144px" height="200px" alt="Acteur" />
- <?php } else { ?>
- <img src="acteurs/image_non_disponible.png" class="actor-img" width="144px" height="200px" alt="Acteur" />
- <?php } ?>
- <span class="cote" style="border:solid 2px red; border-radius: 8px";>
- <table>
- <tr>
- <td style="vertical-align:top">
- <?php
- $query_actor = 'SELECT * FROM ' . $cfg->DB_TABLE . '_acteurs WHERE NomActeur = "' . $liste_acteurs[$i] . '"';
- $result_actor = $db->query($query_actor);
- while ($donnees_actor = $result_actor->fetch())
- {
- ?>
- <div align="center"></div>
- </td>
- <br />
- <i style="color:black">Prénom & Nom : </i>
- <br />
- <i style="color:blue"><?php echo $liste_acteurs[$i]; ?></i>
- <br /><br />
- <i style="color:black">Lieu de Naissance : </i>
- <br />
- <i style="color:blue"><?php echo $donnees_actor['LieuNaissance']; ?></i>
- <br /><br />
- <!----- AGE ----->
- <?php
- // tableau des mois
- $moischiffre = array('janvier'=>'01', 'février'=>'02', 'mars'=>'03', 'avril'=>'04', 'mai'=>'05', 'juin'=>'06', 'juillet'=>'07', 'août'=>'08', 'septembre'=>'09', 'octobre'=>'10', 'novembre'=>'11', 'décembre'=>'12');
- // date de naissance
- $naissance = $donnees_actor['DateNaissance'];
- $naissance2 = explode(' ', $naissance);
- ?> <!-- $naissance3 = mktime(0, 0, 0, $moischiffre[$naissance2[1]], $naissance2[0], $naissance2[2]);--> <?php
- $naissance3 = mktime(0, 0, 0, $moischiffre[$naissance2[1]], $naissance2[0], $naissance2[2]);
- // Date de décès ou date d'aujourd'hui
- if ($donnees_actor['DateDeces'] != '')
- {
- $deces = $donnees_actor['DateDeces'];
- $deces2 = explode(' ', $deces);
- $deces3 = mktime(0, 0, 0, $moischiffre[$deces2[1]], $deces2[0], $deces2[2]);
- $aujourdhui = $deces3;
- } else {
- $aujourdhui = time();
- }
- // soustraction => nombre de secondes de la différence
- $ecart = $aujourdhui - $naissance3;
- // on repasse en nombre de jours
- $ecart = floor($ecart / 3600 / 24);
- // on repasse en années
- $ecart = floor($ecart / 365);
- // affichage de l'age
- ?>
- </td>
- <i style="color:black">Date de Naissance :</i>
- <br />
- <i style="color:blue"><?php echo $donnees_actor['DateNaissance']; ?> </i>
- <!----- FIN AGE ----->
- <br /><br />
- <i style="color:black">Date de décès : </i>
- <br />
- <i style="color:blue"><?php echo $donnees_actor['DateDeces']; ?></i>
- <br /><br />
- <i style="color:black">Age actuel ~~ décès : </i>
- <br />
- <i style="color:blue"><?php echo $ecart . ' ans'; ?></i>
- <br /><br />
- <?php
- }
- ?>
- </td>
- </tr>
- </table>
- </span>
- </a>
- </td>
- </tr>
- </table>
- <h4>
- <div class="text-actor text-center">
- <?php echo $liste_acteurs[$i]; ?>
- <!-- <p style="color:black">Lieu de Naissance : </p>
- <br />
- <p style="color:blue"><?php echo $donnees_actor['LieuNaissance']; ?></p> -->
- </div>
- </h4>
- </div>
- </div>
- <?php } ?>
- <div class="col-md-12 col-sm-12">
- </br>
- <?php if ($user['permission']=="Administrateur") { ?>
- <h4> Encodage acteur <h6> Uniquement visible aux admins</h6></h4>
- <form class="form-horizontal" role="form" method="post">
- <input type="hidden" name="addactor2" value="ok">
- <div class="form-group"><br /><br />
- <input style="width:200px" type="text" class="form-control" placeholder="Référence de l'acteur" name="ID_acteur" value="" required>
- </div>
- <button type="submit" class="btn btn-success"><span class="glyphicon glyphicon-ok"></span> Enregistrer</button><br /><br />
- <a href='https://www.themoviedb.org' target="blank"><img src="img/website.png" title="Aller vers le site The movie Db"></a>
- </form>
- <?php } ?>
- </div>
- </div>
- <div class="tab-pane fade" id="profile">
- <br />
- <h4>Détails et support</h4>
- <div class="col-md-12 col-sm-12">
- <?php echo( '<span style="color:#0000FF"><strong>' . $field_labels['TitreVF'] . ' : </strong></span>'); ?>
- <h1 style="color:red"><?php echo $data['TitreVF']; ?></h1>
- </div>
- <br />
- <div class="col-md-4 col-sm-4">
- <?php if ($show_media_infos) {
- echo( '<br />' );
- echo( '<span style="color:#0000FF"><strong>' . $field_labels['TitreVO'] . ' : </strong></span>');
- echo( '<br />' );echo( '<br />' );
- echo('<span style="color:#000000"><strong> '. $data['TitreVO'] . '<br /></strong></span>' ) ;
- echo( '<br />' );
- echo( '<span style="color:#0000FF"><strong>' . $field_labels['Reference'] . ' : </strong></span>');
- echo( '<br />' );echo( '<br />' );
- if ( $data['Reference'] == "Hdd")
- { ?> <img width="65px" src="img/hdd.png" data-toggle="tooltip" data-original-title=" Disque dur "> <?php }
- else { echo('<img width="45px"src="img/Boitecd.png"> '. $data['Reference'] . '<br />' ) ; }
- echo( '<br />' );echo( '<br />' );
- echo( '<span style="color:#0000FF"><strong>' . $field_labels['Support'] . ' : </strong></span>');
- echo( '<br />' );echo( '<br />' );
- ?><!-- echo(' '. $data['Support']. '<br />' ) ; --> <?php
- $support = $data['Support'];
- echo remplacer_support($support);
- echo( '<br />' );echo( '<br />' ); }?>
- </div>
- <div class="col-md-5 col-sm-5">
- <?php echo( '<br />' );
- echo( '<span style="color:#0000FF"><strong>' . $field_labels['Langues'] . ' : </strong></span>');
- echo( '<br />' );echo( '<br />' );
- ?> <!-- echo(' '. $data['Langues'] . '<br />' ) ; --> <?php
- $essais = $data['Langues'];
- echo remplacer_image($essais);
- echo( '<br />' );echo( '<br />' );
- echo( '<span style="color:#0000FF"><strong>' . $field_labels['SousTitres'] . ' : </strong></span>');
- echo( '<br />' );echo( '<br />' );
- ?> <!-- echo(' '. $data['SousTitres'] . '<br />' ) ; --> <?php
- $soustitres = $data['SousTitres'];
- echo remplacer_image_soustitres($soustitres);
- echo( '<br />' );echo( '<br />' );
- echo( '<br />' );
- echo( '<span style="color:#0000FF"><strong>' . $field_labels['Audio'] . ' : </strong></span>');
- echo( '<br />' );echo( '<br />' );
- ?> <!-- echo(' '. $data['Audio'] . '<br />' ) ; --> <?php
- $audio = $data['Audio'];
- echo remplacer_audio($audio);
- echo( '<br />' );echo( '<br />' );
- ?>
- </div>
- <div class="col-md-3 col-sm-3">
- <form name='search-date' method='post' action='index.php'>
- <input type='hidden' name='search_query_annee' value='<?php echo $data['Annee']; ?>'>
- <input type='hidden' name='search_field' value='Annee'>
- </form>
- <?php
- $uniquegenre = array();
- $uniquegenre = explode(" / ",$data['Genre']);
- foreach ($uniquegenre as $key => $value) {
- $uniquegenre2 = explode(" - ",$value);
- foreach ($uniquegenre2 as $key => $value) {
- ?>
- <form name='search-genre-<?php echo $value; ?>' method='post' action='index.php'>
- <input type='hidden' name='search_query_genre' value='<?php echo $value; ?>'>
- <input type='hidden' name='search_field' value='Genre'>
- </form>
- <?php
- }
- }
- $uniquegenre = array();
- $uniquegenre = explode(" / ",$data['Pays']);
- foreach ($uniquegenre as $key => $value) {
- $uniquegenre2 = explode(" - ",$value);
- foreach ($uniquegenre2 as $key => $value) {
- ?>
- <form name='search-pays-<?php echo $value; ?>' method='post' action='index.php'>
- <input type='hidden' name='search_query_pays' value='<?php echo $value; ?>'>
- <input type='hidden' name='search_field' value='Pays'>
- </form>
- <?php
- }
- }
- function creategenre($genre) {
- $list="";
- $i=0;
- $uniquegenre = array();
- $uniquegenre = explode(" / ",$genre);
- foreach ($uniquegenre as $key => $value) {
- $uniquegenre2 = explode(" - ",$value);
- foreach ($uniquegenre2 as $key => $value) {
- if ($i!=0) $list.=" / ";
- $list.="<a style='color:#000000' href='#' onclick=\"javascript:document.forms['search-genre-$value'].submit();\">$value</a>";
- $i++;
- }
- }
- return $list;
- }
- function createpays($genre) {
- $list="";
- $i=0;
- $uniquegenre = array();
- $uniquegenre = explode(" / ",$genre);
- foreach ($uniquegenre as $key => $value) {
- $uniquegenre2 = explode(" - ",$value);
- foreach ($uniquegenre2 as $key => $value) {
- if ($i!=0) $list.=" / ";
- $list.="<a style='color:#000000' href='#' onclick=\"javascript:document.forms['search-pays-$value'].submit();\">$value</a>";
- $i++;
- }
- }
- return $list;
- }
- ?>
- <?php
- if ($data['TitreVF']!=$data['TitreVO']) {
- }
- ?>
- <h4><span><img width="32px" src="img/genre.png"> <?php echo creategenre($data['Genre']); ?></span></p>
- </h4>
- <h4><span><a style="color:#000000" href='#' onclick="javascript:document.forms['search-date'].submit();"><img width="32px" src="img/calendar.png"> <?php echo $data['Annee']; ?></a>
- <br /><br /><img width="32px" src="img/temps.png"> <?php echo gmstrftime( "%kh %Mmn", $data['Duree'] * 60 ); ?></span>
- <br /><br />
- <img width="32px"src="img/globe.png"> <?php echo createpays($data['Pays']); ?>
- <br /><br />
- <img width="32px"src="img/like.png"> <img width="96px" src="img/note<?php echo $data['Note']; ?>.png" />
- <br /><br /></h4>
- </div>
- </div>
- <div class="tab-pane fade" id="messages">
- <br />
- <h4>Synopsis</h4>
- <br />
- <span class="muted"><strong><?php echo add_br($data['Synopsis']); ?></strong></span>
- </div>
- <div class="tab-pane fade" id="musique">
- <br />
- <h4>Musique du film</h4>
- <br />
- <span class="muted"><strong><?php echo add_br($data['Commentaires']); ?></strong></span>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <?php } ?>
- </div>
- <!-- /. PAGE INNER -->
- </div>
- <!-- /. PAGE WRAPPER -->
- </div>
- <?php } ?>
- <?php
- }
- ?>
- <!-- SCRIPTS -AT THE BOTOM TO REDUCE THE LOAD TIME-->
- <!-- JQUERY SCRIPTS -->
- <script src="assets/js/jquery-1.10.2.js"></script>
- <!-- BOOTSTRAP SCRIPTS -->
- <script src="assets/js/bootstrap.min.js"></script>
- <!-- METISMENU SCRIPTS -->
- <script src="assets/js/jquery.metisMenu.js"></script>
- <!-- MORRIS CHART SCRIPTS -->
- <script src="assets/js/morris/raphael-2.1.0.min.js"></script>
- <script src="assets/js/morris/morris.js"></script>
- <!-- CUSTOM SCRIPTS -->
- <script src="assets/js/custom.js"></script>
Add Comment
Please, Sign In to add comment