forked from WWBN/AVideo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanagerVideosLight.php
83 lines (79 loc) · 2.95 KB
/
managerVideosLight.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?php
global $global, $config;
if (!isset($global['systemRootPath'])) {
require_once '../videos/configuration.php';
}
$videos_id = @$_REQUEST['videos_id'];
if (empty($videos_id)) {
forbiddenPage('Videos ID empty');
}
if (!Video::canEdit($videos_id)) {
forbiddenPage('You cannot edit this video');
}
$video = new Video('', '', $videos_id);
$title = $video->getTitle();
$description = $video->getDescription();
$categories_id = $video->getCategories_id();
?>
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo __("Edit Video"); ?></title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
?>
<style>
<?php
if (!empty($advancedCustom->hideEditAdvancedFromVideosManager)) {
?>
.command-edit{
display: none !important;
}
<?php
}
?>
</style>
</head>
<body>
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
?>
<div class="container-fluid">
<div class="panel panel-default ">
<div class="panel-heading clearfix ">
<h1 class="pull-left" >
<?php
echo $title;
?>
</h1>
<div class="btn-group pull-right">
<a href="<?php echo $global['webSiteRootURL']; ?>view/managerVideosLight.php?image=<?php echo empty($_REQUEST['image']) ? 1 : 0; ?>&avideoIframe=1&videos_id=<?php echo $videos_id; ?>" class="btn btn-default">
<?php
if (empty($_REQUEST['image'])) {
echo "<i class=\"far fa-image\"></i> " . __('Thumbnail');
} else {
echo "<i class=\"far fa-edit\"></i> " . __('Edit');
}
?>
</a>
<a href="<?php echo $global['webSiteRootURL']; ?>mvideos?avideoIframe=1&video_id=<?php echo $videos_id; ?>" class="btn btn-primary command-edit">
<i class="far fa-edit"></i> <?php echo __('Advanced'); ?>
</a>
</div>
</div>
<div class="panel-body">
<?php
if (empty($_REQUEST['image'])) {
include $global['systemRootPath'] . 'view/managerVideosLight_meta.php';
} else {
include $global['systemRootPath'] . 'view/managerVideosLight_image.php';
}
?>
</div>
</div>
</div><!--/.container-->
<?php
include $global['systemRootPath'] . 'view/include/footer.php';
?>
</body>
</html>