Repository navigation
Expand file tree
/
Copy pathindex_shareVideos.php
More file actions
157 lines (151 loc) · 7 KB
/
Copy pathindex_shareVideos.php
File metadata and controls
157 lines (151 loc) · 7 KB
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<div class="panel panel-default">
<div class="panel-heading">
<?php
if (!empty($advancedCustom->showOnlyEncoderAutomaticResolutions)) {
include './index_formats.php';
}
?>
</div>
<div class="panel-body <?php echo getCSSAnimationClassAndStyle('animate__bounceInLeft'); ?>">
<ul class="nav nav-tabs">
<li class="active">
<a data-toggle="tab" href="#upload">
<center>
<i class="fas fa-file" aria-hidden="true"></i><br><?php echo __('From File'); ?>
</center>
</a>
</li>
<?php
if (empty($global['disableImportVideo'])) {
?>
<li><a data-toggle="tab" href="#download"><center><i class="fas fa-globe" aria-hidden="true"></i><br><?php echo __('Import Video'); ?></center></a></li>
<?php
}
if (Login::canBulkEncode()) {
?>
<li><a data-toggle="tab" href="#bulk"><center><span class="glyphicon glyphicon-duplicate"></span><br><?php echo __('Bulk Encode'); ?></center></a></li>
<?php } ?>
</ul>
<div class="tab-content" style="padding: 10px 0;">
<div id="upload" class="tab-pane fade in active">
<?php
include '../view/jquery-file-upload/form.php';
?>
</div>
<?php
if (empty($global['disableImportVideo'])) {
?>
<div id="download" class="tab-pane fade">
<div class="alert alert-info">
<span class="glyphicon glyphicon-info-sign"></span> <?php echo __('Share videos from YouTube and a few'); ?> <a href="https://rg3.github.io/youtube-dl/supportedsites.html" target="_blank"><?php echo __('more sites'); ?></a>.
</div>
<form id="downloadForm" onsubmit="">
<div class="form-group">
<div class="input-group">
<input type="url" class="form-control" id="inputVideoURL" placeholder="http://..." />
<span class="input-group-btn">
<button class="btn btn-primary" type="submit">
<i class="fas fa-check" aria-hidden="true"></i> <?php echo __('Share'); ?>
</button>
</span>
</div>
</div>
<?php
$releaseDateId = 'download_releaseDate';
include $global['systemRootPath'] . 'view/releaseDate.php';
?>
<div class="clearfix"></div>
<?php
if (!empty($_SESSION['login']->categories)) {
?>
<div class="form-group">
<div style="display: flex;">
<?php
echo getCategoriesSelect('download_categories_id');
?>
</div>
</div>
<?php
}
?>
</form>
</div>
<?php
}
if (Login::canBulkEncode()) {
?>
<div id="bulk" class="tab-pane fade">
<div class="alert alert-info">
<span class="glyphicon glyphicon-info-sign pull-left" style="font-size: 2em; padding: 0 10px;"></span> <?php echo __('Bulk add your server local files on queue.'); ?>
</div>
<div class="form-group">
<div class="input-group">
<input type="text" id="path" class="form-control" placeholder="<?php echo __('Local Path of videos i.e. /media/videos'); ?>" />
<span class="input-group-btn">
<button class="btn btn-primary" id="pathBtn">
<span class="glyphicon glyphicon-list"></span> <?php echo __('List Files'); ?>
</button>
</span>
<span class="input-group-btn">
<button class="btn btn-primary" id="checkBtn">
<i class="fas fa-check-square" aria-hidden="true"></i>
</button>
</span>
<span class="input-group-btn">
<button class="btn btn-primary" id="uncheckBtn">
<i class="far fa-square" aria-hidden="true"></i>
</button>
</span>
</div>
</div>
<?php
$releaseDateId = 'bulk_releaseDate';
include $global['systemRootPath'] . 'view/releaseDate.php';
?>
<div class="clearfix"></div>
<?php
if (!empty($_SESSION['login']->categories)) {
?>
<div class="form-group">
<div style="display: flex;">
<?php
echo getCategoriesSelect('bulk_categories_id');
?>
</div>
</div>
<?php
}
?>
<ul class="list-group" id="files">
</ul>
<button class="btn btn-block btn-primary" id="addQueueBtn"><?php echo __('Add on Queue'); ?></button>
</div>
<?php } ?>
</div>
</div>
<div class="panel-footer">
<div class="availableResolutionsLabels">
<?php
$resolutionsInfo = Format::getAvailableResolutionsInfo();
foreach ($resolutionsInfo as $value) {
if (empty($value['resolutionChecked'])) {
continue;
}
echo $value['label'];
}
?>
</div>
<div class="clearfix"></div>
<?php
if (!empty($_REQUEST['callback'])) {
$json = json_decode($_REQUEST['callback']);
if (!empty($json)) {
foreach ($json as $key => $value) {
echo '<strong>' . htmlentities($key) . '</strong>: ' . $value . '<br>';
}
echo '<input type="hidden" class="callback" name="callback" id="callback" value="' . base64_encode(json_encode($json)) . '">';
}
}
?>
</div>
</div>