-
Notifications
You must be signed in to change notification settings - Fork 0
/
watch.php
58 lines (34 loc) · 1.07 KB
/
watch.php
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
<?php
require_once("includes/header.php");
require_once("classes/VideoPlayer.php");
require_once("classes/VideoDetailsSection.php");
if(!isset($_GET["id"])){
echo "Aucune vidéo ne correspond à votre recherche";
exit();
}
$video = new video($con,$_GET["id"],$user);
$video->incrementViews();
?>
<script src="assets/js/videoAction.js"></script>
<div class="row">
<section class="videoPlayer col-md-8 p-2">
<?php
$videoPlayer = new VideoPlayer($video);
echo $videoPlayer->create(true);
?>
<!-- 1ere zone d'info-->
<?php
$videoDetails = new VideoDetailsSection($con,$video,$user);
echo $videoDetails->create();
?>
<!-- 2eme zone d'info-->
</section>
<aside class="suggestions col-md-4">
<h3>Suggestions</h3>
<?php
$videoGrid = new VideoGrid($con,$user);
echo $videoGrid->create(null,null,false);
?>
</aside>
</row>
<?php require_once("includes/footer.php"); ?>