1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
|
<BODY>
<DIV id="corps">
<?php include("titre.php"); ?>
<?php
$page = 'videos';
include("menu.php");
?>
<DIV id="contenu">
<h1>Vidéos</h1>
<p>Site en construction !</p>
<?php
include_once 'youtube.class.php';
?>
<?php
// on ouvre le fichier pour le lire
$fic = "videos_list.txt";
if (file_exists($fic))
{
$tab = file("$fic");
foreach ($tab as $val)
{
$val = rtrim($val);
$yt = new youtube('8nJCxg40AzE');
$res = $yt->getdetails("$val");
$titre = $res['title'];
$thumb = $res['thumbnail_url'];
$description = $res['description'];
$vues = $res['view_count'];
$url = "videos_play.php?id=" . urlencode($val)
. "&title=" . urlencode($titre)
. "&thumbnail_url=" . urlencode($thumb)
. "&description=" . urlencode($description)
. "&view_count=" . urlencode($vues);
echo("<a class=\"videoitem\" href=\"$url\">\n");
echo("<div class=\"videominiature\">\n");
echo("<img class=\"videominiature_photo\" src=\"$thumb\" />\n");
echo("</div>\n");
echo("$titre<br>\n");
echo("$description<br>\n");
echo("Vue $vues fois.<br>\n");
echo("</a>\n");
echo("<div class=\"separation\"> | </div>\n");
}
}
?>
</DIV>
</DIV>
</BODY> |
Partager