1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 19:42:38 +02:00

Update page builder

This commit is contained in:
Daniel Neto 2024-04-02 13:44:59 -03:00
parent 7ec296ff28
commit b565543ec0
166 changed files with 6185 additions and 7400 deletions

View file

@ -107,7 +107,7 @@
logoImgBase64 = resp; logoImgBase64 = resp;
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>admin/customize_settings_nativeUpdate.json.php', url: webSiteRootURL+'admin/customize_settings_nativeUpdate.json.php',
data: { data: {
"logoImgBase64": logoImgBase64, "logoImgBase64": logoImgBase64,
"webSiteTitle": $('#inputWebSiteTitle').val(), "webSiteTitle": $('#inputWebSiteTitle').val(),

View file

@ -95,27 +95,27 @@ $delay = 0.5;
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>objects/pluginSwitch.json.php', url: webSiteRootURL+'objects/pluginSwitch.json.php',
data: {"uuid": "a06505bf-3570-4b1f-977a-fd0e5cab205d", "name": "Gallery", "dir": "Gallery", "enable": false}, data: {"uuid": "a06505bf-3570-4b1f-977a-fd0e5cab205d", "name": "Gallery", "dir": "Gallery", "enable": false},
type: 'post', type: 'post',
success: function (response) { success: function (response) {
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>objects/pluginSwitch.json.php', url: webSiteRootURL+'objects/pluginSwitch.json.php',
data: {"uuid": "e3a568e6-ef61-4dcc-aad0-0109e9be8e36", "name": "YouPHPFlix2", "dir": "YouPHPFlix2", "enable": false}, data: {"uuid": "e3a568e6-ef61-4dcc-aad0-0109e9be8e36", "name": "YouPHPFlix2", "dir": "YouPHPFlix2", "enable": false},
type: 'post', type: 'post',
success: function (response) { success: function (response) {
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>objects/pluginSwitch.json.php', url: webSiteRootURL+'objects/pluginSwitch.json.php',
data: {"uuid": "youu05bf-3570-4b1f-977a-fd0e5cabtube", "name": "YouTube", "dir": "YouTube", "enable": false}, data: {"uuid": "youu05bf-3570-4b1f-977a-fd0e5cabtube", "name": "YouTube", "dir": "YouTube", "enable": false},
type: 'post', type: 'post',
success: function (response) { success: function (response) {
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>objects/pluginSwitch.json.php', url: webSiteRootURL+'objects/pluginSwitch.json.php',
data: {"uuid": "channel-first-page-977a-fd0e5cab205d", "name": "FirstPageChannelList", "dir": "FirstPageChannelList", "enable": false}, data: {"uuid": "channel-first-page-977a-fd0e5cab205d", "name": "FirstPageChannelList", "dir": "FirstPageChannelList", "enable": false},
type: 'post', type: 'post',
success: function (response) { success: function (response) {
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>admin/themeUpdate.json.php', url: webSiteRootURL+'admin/themeUpdate.json.php',
data: {"theme": 'default'}, data: {"theme": 'default'},
type: 'post', type: 'post',
success: function (response) { success: function (response) {
@ -142,27 +142,27 @@ $delay = 0.5;
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>objects/pluginSwitch.json.php', url: webSiteRootURL+'objects/pluginSwitch.json.php',
data: {"uuid": "a06505bf-3570-4b1f-977a-fd0e5cab205d", "name": "Gallery", "dir": "Gallery", "enable": false}, data: {"uuid": "a06505bf-3570-4b1f-977a-fd0e5cab205d", "name": "Gallery", "dir": "Gallery", "enable": false},
type: 'post', type: 'post',
success: function (response) { success: function (response) {
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>objects/pluginSwitch.json.php', url: webSiteRootURL+'objects/pluginSwitch.json.php',
data: {"uuid": "youu05bf-3570-4b1f-977a-fd0e5cabtube", "name": "YouTube", "dir": "YouTube", "enable": false}, data: {"uuid": "youu05bf-3570-4b1f-977a-fd0e5cabtube", "name": "YouTube", "dir": "YouTube", "enable": false},
type: 'post', type: 'post',
success: function (response) { success: function (response) {
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>objects/pluginSwitch.json.php', url: webSiteRootURL+'objects/pluginSwitch.json.php',
data: {"uuid": "e3a568e6-ef61-4dcc-aad0-0109e9be8e36", "name": "YouPHPFlix2", "dir": "YouPHPFlix2", "enable": true}, data: {"uuid": "e3a568e6-ef61-4dcc-aad0-0109e9be8e36", "name": "YouPHPFlix2", "dir": "YouPHPFlix2", "enable": true},
type: 'post', type: 'post',
success: function (response) { success: function (response) {
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>objects/pluginSwitch.json.php', url: webSiteRootURL+'objects/pluginSwitch.json.php',
data: {"uuid": "channel-first-page-977a-fd0e5cab205d", "name": "FirstPageChannelList", "dir": "FirstPageChannelList", "enable": false}, data: {"uuid": "channel-first-page-977a-fd0e5cab205d", "name": "FirstPageChannelList", "dir": "FirstPageChannelList", "enable": false},
type: 'post', type: 'post',
success: function (response) { success: function (response) {
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>admin/themeUpdate.json.php', url: webSiteRootURL+'admin/themeUpdate.json.php',
data: {"theme": 'netflix'}, data: {"theme": 'netflix'},
type: 'post', type: 'post',
success: function (response) { success: function (response) {
@ -189,27 +189,27 @@ $delay = 0.5;
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>objects/pluginSwitch.json.php', url: webSiteRootURL+'objects/pluginSwitch.json.php',
data: {"uuid": "a06505bf-3570-4b1f-977a-fd0e5cab205d", "name": "Gallery", "dir": "Gallery", "enable": true}, data: {"uuid": "a06505bf-3570-4b1f-977a-fd0e5cab205d", "name": "Gallery", "dir": "Gallery", "enable": true},
type: 'post', type: 'post',
success: function (response) { success: function (response) {
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>objects/pluginSwitch.json.php', url: webSiteRootURL+'objects/pluginSwitch.json.php',
data: {"uuid": "youu05bf-3570-4b1f-977a-fd0e5cabtube", "name": "YouTube", "dir": "YouTube", "enable": false}, data: {"uuid": "youu05bf-3570-4b1f-977a-fd0e5cabtube", "name": "YouTube", "dir": "YouTube", "enable": false},
type: 'post', type: 'post',
success: function (response) { success: function (response) {
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>objects/pluginSwitch.json.php', url: webSiteRootURL+'objects/pluginSwitch.json.php',
data: {"uuid": "e3a568e6-ef61-4dcc-aad0-0109e9be8e36", "name": "YouPHPFlix2", "dir": "YouPHPFlix2", "enable": false}, data: {"uuid": "e3a568e6-ef61-4dcc-aad0-0109e9be8e36", "name": "YouPHPFlix2", "dir": "YouPHPFlix2", "enable": false},
type: 'post', type: 'post',
success: function (response) { success: function (response) {
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>objects/pluginSwitch.json.php', url: webSiteRootURL+'objects/pluginSwitch.json.php',
data: {"uuid": "channel-first-page-977a-fd0e5cab205d", "name": "FirstPageChannelList", "dir": "FirstPageChannelList", "enable": false}, data: {"uuid": "channel-first-page-977a-fd0e5cab205d", "name": "FirstPageChannelList", "dir": "FirstPageChannelList", "enable": false},
type: 'post', type: 'post',
success: function (response) { success: function (response) {
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>admin/themeUpdate.json.php', url: webSiteRootURL+'admin/themeUpdate.json.php',
data: {"theme": 'default'}, data: {"theme": 'default'},
type: 'post', type: 'post',
success: function (response) { success: function (response) {
@ -236,27 +236,27 @@ $delay = 0.5;
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>objects/pluginSwitch.json.php', url: webSiteRootURL+'objects/pluginSwitch.json.php',
data: {"uuid": "a06505bf-3570-4b1f-977a-fd0e5cab205d", "name": "Gallery", "dir": "Gallery", "enable": false}, data: {"uuid": "a06505bf-3570-4b1f-977a-fd0e5cab205d", "name": "Gallery", "dir": "Gallery", "enable": false},
type: 'post', type: 'post',
success: function (response) { success: function (response) {
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>objects/pluginSwitch.json.php', url: webSiteRootURL+'objects/pluginSwitch.json.php',
data: {"uuid": "e3a568e6-ef61-4dcc-aad0-0109e9be8e36", "name": "YouPHPFlix2", "dir": "YouPHPFlix2", "enable": false}, data: {"uuid": "e3a568e6-ef61-4dcc-aad0-0109e9be8e36", "name": "YouPHPFlix2", "dir": "YouPHPFlix2", "enable": false},
type: 'post', type: 'post',
success: function (response) { success: function (response) {
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>objects/pluginSwitch.json.php', url: webSiteRootURL+'objects/pluginSwitch.json.php',
data: {"uuid": "youu05bf-3570-4b1f-977a-fd0e5cabtube", "name": "YouTube", "dir": "YouTube", "enable": true}, data: {"uuid": "youu05bf-3570-4b1f-977a-fd0e5cabtube", "name": "YouTube", "dir": "YouTube", "enable": true},
type: 'post', type: 'post',
success: function (response) { success: function (response) {
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>objects/pluginSwitch.json.php', url: webSiteRootURL+'objects/pluginSwitch.json.php',
data: {"uuid": "channel-first-page-977a-fd0e5cab205d", "name": "FirstPageChannelList", "dir": "FirstPageChannelList", "enable": false}, data: {"uuid": "channel-first-page-977a-fd0e5cab205d", "name": "FirstPageChannelList", "dir": "FirstPageChannelList", "enable": false},
type: 'post', type: 'post',
success: function (response) { success: function (response) {
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>admin/themeUpdate.json.php', url: webSiteRootURL+'admin/themeUpdate.json.php',
data: {"theme": 'default'}, data: {"theme": 'default'},
type: 'post', type: 'post',
success: function (response) { success: function (response) {
@ -285,27 +285,27 @@ $delay = 0.5;
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>objects/pluginSwitch.json.php', url: webSiteRootURL+'objects/pluginSwitch.json.php',
data: {"uuid": "a06505bf-3570-4b1f-977a-fd0e5cab205d", "name": "Gallery", "dir": "Gallery", "enable": false}, data: {"uuid": "a06505bf-3570-4b1f-977a-fd0e5cab205d", "name": "Gallery", "dir": "Gallery", "enable": false},
type: 'post', type: 'post',
success: function (response) { success: function (response) {
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>objects/pluginSwitch.json.php', url: webSiteRootURL+'objects/pluginSwitch.json.php',
data: {"uuid": "e3a568e6-ef61-4dcc-aad0-0109e9be8e36", "name": "YouPHPFlix2", "dir": "YouPHPFlix2", "enable": false}, data: {"uuid": "e3a568e6-ef61-4dcc-aad0-0109e9be8e36", "name": "YouPHPFlix2", "dir": "YouPHPFlix2", "enable": false},
type: 'post', type: 'post',
success: function (response) { success: function (response) {
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>objects/pluginSwitch.json.php', url: webSiteRootURL+'objects/pluginSwitch.json.php',
data: {"uuid": "youu05bf-3570-4b1f-977a-fd0e5cabtube", "name": "YouTube", "dir": "YouTube", "enable": false}, data: {"uuid": "youu05bf-3570-4b1f-977a-fd0e5cabtube", "name": "YouTube", "dir": "YouTube", "enable": false},
type: 'post', type: 'post',
success: function (response) { success: function (response) {
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>objects/pluginSwitch.json.php', url: webSiteRootURL+'objects/pluginSwitch.json.php',
data: {"uuid": "channel-first-page-977a-fd0e5cab205d", "name": "FirstPageChannelList", "dir": "FirstPageChannelList", "enable": true}, data: {"uuid": "channel-first-page-977a-fd0e5cab205d", "name": "FirstPageChannelList", "dir": "FirstPageChannelList", "enable": true},
type: 'post', type: 'post',
success: function (response) { success: function (response) {
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>admin/themeUpdate.json.php', url: webSiteRootURL+'admin/themeUpdate.json.php',
data: {"theme": 'default'}, data: {"theme": 'default'},
type: 'post', type: 'post',
success: function (response) { success: function (response) {

View file

@ -53,12 +53,12 @@ $delay = 0.2;
$('.playerSwitch').not(this).prop('checked', false); $('.playerSwitch').not(this).prop('checked', false);
var skin = $(this).val(); var skin = $(this).val();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>objects/pluginSwitch.json.php', url: webSiteRootURL+'objects/pluginSwitch.json.php',
data: {"uuid": "e9a568e6-ef61-4dcc-aad0-0109e9be8e36", "name": "PlayerSkins", "dir": "PlayerSkins", "enable": true}, data: {"uuid": "e9a568e6-ef61-4dcc-aad0-0109e9be8e36", "name": "PlayerSkins", "dir": "PlayerSkins", "enable": true},
type: 'post', type: 'post',
success: function (response) { success: function (response) {
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>admin/playerUpdate.json.php', url: webSiteRootURL+'admin/playerUpdate.json.php',
data: {"skin": skin}, data: {"skin": skin},
type: 'post', type: 'post',
success: function (response) { success: function (response) {

View file

@ -41,7 +41,7 @@
modal.showPleaseWait(); modal.showPleaseWait();
$('.themeSwitch').not(this).prop('checked', false); $('.themeSwitch').not(this).prop('checked', false);
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>admin/themeUpdate.json.php', url: webSiteRootURL+'admin/themeUpdate.json.php',
data: {"theme": $(this).val()}, data: {"theme": $(this).val()},
type: 'post', type: 'post',
success: function (response) { success: function (response) {

View file

@ -358,7 +358,7 @@ switch ($_GET['page']) {
e.preventDefault(); e.preventDefault();
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>admin/save.json.php', url: webSiteRootURL+'admin/save.json.php',
data: $(this).serialize(), data: $(this).serialize(),
type: 'post', type: 'post',
success: function (response) { success: function (response) {
@ -369,7 +369,7 @@ switch ($_GET['page']) {
$('.pluginSwitch').change(function (e) { $('.pluginSwitch').change(function (e) {
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>objects/pluginSwitch.json.php', url: webSiteRootURL+'objects/pluginSwitch.json.php',
data: {"uuid": $(this).attr('uuid'), "name": $(this).attr('name'), "dir": $(this).attr('name'), "enable": $(this).is(":checked")}, data: {"uuid": $(this).attr('uuid'), "name": $(this).attr('name'), "dir": $(this).attr('name'), "enable": $(this).is(":checked")},
type: 'post', type: 'post',
success: function (response) { success: function (response) {

View file

@ -50,7 +50,7 @@
modal.showPleaseWait(); modal.showPleaseWait();
$("#emailMessage").val(tinymce.get('emailMessage').getContent()); $("#emailMessage").val(tinymce.get('emailMessage').getContent());
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>objects/emailAllUsers.json.php', url: webSiteRootURL+'objects/emailAllUsers.json.php',
method: 'POST', method: 'POST',
data: { data: {
'message': $('#emailMessage').val(), 'message': $('#emailMessage').val(),

View file

@ -34,27 +34,13 @@ if (!User::isAdmin() || !empty($global['disableAdvancedConfigurations'])) {
} }
$vars = listAllWordsToTranslate(); $vars = listAllWordsToTranslate();
?> $_page = new Page(array('Translate AVideo'));
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<?php
echo getHTMLTitle(__("Translate AVideo"));
?>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
?> ?>
<style type="text/css"> <style type="text/css">
textarea.form-control { textarea.form-control {
height: 100% !important; height: 100% !important;
} }
</style> </style>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
?>
<div class="container-fluid"> <div class="container-fluid">
<br> <br>
<div class="panel panel-default"> <div class="panel panel-default">
@ -136,9 +122,7 @@ $vars = listAllWordsToTranslate();
<div class="col-lg-4 col-md-12"> <div class="col-lg-4 col-md-12">
<h3><?php echo __("Translated Array"); ?></h3> <h3><?php echo __("Translated Array"); ?></h3>
<textarea placeholder="<?php echo __("Translated Array"); ?>" class="form-control" id="arrayCode" rows="20" readonly="readonly" <textarea placeholder="<?php echo __("Translated Array"); ?>" class="form-control" id="arrayCode" rows="20" readonly="readonly" style="white-space: pre;overflow-wrap: normal;overflow-x: scroll;"></textarea>
style="white-space: pre;overflow-wrap: normal;overflow-x: scroll;"
></textarea>
</div> </div>
</div> </div>
@ -158,10 +142,7 @@ $vars = listAllWordsToTranslate();
</div> </div>
</div> </div>
</div> </div>
</div><!--/.container--> </div>
<?php
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script> <script>
var arrayLocale = <?php echo json_encode(array_values($vars)); ?>; var arrayLocale = <?php echo json_encode(array_values($vars)); ?>;
$(document).ready(function() { $(document).ready(function() {
@ -192,7 +173,10 @@ $vars = listAllWordsToTranslate();
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: 'save.php', url: 'save.php',
data: {"flag": $("#selectFlag").val(), "code": $('#arrayCode').val()}, data: {
"flag": $("#selectFlag").val(),
"code": $('#arrayCode').val()
},
type: 'post', type: 'post',
success: function(response) { success: function(response) {
if (response.status === "1") { if (response.status === "1") {
@ -205,7 +189,7 @@ $vars = listAllWordsToTranslate();
}); });
}); });
}); });
</script> </script>
</body> <?php
</html> $_page->print();
?>

View file

@ -1,6 +1,7 @@
<?php <?php
class Page { class Page
{
private $title; private $title;
private $bodyClass = ''; private $bodyClass = '';
@ -11,60 +12,98 @@ class Page {
private $bodyContent = ''; private $bodyContent = '';
private $includeNavbar = true; private $includeNavbar = true;
private $includeFooter = true; private $includeFooter = true;
private $includeBGAnimation = false;
private $includeInHead = array(); private $includeInHead = array();
private $includeInFooter = array(); private $includeInFooter = array();
public function __construct($title, $bodyClass='') { public function __construct($title, $bodyClass = '', $loadBasicCSSAndJS = false)
{
$this->title = $title; $this->title = $title;
$this->bodyClass = $bodyClass; $this->bodyClass = $bodyClass;
_ob_start(); _ob_start();
if ($loadBasicCSSAndJS) {
$this->loadBasicCSSAndJS();
}
} }
public function setTitle(string $title) { public function loadBasicCSSAndJS()
{
$this->setExtraScripts(
array(
'view/css/DataTables/datatables.min.js',
'view/js/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js'
)
);
$this->setExtraStyles(
array(
'view/css/DataTables/datatables.min.css',
'view/js/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css'
)
);
}
public function setTitle(string $title)
{
$this->title = $title; $this->title = $title;
} }
public function setBodyClass(string $bodyClass) { public function setBodyClass(string $bodyClass)
{
$this->bodyClass = $bodyClass; $this->bodyClass = $bodyClass;
} }
public function setExtraScripts(array $extraScripts) { public function setExtraScripts(array $extraScripts)
{
$this->extraScripts = $extraScripts; $this->extraScripts = $extraScripts;
} }
public function setExtraStyles(array $extraStyles) { public function setExtraStyles(array $extraStyles)
{
$this->extraStyles = $extraStyles; $this->extraStyles = $extraStyles;
} }
public function setInlineStyles(string $inlineStyles) { public function setInlineStyles(string $inlineStyles)
{
$this->inlineStyles = $inlineStyles; $this->inlineStyles = $inlineStyles;
} }
public function setInlineScripts(string $inlineScripts) { public function setInlineScripts(string $inlineScripts)
{
$this->inlineScripts = $inlineScripts; $this->inlineScripts = $inlineScripts;
} }
public function setBodyContent(string $bodyContent) { public function setBodyContent(string $bodyContent)
{
$this->bodyContent = $bodyContent; $this->bodyContent = $bodyContent;
} }
public function setIncludeNavbar(bool $includeNavbar) { public function setIncludeNavbar(bool $includeNavbar)
{
$this->includeNavbar = $includeNavbar; $this->includeNavbar = $includeNavbar;
} }
public function setIncludeFooter(bool $includeFooter) { public function setIncludeFooter(bool $includeFooter)
{
$this->includeFooter = $includeFooter; $this->includeFooter = $includeFooter;
} }
public function setIncludeInHead(array $includeInHead) { public function setIncludeInHead(array $includeInHead)
{
$this->includeInHead = $includeInHead; $this->includeInHead = $includeInHead;
} }
public function setIncludeInFooter(array $includeInFooter) { public function setIncludeInFooter(array $includeInFooter)
{
$this->includeInFooter = $includeInFooter; $this->includeInFooter = $includeInFooter;
} }
public function getHead() { public function setIncludeBGAnimation(bool $includeBGAnimation)
{
$this->includeBGAnimation = $includeBGAnimation;
}
public function getHead()
{
global $config, $global; global $config, $global;
if (!is_array($this->title)) { if (!is_array($this->title)) {
$this->title = array($this->title); $this->title = array($this->title);
@ -73,7 +112,8 @@ class Page {
$this->title[$key] = __($value); $this->title[$key] = __($value);
} }
echo "<head>"; echo "<head>";
echo "<title>" . implode($config->getPageTitleSeparator(), $this->title) . getSEOComplement() . $config->getPageTitleSeparator() . $config->getWebSiteTitle() . "</title>"; echo getHTMLTitle($this->title);
//echo "<title>" . implode($config->getPageTitleSeparator(), $this->title) . getSEOComplement() . $config->getPageTitleSeparator() . $config->getWebSiteTitle() . "</title>";
include $global['systemRootPath'] . 'view/include/head.php'; include $global['systemRootPath'] . 'view/include/head.php';
if (!empty($this->includeInHead)) { if (!empty($this->includeInHead)) {
foreach ($this->includeInHead as $value) { foreach ($this->includeInHead as $value) {
@ -92,15 +132,24 @@ class Page {
echo "</head>"; echo "</head>";
} }
public function getNavBar() { public function getNavBar()
{
global $global; global $global;
if($this->includeBGAnimation){
CustomizeUser::autoIncludeBGAnimationFile();
}
$redirectUri = getRedirectUri();
if (stripos($redirectUri, "embed/") !== false) {
$this->includeNavbar = false;
}
if ($this->includeNavbar) { if ($this->includeNavbar) {
// Your navbar HTML // Your navbar HTML
include $global['systemRootPath'] . 'view/include/navbar.php'; include $global['systemRootPath'] . 'view/include/navbar.php';
} }
} }
public function getFooter() { public function getFooter()
{
global $config, $global; global $config, $global;
if ($this->includeFooter) { if ($this->includeFooter) {
// Your footer HTML // Your footer HTML
@ -121,7 +170,8 @@ class Page {
} }
} }
public function getContent() { public function getContent()
{
global $global; global $global;
$rtl = ''; $rtl = '';
if (isRTL()) { if (isRTL()) {
@ -137,7 +187,8 @@ class Page {
echo "</body>"; echo "</body>";
} }
public function getPage() { public function getPage()
{
echo "<!DOCTYPE html>"; echo "<!DOCTYPE html>";
echo "<html lang=\"" . getLanguage() . "\">"; echo "<html lang=\"" . getLanguage() . "\">";
$this->getHead(); $this->getHead();
@ -145,7 +196,8 @@ class Page {
echo "</html>"; echo "</html>";
} }
public function print($include_end = true){ public function print($include_end = true)
{
global $config, $global; global $config, $global;
$html = _ob_get_clean(); $html = _ob_get_clean();
_ob_start(); _ob_start();
@ -155,5 +207,4 @@ class Page {
include $global['systemRootPath'] . 'objects/include_end.php'; include $global['systemRootPath'] . 'objects/include_end.php';
} }
} }
} }

View file

@ -8,7 +8,7 @@ if (!isset($global['systemRootPath'])) {
require_once $global['systemRootPath'] . 'objects/user.php'; require_once $global['systemRootPath'] . 'objects/user.php';
if (!User::isAdmin()) { if (!User::isAdmin()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); forbiddenPage("You can not do this");
exit; exit;
} }

View file

@ -5488,9 +5488,16 @@ function getHTMLTitle($titleArray)
if (!is_array($titleArray)) { if (!is_array($titleArray)) {
$titleArray = []; $titleArray = [];
} }
$titleArray[] = getSEOComplement();
$titleArray[] = $config->getWebSiteTitle(); $titleArray[] = $config->getWebSiteTitle();
$cleanTitleArray = array();
foreach ($titleArray as $value) {
if(!empty($value) && !in_array($value, $cleanTitleArray)){
$cleanTitleArray[] = $value;
}
}
$title = implode($config->getPageTitleSeparator(), $titleArray); $title = implode($config->getPageTitleSeparator(), $cleanTitleArray);
$global['pageTitle'] = $title; $global['pageTitle'] = $title;
return "<title>{$title}</title>"; return "<title>{$title}</title>";
} }

View file

@ -133,7 +133,7 @@ if (!(!empty($_REQUEST['user']) && !empty($_REQUEST['recoverpass']))) {
evt.preventDefault(); evt.preventDefault();
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>objects/userRecoverPassSave.json.php', url: webSiteRootURL+'objects/userRecoverPassSave.json.php',
data: $('#recoverPassForm').serializeArray(), data: $('#recoverPassForm').serializeArray(),
type: 'post', type: 'post',
success: function(response) { success: function(response) {

View file

@ -34,7 +34,7 @@
ad_overlay_users_id = users_id; ad_overlay_users_id = users_id;
$('#adsFormModal').modal(); $('#adsFormModal').modal();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/AD_Overlay/getCode.json.php?users_id=' + users_id, url: webSiteRootURL+'plugin/AD_Overlay/getCode.json.php?users_id=' + users_id,
success: function (response) { success: function (response) {
$( "#addOverlayCode" ).text(response.msg); $( "#addOverlayCode" ).text(response.msg);
if(response.status == 'a'){ if(response.status == 'a'){

View file

@ -10,7 +10,7 @@ $ad->loadFromUser(User::getId());
AD Code AD Code
</div> </div>
<div class="panel-body"> <div class="panel-body">
<textarea class="form-control" rows="10" id="addOverlayCode"><?php echo $ad->getCode(); ?></textarea> <textarea class="form-control" rows="10" id="addOverlayCode"><?php echo htmlentities($ad->getCode()); ?></textarea>
<button class="btn btn-success btn-block" type="button" onclick="saveCode()"><?php echo __("Save Ad Code") ?></button> <button class="btn btn-success btn-block" type="button" onclick="saveCode()"><?php echo __("Save Ad Code") ?></button>
</div> </div>
</div> </div>

View file

@ -4,7 +4,7 @@ if (!isset($global['systemRootPath'])) {
require_once '../../videos/configuration.php'; require_once '../../videos/configuration.php';
} }
if (!User::isAdmin()) { if (!User::isAdmin()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); forbiddenPage("You can not do this");
exit; exit;
} }

View file

@ -4,7 +4,7 @@ if (!isset($global['systemRootPath'])) {
require_once '../../videos/configuration.php'; require_once '../../videos/configuration.php';
} }
if (!User::isAdmin()) { if (!User::isAdmin()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); forbiddenPage("You can not do this");
exit; exit;
} }
?> ?>
@ -287,7 +287,7 @@ if (!User::isAdmin()) {
$(".pluginSwitch").on("change", function (e) { $(".pluginSwitch").on("change", function (e) {
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>objects/pluginSwitch.json.php', url: webSiteRootURL+'objects/pluginSwitch.json.php',
data: {"uuid": "3f2a707f-3c06-4b78-90f9-a22f2fda92ef", "name": "AD_Server", "dir": "AD_Server", "enable": $('#enable1').is(":checked")}, data: {"uuid": "3f2a707f-3c06-4b78-90f9-a22f2fda92ef", "name": "AD_Server", "dir": "AD_Server", "enable": $('#enable1').is(":checked")},
type: 'post', type: 'post',
success: function (response) { success: function (response) {
@ -300,7 +300,7 @@ if (!User::isAdmin()) {
minLength: 0, minLength: 0,
source: function (req, res) { source: function (req, res) {
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>videos.json', url: webSiteRootURL+'videos.json',
type: "POST", type: "POST",
data: { data: {
searchPhrase: req.term, searchPhrase: req.term,
@ -481,7 +481,7 @@ if (!User::isAdmin()) {
e.preventDefault(); e.preventDefault();
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/AD_Server/view/addCampaign.php', url: webSiteRootURL+'plugin/AD_Server/view/addCampaign.php',
data: $('#panelForm').serialize(), data: $('#panelForm').serialize(),
type: 'post', type: 'post',
success: function (response) { success: function (response) {

View file

@ -51,7 +51,7 @@ $countries = IP2Location::getCountries();
$("#country").on("change", function (e) { $("#country").on("change", function (e) {
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/User_Location/regions.json.php?country=' + $('#country').val(), url: webSiteRootURL+'plugin/User_Location/regions.json.php?country=' + $('#country').val(),
success: function (response) { success: function (response) {
$('#region').empty(); $('#region').empty();
$('#region').append($("<option></option>").text('All')); $('#region').append($("<option></option>").text('All'));
@ -68,7 +68,7 @@ $countries = IP2Location::getCountries();
$("#region").on("change", function (e) { $("#region").on("change", function (e) {
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/User_Location/cities.json.php?country=' + $('#country').val() + '&region=' + $('#region').val(), url: webSiteRootURL+'plugin/User_Location/cities.json.php?country=' + $('#country').val() + '&region=' + $('#region').val(),
success: function (response) { success: function (response) {
$('#city').empty(); $('#city').empty();
$('#city').append($("<option></option>").text('All')); $('#city').append($("<option></option>").text('All'));

View file

@ -4,7 +4,7 @@ if (!isset($global['systemRootPath'])) {
require_once '../../videos/configuration.php'; require_once '../../videos/configuration.php';
} }
if (!User::isAdmin()) { if (!User::isAdmin()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); forbiddenPage("You can not do this");
exit; exit;
} }
?> ?>
@ -170,7 +170,7 @@ $('#Ai_metatags_responsesai_responses_id').val('');
$(document).ready(function () { $(document).ready(function () {
$('#addAi_metatags_responsesBtn').click(function () { $('#addAi_metatags_responsesBtn').click(function () {
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/AI/View/addAi_metatags_responsesVideo.php', url: webSiteRootURL+'plugin/AI/View/addAi_metatags_responsesVideo.php',
data: $('#panelAi_metatags_responsesForm').serialize(), data: $('#panelAi_metatags_responsesForm').serialize(),
type: 'post', type: 'post',
success: function (response) { success: function (response) {
@ -220,7 +220,7 @@ $('#Ai_metatags_responsesai_responses_id').val('');
e.preventDefault(); e.preventDefault();
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/AI/View/Ai_metatags_responses/add.json.php', url: webSiteRootURL+'plugin/AI/View/Ai_metatags_responses/add.json.php',
data: $('#panelAi_metatags_responsesForm').serialize(), data: $('#panelAi_metatags_responsesForm').serialize(),
type: 'post', type: 'post',
success: function (response) { success: function (response) {

View file

@ -4,7 +4,7 @@ if (!isset($global['systemRootPath'])) {
require_once '../../videos/configuration.php'; require_once '../../videos/configuration.php';
} }
if (!User::isAdmin()) { if (!User::isAdmin()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); forbiddenPage("You can not do this");
exit; exit;
} }
?> ?>
@ -94,7 +94,7 @@ $('#Ai_responsesvideos_id').val('');
$('#addAi_responsesBtn').click(function () { $('#addAi_responsesBtn').click(function () {
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/AI/View/addAi_responsesVideo.php', url: webSiteRootURL+'plugin/AI/View/addAi_responsesVideo.php',
data: $('#panelAi_responsesForm').serialize(), data: $('#panelAi_responsesForm').serialize(),
type: 'post', type: 'post',
success: function (response) { success: function (response) {
@ -133,7 +133,7 @@ $('#Ai_responsesvideos_id').val('');
e.preventDefault(); e.preventDefault();
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/AI/View/Ai_responses/add.json.php', url: webSiteRootURL+'plugin/AI/View/Ai_responses/add.json.php',
data: $('#panelAi_responsesForm').serialize(), data: $('#panelAi_responsesForm').serialize(),
type: 'post', type: 'post',
success: function (response) { success: function (response) {

View file

@ -4,7 +4,7 @@ if (!isset($global['systemRootPath'])) {
require_once '../../videos/configuration.php'; require_once '../../videos/configuration.php';
} }
if (!User::isAdmin()) { if (!User::isAdmin()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); forbiddenPage("You can not do this");
exit; exit;
} }
?> ?>
@ -138,7 +138,7 @@ $('#Ai_transcribe_responsesai_responses_id').val('');
$(document).ready(function () { $(document).ready(function () {
$('#addAi_transcribe_responsesBtn').click(function () { $('#addAi_transcribe_responsesBtn').click(function () {
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/AI/View/addAi_transcribe_responsesVideo.php', url: webSiteRootURL+'plugin/AI/View/addAi_transcribe_responsesVideo.php',
data: $('#panelAi_transcribe_responsesForm').serialize(), data: $('#panelAi_transcribe_responsesForm').serialize(),
type: 'post', type: 'post',
success: function (response) { success: function (response) {
@ -183,7 +183,7 @@ $('#Ai_transcribe_responsesai_responses_id').val('');
e.preventDefault(); e.preventDefault();
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/AI/View/Ai_transcribe_responses/add.json.php', url: webSiteRootURL+'plugin/AI/View/Ai_transcribe_responses/add.json.php',
data: $('#panelAi_transcribe_responsesForm').serialize(), data: $('#panelAi_transcribe_responsesForm').serialize(),
type: 'post', type: 'post',
success: function (response) { success: function (response) {

View file

@ -13,26 +13,7 @@ if (empty($plugin)) {
forbiddenPage('API Plugin disabled'); forbiddenPage('API Plugin disabled');
} }
$obj = AVideoPlugin::getObjectData("API"); $obj = AVideoPlugin::getObjectData("API");
?>
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<?php
echo getHTMLTitle(__("API"));
?>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
?>
<style>
pre a{
color: #333;
font-weight: bolder;
}
</style>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
$methodsList = array(); $methodsList = array();
@ -58,19 +39,15 @@ $obj = AVideoPlugin::getObjectData("API");
} }
} }
/* $_page = new Page(array('API'));
usort($class_methods, function ($a, $b) {
if (!preg_match("/(get|set)_api_(.*)/", $a, $matchesA)) {
return 0;
}
if (!preg_match("/(get|set)_api_(.*)/", $b, $matchesB)) {
return 0;
}
return strcasecmp($matchesA[2], $matchesB[2]);
});
*
*/
?> ?>
<style>
pre a {
color: #333;
font-weight: bolder;
}
</style>
<div class="container-fluid"> <div class="container-fluid">
<ul class="list-group"> <ul class="list-group">
<li class="list-group-item"> <li class="list-group-item">
@ -140,7 +117,5 @@ $obj = AVideoPlugin::getObjectData("API");
</ul> </ul>
</div> </div>
<?php <?php
include $global['systemRootPath'] . 'view/include/footer.php'; $_page->print();
?> ?>
</body>
</html>

View file

@ -2,29 +2,13 @@
require_once '../../../videos/configuration.php'; require_once '../../../videos/configuration.php';
require_once $global['systemRootPath'] . 'objects/user.php'; require_once $global['systemRootPath'] . 'objects/user.php';
if (!User::isAdmin()) { if (!User::isAdmin()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not manager plugin Audit")); forbiddenPage("You can not manager plugin Audit");
exit; exit;
} }
?> $_page = new Page(array('Audit'));
<!DOCTYPE html> $_page->loadBasicCSSAndJS();
<html lang="<?php echo getLanguage(); ?>">
<head>
<?php
echo getHTMLTitle( __("Audit"));
?>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
?>
<link rel="stylesheet" type="text/css" href="<?php echo getCDN(); ?>view/css/DataTables/datatables.min.css"/>
<style>
</style>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
?> ?>
<div class="container-fluid"> <div class="container-fluid">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-body"> <div class="panel-body">
<table id="auditTable" class="table table-striped"> <table id="auditTable" class="table table-striped">
@ -56,10 +40,6 @@ if (!User::isAdmin()) {
</div> </div>
</div> </div>
</div> </div>
<?php
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script type="text/javascript" src="<?php echo getURL('view/css/DataTables/datatables.min.js'); ?>"></script>
<script> <script>
$(document).ready(function() { $(document).ready(function() {
var auditTable = $('#auditTable').DataTable({ var auditTable = $('#auditTable').DataTable({
@ -68,20 +48,38 @@ if (!User::isAdmin()) {
"ajax": { "ajax": {
"url": "<?php echo $global['webSiteRootURL']; ?>plugin/Audit/page/audits.json.php", "url": "<?php echo $global['webSiteRootURL']; ?>plugin/Audit/page/audits.json.php",
}, },
"columns": [ "columns": [{
{"data": "class"}, "data": "class"
{"data": "method"}, },
{"data": "statement"}, {
{"data": "formats"}, "data": "method"
{"data": "values"}, },
{"data": "created"}, {
{"data": "user"}, "data": "statement"
{"data": "ip"}, },
{
"data": "formats"
},
{
"data": "values"
},
{
"data": "created"
},
{
"data": "user"
},
{
"data": "ip"
},
], ],
select: true, select: true,
"order": [[5, "desc"]] "order": [
[5, "desc"]
]
}); });
}); });
</script> </script>
</body> <?php
</html> $_page->print();
?>

View file

@ -1,18 +1,8 @@
<?php <?php
require_once '../../../videos/configuration.php'; require_once '../../../videos/configuration.php';
AVideoPlugin::loadPlugin("AutoPostOnSocialMedia"); AVideoPlugin::loadPlugin("AutoPostOnSocialMedia");
?> $_page = new Page(array('AutoPostOnSocialMedia'));
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo $config->getWebSiteTitle(); ?> :: AutoPostOnSocialMedia</title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
?> ?>
<div class="container-fluid"> <div class="container-fluid">
<div class="panel panel-default"> <div class="panel panel-default">
@ -89,8 +79,7 @@ AVideoPlugin::loadPlugin("AutoPostOnSocialMedia");
?> ?>
<div class="form-check"> <div class="form-check">
<input class="form-check-input form-check-input-<?php echo $value; ?>" type="checkbox" <?php echo $checked; ?> <input class="form-check-input form-check-input-<?php echo $value; ?>" type="checkbox" <?php echo $checked; ?> value="<?php echo $weekday; ?>_<?php echo $i; ?>" id="flexCheckDefault<?php echo $value . $i; ?>">
value="<?php echo $weekday; ?>_<?php echo $i; ?>" id="flexCheckDefault<?php echo $value . $i; ?>">
<label class="form-check-label" for="flexCheckDefault<?php echo $value . $i; ?>"> <label class="form-check-label" for="flexCheckDefault<?php echo $value . $i; ?>">
<?php printf("%02d", $i); ?>H <?php printf("%02d", $i); ?>H
</label> </label>
@ -111,13 +100,11 @@ AVideoPlugin::loadPlugin("AutoPostOnSocialMedia");
</div> </div>
</div> </div>
</div> </div>
<?php
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script> <script>
$(function() { $(function() {
}); });
function saveScheduleTwitter() { function saveScheduleTwitter() {
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
@ -132,6 +119,7 @@ AVideoPlugin::loadPlugin("AutoPostOnSocialMedia");
} }
}); });
} }
function getCheckedItems() { function getCheckedItems() {
var selected = new Array(); var selected = new Array();
$("input.form-check-input:checkbox:checked").each(function() { $("input.form-check-input:checkbox:checked").each(function() {
@ -141,5 +129,6 @@ AVideoPlugin::loadPlugin("AutoPostOnSocialMedia");
return selected; return selected;
} }
</script> </script>
</body> <?php
</html> $_page->print();
?>

View file

@ -2,7 +2,7 @@
require_once '../../videos/configuration.php'; require_once '../../videos/configuration.php';
require_once $global['systemRootPath'] . 'objects/user.php'; require_once $global['systemRootPath'] . 'objects/user.php';
if (!User::isLogged()) { if (!User::isLogged()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); forbiddenPage("You can not do this");
exit; exit;
} }
@ -10,25 +10,9 @@ $plugin = AVideoPlugin::loadPluginIfEnabled("BlockonomicsYPT");
$obj = AVideoPlugin::getObjectData("BlockonomicsYPT"); $obj = AVideoPlugin::getObjectData("BlockonomicsYPT");
$order_id = $plugin->setUpPayment($_GET['value']); $order_id = $plugin->setUpPayment($_GET['value']);
$order = new BlockonomicsOrder($order_id); $order = new BlockonomicsOrder($order_id);
$_page = new Page(array('Invoice'));
$_page->setExtraScripts(array('plugin/BlockonomicsYPT/jquery.qrcode.min.js'))
?> ?>
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<?php
echo getHTMLTitle( __("Invoice"));
?>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
?>
<style>
</style>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
?>
<div class="container"> <div class="container">
<div class="panel panel-default"> <div class="panel panel-default">
@ -80,8 +64,7 @@ $order = new BlockonomicsOrder($order_id);
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<div class="progress"> <div class="progress">
<div class="progress-bar progress-bar-striped active" role="progressbar" <div class="progress-bar progress-bar-striped active" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width:100%" id="timeleft">
aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width:100%" id="timeleft">
100% 100%
</div> </div>
</div> </div>
@ -89,16 +72,16 @@ $order = new BlockonomicsOrder($order_id);
</div> </div>
</div> </div>
</div> </div>
<?php
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script src="<?php echo getCDN(); ?>plugin/BlockonomicsYPT/jquery.qrcode.min.js" type="text/javascript"></script>
<script> <script>
var totalSeconds = <?php echo $obj->ExpireInSeconds; ?>; var totalSeconds = <?php echo $obj->ExpireInSeconds; ?>;
var totalSecondsPassed = <?php echo time() - strtotime($order->getCreated()); ?>; var totalSecondsPassed = <?php echo time() - strtotime($order->getCreated()); ?>;
var totalSecondsleft = totalSeconds - totalSecondsPassed; var totalSecondsleft = totalSeconds - totalSecondsPassed;
$(document).ready(function() { $(document).ready(function() {
$('#qrcode').qrcode({width: 220, height: 220, text: "bitcoin:<?php echo $order->getAddr(); ?>?amount=<?php echo $order->getFormatedBits(); ?>"}); $('#qrcode').qrcode({
width: 220,
height: 220,
text: "bitcoin:<?php echo $order->getAddr(); ?>?amount=<?php echo $order->getFormatedBits(); ?>"
});
setInterval(function() { setInterval(function() {
totalSecondsleft--; totalSecondsleft--;
@ -114,7 +97,7 @@ $order = new BlockonomicsOrder($order_id);
function check() { function check() {
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/BlockonomicsYPT/check.php?addr=<?php echo $order->getAddr(); ?>', url: webSiteRootURL + 'plugin/BlockonomicsYPT/check.php?addr=<?php echo $order->getAddr(); ?>',
success: function(response) { success: function(response) {
console.log(response); console.log(response);
if (response.status < 2) { if (response.status < 2) {
@ -132,5 +115,6 @@ $order = new BlockonomicsOrder($order_id);
}); });
} }
</script> </script>
</body> <?php
</html> $_page->print();
?>

View file

@ -99,7 +99,7 @@ $_page->setExtraScripts(
function addBookmark() { function addBookmark() {
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/Bookmark/page/bookmarkSave.json.php', url: webSiteRootURL+'plugin/Bookmark/page/bookmarkSave.json.php',
data: { data: {
"videos_id": <?php echo $_GET['videos_id'] ?>, "videos_id": <?php echo $_GET['videos_id'] ?>,
"timeInSeconds": timeToSeconds($('#currentTime').val()), "timeInSeconds": timeToSeconds($('#currentTime').val()),
@ -146,7 +146,7 @@ $_page->setExtraScripts(
var index = $(li).attr('index'); var index = $(li).attr('index');
var id = $(li).attr('bookmarkId'); var id = $(li).attr('bookmarkId');
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/Bookmark/page/bookmarkDelete.json.php', url: webSiteRootURL+'plugin/Bookmark/page/bookmarkDelete.json.php',
data: { data: {
"id": id "id": id
}, },
@ -164,7 +164,7 @@ $_page->setExtraScripts(
function loadBookmark() { function loadBookmark() {
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/Bookmark/getBookmarks.json.php?videos_id=<?php echo $_GET['videos_id'] ?>', url: webSiteRootURL+'plugin/Bookmark/getBookmarks.json.php?videos_id=<?php echo $_GET['videos_id'] ?>',
success: function(response) { success: function(response) {
allBookmarksArray = response; allBookmarksArray = response;
bookmarksArray = (allBookmarksArray.rows); bookmarksArray = (allBookmarksArray.rows);

View file

@ -2,26 +2,11 @@
require_once '../../../videos/configuration.php'; require_once '../../../videos/configuration.php';
require_once $global['systemRootPath'] . 'objects/user.php'; require_once $global['systemRootPath'] . 'objects/user.php';
if (!User::isAdmin()) { if (!User::isAdmin()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You are not admin")); forbiddenPage("You are not admin");
exit; exit;
} }
?> $_page = new Page(array('Bookmarks'));
<!DOCTYPE html> $_page->loadBasicCSSAndJS();
<html lang="<?php echo getLanguage(); ?>">
<head>
<?php
echo getHTMLTitle( __("Bookmarks"));
?>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
?>
<link rel="stylesheet" type="text/css" href="<?php echo getCDN(); ?>view/css/DataTables/datatables.min.css"/>
<style>
</style>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
?> ?>
<div class="container"> <div class="container">
<div class="panel panel-default"> <div class="panel panel-default">
@ -42,8 +27,5 @@ if (!User::isAdmin()) {
</div> </div>
</div> </div>
<?php <?php
include $global['systemRootPath'] . 'view/include/footer.php'; $_page->print();
?> ?>
<script type="text/javascript" src="<?php echo getURL('view/css/DataTables/datatables.min.js'); ?>"></script>
</body>
</html>

View file

@ -34,7 +34,7 @@
evt.preventDefault(); evt.preventDefault();
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/Bookmark/page/bookmarkSave.json.php', url: webSiteRootURL+'plugin/Bookmark/page/bookmarkSave.json.php',
data: $('#bookmarkForm').serializeArray(), data: $('#bookmarkForm').serializeArray(),
type: 'post', type: 'post',
success: function (response) { success: function (response) {

View file

@ -45,7 +45,7 @@
console.log(data); console.log(data);
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/Bookmark/page/bookmarkDelete.json.php', url: webSiteRootURL+'plugin/Bookmark/page/bookmarkDelete.json.php',
data: {'id': data.id}, data: {'id': data.id},
type: 'post', type: 'post',
success: function (response) { success: function (response) {

View file

@ -1,19 +1,12 @@
<?php <?php
require_once '../../videos/configuration.php'; require_once '../../videos/configuration.php';
if (!User::isLogged()) { if (!User::isLogged()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); forbiddenPage("You can not do this");
exit; exit;
} }
$obj = AVideoPlugin::getObjectData("BulkEmbed"); $obj = AVideoPlugin::getObjectData("BulkEmbed");
?>
<!DOCTYPE html> $_page = new Page(array('Search'));
<html lang="<?php echo getLanguage(); ?>">
<head>
<?php
echo getHTMLTitle( __("Search"));
?>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
?> ?>
<style> <style>
#custom-search-input { #custom-search-input {
@ -47,28 +40,34 @@ $obj = AVideoPlugin::getObjectData("BulkEmbed");
#custom-search-input .glyphicon-search { #custom-search-input .glyphicon-search {
font-size: 23px; font-size: 23px;
} }
#results li { #results li {
padding: 10px 0; padding: 10px 0;
border-bottom: 1px dotted #ccc; border-bottom: 1px dotted #ccc;
list-style: none; list-style: none;
overflow: auto; overflow: auto;
} }
.list-left { .list-left {
float: left; float: left;
width: 20%; width: 20%;
} }
.list-left img { .list-left img {
width: 100%; width: 100%;
padding: 3px; padding: 3px;
border: 1px solid #ccc; border: 1px solid #ccc;
} }
.list-right { .list-right {
float: right; float: right;
width: 78%; width: 78%;
} }
.list-right h3 { .list-right h3 {
margin: 0; margin: 0;
} }
.list-right p { .list-right p {
margin: 0; margin: 0;
} }
@ -92,11 +91,6 @@ $obj = AVideoPlugin::getObjectData("BulkEmbed");
cursor: pointer; cursor: pointer;
} }
</style> </style>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
?>
<div class="container"> <div class="container">
<div class="panel panel-default"> <div class="panel panel-default">
@ -129,11 +123,7 @@ $obj = AVideoPlugin::getObjectData("BulkEmbed");
</div> </div>
</div> </div>
</div> </div>
<?php
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script> <script>
var gapikey = '<?php echo $obj->API_KEY; ?>'; var gapikey = '<?php echo $obj->API_KEY; ?>';
var playListName = ''; var playListName = '';
@ -182,8 +172,11 @@ $obj = AVideoPlugin::getObjectData("BulkEmbed");
}); });
} }
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/BulkEmbed/save.json.php', url: webSiteRootURL + 'plugin/BulkEmbed/save.json.php',
data: {"itemsToSave": itemsToSave, playListName: playListName}, data: {
"itemsToSave": itemsToSave,
playListName: playListName
},
type: 'post', type: 'post',
success: function(response) { success: function(response) {
if (!response.error) { if (!response.error) {
@ -245,7 +238,8 @@ $obj = AVideoPlugin::getObjectData("BulkEmbed");
part: 'snippet', part: 'snippet',
key: gapikey, key: gapikey,
id: playListId id: playListId
}, function (data) { },
function(data) {
playListName = data.items[0].snippet.title; playListName = data.items[0].snippet.title;
$.get( $.get(
"https://www.googleapis.com/youtube/v3/playlistItems", { "https://www.googleapis.com/youtube/v3/playlistItems", {
@ -257,7 +251,8 @@ $obj = AVideoPlugin::getObjectData("BulkEmbed");
videoEmbeddable: "true", videoEmbeddable: "true",
videoSyndicated: "true", videoSyndicated: "true",
playlistId: playListId playlistId: playListId
}, function (data) { },
function(data) {
processData(data); processData(data);
}); });
}); });
@ -273,7 +268,8 @@ $obj = AVideoPlugin::getObjectData("BulkEmbed");
maxResults: 50, maxResults: 50,
videoSyndicated: "true", videoSyndicated: "true",
videoEmbeddable: "true" videoEmbeddable: "true"
}, function (data) { },
function(data) {
processData(data); processData(data);
}); });
} }
@ -324,7 +320,8 @@ $obj = AVideoPlugin::getObjectData("BulkEmbed");
key: gapikey, key: gapikey,
maxResults: 50, maxResults: 50,
videoEmbeddable: "true" videoEmbeddable: "true"
}, function (data) { },
function(data) {
var nextPageToken = data.nextPageToken; var nextPageToken = data.nextPageToken;
var prevPageToken = data.prevPageToken; var prevPageToken = data.prevPageToken;
@ -371,7 +368,8 @@ $obj = AVideoPlugin::getObjectData("BulkEmbed");
key: gapikey, key: gapikey,
maxResults: 50, maxResults: 50,
videoEmbeddable: "true" videoEmbeddable: "true"
}, function (data) { },
function(data) {
var nextPageToken = data.nextPageToken; var nextPageToken = data.nextPageToken;
var prevPageToken = data.prevPageToken; var prevPageToken = data.prevPageToken;
@ -447,5 +445,7 @@ $obj = AVideoPlugin::getObjectData("BulkEmbed");
return btnoutput; return btnoutput;
} }
</script> </script>
</body>
</html> <?php
$_page->print();
?>

View file

@ -12,18 +12,7 @@ if (!Video::canEdit($videos_id)) {
} }
$video = Video::getVideoLight($videos_id); $video = Video::getVideoLight($videos_id);
?> $_page = new Page(array('Move Storage'));
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo $config->getWebSiteTitle(); ?> :: Move Storage</title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
?> ?>
<div class="container-fluid"> <div class="container-fluid">
<?php <?php
@ -36,7 +25,5 @@ $video = Video::getVideoLight($videos_id);
?> ?>
</div> </div>
<?php <?php
include $global['systemRootPath'] . 'view/include/footer.php'; $_page->print();
?> ?>
</body>
</html>

View file

@ -26,15 +26,10 @@ $height = 'calc(50vh - 50px)';
if (count($downloadOptions) == 1) { if (count($downloadOptions) == 1) {
$height = 'calc(100vh - 50px)'; $height = 'calc(100vh - 50px)';
} }
$_page = new Page(array('Download Video'));
$_page->setExtraScripts(array('view/js/script.download.js'));
?> ?>
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo $config->getWebSiteTitle(); ?> :: Download Video</title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
?>
<style> <style>
#downloadButtons .btn { #downloadButtons .btn {
height: <?php echo $height; ?>; height: <?php echo $height; ?>;
@ -47,12 +42,6 @@ if (count($downloadOptions) == 1) {
padding-top: 15vh; padding-top: 15vh;
} }
</style> </style>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
?>
<div class="container-fluid"> <div class="container-fluid">
<div id="downloadButtons"> <div id="downloadButtons">
<?php <?php
@ -94,8 +83,6 @@ if (count($downloadOptions) == 1) {
} }
</script> </script>
<?php <?php
include $global['systemRootPath'] . 'view/include/footer.php';
if ($count == 1) { if ($count == 1) {
?> ?>
<script> <script>
@ -106,7 +93,6 @@ if (count($downloadOptions) == 1) {
<?php <?php
} }
?> ?>
<script src="<?php echo getURL('view/js/script.download.js'); ?>" type="text/javascript"></script> <?php
</body> $_page->print();
?>
</html>

View file

@ -7,26 +7,23 @@ if (!isset($global['systemRootPath'])) {
$plugin = AVideoPlugin::loadPluginIfEnabled('CloneSite'); $plugin = AVideoPlugin::loadPluginIfEnabled('CloneSite');
if (!User::isAdmin()) { if (!User::isAdmin()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); forbiddenPage("You can not do this");
exit; exit;
} }
?> $_page = new Page(array('Clone Site'));
<!DOCTYPE html> $_page->setExtraScripts(
<html lang="<?php echo getLanguage(); ?>"> array(
<head> 'view/css/DataTables/datatables.min.js',
<?php 'view/js/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js'
echo getHTMLTitle(__("Clone Site")); )
?> );
<?php $_page->setExtraStyles(
include $global['systemRootPath'] . 'view/include/head.php'; array(
?> 'view/css/DataTables/datatables.min.css',
<link rel="stylesheet" type="text/css" href="<?php echo getCDN(); ?>view/css/DataTables/datatables.min.css"/> 'view/js/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css'
</head> )
<body class="<?php echo $global['bodyClass']; ?>"> );
<?php ?><div class="container">
include $global['systemRootPath'] . 'view/include/navbar.php';
?>
<div class="container">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
<i class="fas fa-clone"></i> <?php echo __("Manage Clones"); ?> <i class="fas fa-clone"></i> <?php echo __("Manage Clones"); ?>
@ -65,22 +62,20 @@ if (!User::isAdmin()) {
</button> </button>
</div> </div>
</div> </div>
<?php
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script type="text/javascript" src="<?php echo getURL('view/css/DataTables/datatables.min.js'); ?>"></script>
<script type="text/javascript"> <script type="text/javascript">
$(document).ready(function() { $(document).ready(function() {
var tableLinks = $('#campaignTable').DataTable({ var tableLinks = $('#campaignTable').DataTable({
"ajax": "<?php echo $global['webSiteRootURL']; ?>plugin/CloneSite/clones.json.php", "ajax": "<?php echo $global['webSiteRootURL']; ?>plugin/CloneSite/clones.json.php",
"columns": [ "columns": [{
{"data": "url"}, "data": "url"
{"data": "key"}, },
{"data": "last_clone_request"}, {
"data": "key"
},
{
"data": "last_clone_request"
},
{ {
data: 'status', data: 'status',
"render": function(data, type, full, meta) { "render": function(data, type, full, meta) {
@ -158,9 +153,8 @@ modal.showPleaseWait();
} }
}); });
}); });
}); });
</script> </script>
</body> <?php
</html> $_page->print();
?>

View file

@ -105,7 +105,7 @@ if (!User::isAdmin()) {
$(document).ready(function () { $(document).ready(function () {
$('#addCategories_has_users_groupsBtn').click(function () { $('#addCategories_has_users_groupsBtn').click(function () {
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/CustomizeUser/View/addCategories_has_users_groupsVideo.php', url: webSiteRootURL+'plugin/CustomizeUser/View/addCategories_has_users_groupsVideo.php',
data: $('#panelCategories_has_users_groupsForm').serialize(), data: $('#panelCategories_has_users_groupsForm').serialize(),
type: 'post', type: 'post',
success: function (response) { success: function (response) {
@ -145,7 +145,7 @@ if (!User::isAdmin()) {
e.preventDefault(); e.preventDefault();
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/CustomizeUser/View/Categories_has_users_groups/add.json.php', url: webSiteRootURL+'plugin/CustomizeUser/View/Categories_has_users_groups/add.json.php',
data: $('#panelCategories_has_users_groupsForm').serialize(), data: $('#panelCategories_has_users_groupsForm').serialize(),
type: 'post', type: 'post',
success: function (response) { success: function (response) {

View file

@ -4,7 +4,7 @@ if (!isset($global['systemRootPath'])) {
require_once '../../videos/configuration.php'; require_once '../../videos/configuration.php';
} }
if (!User::isAdmin()) { if (!User::isAdmin()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); forbiddenPage("You can not do this");
exit; exit;
} }

View file

@ -4,7 +4,7 @@ if (!isset($global['systemRootPath'])) {
require_once '../../videos/configuration.php'; require_once '../../videos/configuration.php';
} }
if (!User::isAdmin()) { if (!User::isAdmin()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); forbiddenPage("You can not do this");
exit; exit;
} }
?> ?>
@ -124,7 +124,7 @@ if (!User::isAdmin()) {
$(document).ready(function () { $(document).ready(function () {
$('#addUsers_affiliationsBtn').click(function () { $('#addUsers_affiliationsBtn').click(function () {
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/CustomizeUser/View/addUsers_affiliationsVideo.php', url: webSiteRootURL+'plugin/CustomizeUser/View/addUsers_affiliationsVideo.php',
data: $('#panelUsers_affiliationsForm').serialize(), data: $('#panelUsers_affiliationsForm').serialize(),
type: 'post', type: 'post',
success: function (response) { success: function (response) {
@ -167,7 +167,7 @@ if (!User::isAdmin()) {
e.preventDefault(); e.preventDefault();
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/CustomizeUser/View/Users_affiliations/add.json.php', url: webSiteRootURL+'plugin/CustomizeUser/View/Users_affiliations/add.json.php',
data: $('#panelUsers_affiliationsForm').serialize(), data: $('#panelUsers_affiliationsForm').serialize(),
type: 'post', type: 'post',
success: function (response) { success: function (response) {

View file

@ -153,7 +153,7 @@ if (!User::isAdmin()) {
}); });
$('#addUsers_extra_infoBtn').click(function () { $('#addUsers_extra_infoBtn').click(function () {
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/CustomizeUser/View/addUsers_extra_infoVideo.php', url: webSiteRootURL+'plugin/CustomizeUser/View/addUsers_extra_infoVideo.php',
data: $('#panelUsers_extra_infoForm').serialize(), data: $('#panelUsers_extra_infoForm').serialize(),
type: 'post', type: 'post',
success: function (response) { success: function (response) {
@ -199,7 +199,7 @@ if (!User::isAdmin()) {
e.preventDefault(); e.preventDefault();
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/CustomizeUser/View/Users_extra_info/add.json.php', url: webSiteRootURL+'plugin/CustomizeUser/View/Users_extra_info/add.json.php',
data: $('#panelUsers_extra_infoForm').serialize(), data: $('#panelUsers_extra_infoForm').serialize(),
type: 'post', type: 'post',
success: function (response) { success: function (response) {

View file

@ -4,20 +4,8 @@ if (!User::isAdmin()) {
forbiddenPage("Must be admin"); forbiddenPage("Must be admin");
} }
AVideoPlugin::loadPlugin("CustomizeUser"); AVideoPlugin::loadPlugin("CustomizeUser");
?> $_page = new Page(array('Customize User'));
<!DOCTYPE html> $_page->loadBasicCSSAndJS();
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo $config->getWebSiteTitle(); ?> :: CustomizeUser</title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
?>
<link rel="stylesheet" type="text/css" href="<?php echo getCDN(); ?>view/css/DataTables/datatables.min.css"/>
<link href="<?php echo getCDN(); ?>view/js/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css"/>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
?> ?>
<div class="container-fluid"> <div class="container-fluid">
<div class="panel panel-default"> <div class="panel panel-default">
@ -48,10 +36,6 @@ AVideoPlugin::loadPlugin("CustomizeUser");
</div> </div>
</div> </div>
</div> </div>
<script type="text/javascript" src="<?php echo getURL('view/css/DataTables/datatables.min.js'); ?>"></script>
<script src="<?php echo getCDN(); ?>js/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js" type="text/javascript"></script>
<?php <?php
include $global['systemRootPath'] . 'view/include/footer.php'; $_page->print();
?> ?>
</body>
</html>

View file

@ -94,7 +94,7 @@
var data = Users_affiliationstableVar.row(tr).data(); var data = Users_affiliationstableVar.row(tr).data();
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/CustomizeUser/View/Users_affiliations/confirm.json.php', url: webSiteRootURL+'plugin/CustomizeUser/View/Users_affiliations/confirm.json.php',
data: {id: data.id, confirm: confirm}, data: {id: data.id, confirm: confirm},
type: 'post', type: 'post',
success: function (response) { success: function (response) {
@ -108,7 +108,7 @@
$(document).ready(function () { $(document).ready(function () {
$('#addUsers_affiliationsBtn').click(function () { $('#addUsers_affiliationsBtn').click(function () {
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/CustomizeUser/View/addUsers_affiliationsVideo.php', url: webSiteRootURL+'plugin/CustomizeUser/View/addUsers_affiliationsVideo.php',
data: $('#panelUsers_affiliationsForm').serialize(), data: $('#panelUsers_affiliationsForm').serialize(),
type: 'post', type: 'post',
success: function (response) { success: function (response) {
@ -164,7 +164,7 @@ echo 'var sendConfirmationCancelButton = row.company_agree_date && row.affiliate
e.preventDefault(); e.preventDefault();
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/CustomizeUser/View/Users_affiliations/add.json.php', url: webSiteRootURL+'plugin/CustomizeUser/View/Users_affiliations/add.json.php',
data: $('#panelUsers_affiliationsForm').serialize(), data: $('#panelUsers_affiliationsForm').serialize(),
type: 'post', type: 'post',
success: function (response) { success: function (response) {

View file

@ -118,7 +118,7 @@ if ($obj->allowWalletDirectTransferDonation && !empty($video['users_id']) && cla
function submitDonation<?php echo $uid; ?>() { function submitDonation<?php echo $uid; ?>() {
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/CustomizeUser/donate.json.php', url: webSiteRootURL+'plugin/CustomizeUser/donate.json.php',
data: { data: {
"value": $('#donationValue<?php echo $uid; ?>').val(), "value": $('#donationValue<?php echo $uid; ?>').val(),
"videos_id": <?php echo intval(@$video['id']); ?>, "videos_id": <?php echo intval(@$video['id']); ?>,
@ -144,7 +144,7 @@ if ($obj->allowWalletDirectTransferDonation && !empty($video['users_id']) && cla
function submitDonationButton<?php echo $uid; ?>(buttonIndex) { function submitDonationButton<?php echo $uid; ?>(buttonIndex) {
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/CustomizeUser/donate.json.php', url: webSiteRootURL+'plugin/CustomizeUser/donate.json.php',
data: { data: {
"buttonIndex": buttonIndex, "buttonIndex": buttonIndex,
"videos_id": <?php echo intval(@$video['id']); ?>, "videos_id": <?php echo intval(@$video['id']); ?>,

View file

@ -9,21 +9,18 @@ if (!empty($images->posterPortrait) && !ImagesPlaceHolders::isDefaultImage($imag
$imgw = 1280; $imgw = 1280;
$imgh = 720; $imgh = 720;
$ogURL = Video::getLinkToVideo($video['id'], $video['clean_title'], false, false); $ogURL = Video::getLinkToVideo($video['id'], $video['clean_title'], false, false);
?> $_page = new Page(array('Confirm Password'));
<!DOCTYPE html> $_page->setIncludeNavbar(false);
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo __("Confirm Password") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
?> ?>
<style> <style>
body { body {
padding-top: 0; padding-top: 0;
} }
footer { footer {
display: none; display: none;
} }
#bg { #bg {
position: fixed; position: fixed;
width: 100%; width: 100%;
@ -31,14 +28,10 @@ $ogURL = Video::getLinkToVideo($video['id'], $video['clean_title'], false,false)
background-image: url('<?php echo $images->poster; ?>'); background-image: url('<?php echo $images->poster; ?>');
background-size: cover; background-size: cover;
opacity: 0.3; opacity: 0.3;
filter: alpha(opacity=30); /* For IE8 and earlier */ filter: alpha(opacity=30);
/* For IE8 and earlier */
} }
</style> </style>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
//include $global['systemRootPath'] . 'view/include/navbar.php';
?>
<div id="bg"></div> <div id="bg"></div>
<!-- Modal --> <!-- Modal -->
@ -92,13 +85,11 @@ $ogURL = Video::getLinkToVideo($video['id'], $video['clean_title'], false,false)
</div> </div>
</div> </div>
<?php
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script type="text/javascript"> <script type="text/javascript">
$(window).on('load', function() { $(window).on('load', function() {
$('#myModal').modal('show'); $('#myModal').modal('show');
}); });
</script> </script>
</body> <?php
</html> $_page->print();
?>

View file

@ -20,18 +20,7 @@ if (empty($sources)) {
forbiddenPage("Empty sources"); forbiddenPage("Empty sources");
} }
//var_dump($sources); //var_dump($sources);
?> $_page = new Page(array('Customize User'));
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo $config->getWebSiteTitle(); ?> :: CustomizeUser</title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
?> ?>
<div class="container-fluid"> <div class="container-fluid">
<div class="panel panel-default"> <div class="panel panel-default">
@ -65,7 +54,5 @@ if (empty($sources)) {
</div> </div>
</div> </div>
<?php <?php
include $global['systemRootPath'] . 'view/include/footer.php'; $_page->print();
?> ?>
</body>
</html>

View file

@ -9,16 +9,8 @@ if (empty($users_id)) {
forbiddenPage('Empty users_id'); forbiddenPage('Empty users_id');
} }
$pass = User::getProfilePassword($users_id); $pass = User::getProfilePassword($users_id);
$_page = new Page(array('Set Password'));
?> ?>
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo __("Set Password"); ?></title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
<?php <?php
@ -37,9 +29,6 @@ $pass = User::getProfilePassword($users_id);
</button> </button>
</div> </div>
</div> </div>
<?php
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script type="text/javascript"> <script type="text/javascript">
function setSubscribers() { function setSubscribers() {
modal.showPleaseWait(); modal.showPleaseWait();
@ -63,5 +52,6 @@ $pass = User::getProfilePassword($users_id);
}); });
}); });
</script> </script>
</body> <?php
</html> $_page->print();
?>

View file

@ -9,16 +9,10 @@ if (empty($users_id)) {
forbiddenPage('Empty users_id'); forbiddenPage('Empty users_id');
} }
$count = User::getExtraSubscribers($users_id); $count = User::getExtraSubscribers($users_id);
$_page = new Page(array('Set subscribers'));
?> ?>
<!DOCTYPE html> <div class="container">
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo __("Set subscribers"); ?></title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
<?php <?php
@ -35,9 +29,6 @@ $count = User::getExtraSubscribers($users_id);
</button> </button>
</div> </div>
</div> </div>
<?php
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script type="text/javascript"> <script type="text/javascript">
function setSubscribers() { function setSubscribers() {
modal.showPleaseWait(); modal.showPleaseWait();
@ -55,5 +46,7 @@ $count = User::getExtraSubscribers($users_id);
}); });
} }
</script> </script>
</body> </div>
</html> <?php
$_page->print();
?>

View file

@ -10,7 +10,7 @@ $uid = uniqid();
$('#switch<?php echo $uid; ?>').change(function (e) { $('#switch<?php echo $uid; ?>').change(function (e) {
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/CustomizeUser/set.json.php', url: webSiteRootURL+'plugin/CustomizeUser/set.json.php',
data: {"type": "userCanAllowFilesDownload", "value": $('#switch<?php echo $uid; ?>').is(":checked")}, data: {"type": "userCanAllowFilesDownload", "value": $('#switch<?php echo $uid; ?>').is(":checked")},
type: 'post', type: 'post',
success: function (response) { success: function (response) {

View file

@ -10,7 +10,7 @@ $uid = uniqid();
$('#switch<?php echo $uid; ?>').change(function (e) { $('#switch<?php echo $uid; ?>').change(function (e) {
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/CustomizeUser/set.json.php', url: webSiteRootURL+'plugin/CustomizeUser/set.json.php',
data: {"type": "userCanAllowFilesShare", "value": $('#switch<?php echo $uid; ?>').is(":checked")}, data: {"type": "userCanAllowFilesShare", "value": $('#switch<?php echo $uid; ?>').is(":checked")},
type: 'post', type: 'post',
success: function (response) { success: function (response) {

View file

@ -1,19 +1,6 @@
<?php <?php
require_once '../../../videos/configuration.php'; require_once '../../../videos/configuration.php';
?> $_page = new Page(array('Animations'));
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<?php
echo getHTMLTitle(__("Animations"));
?>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
?> ?>
<div class="container-fluid"> <div class="container-fluid">
<div class="row"> <div class="row">
@ -30,7 +17,5 @@ require_once '../../../videos/configuration.php';
</div> </div>
</div> </div>
<?php <?php
include $global['systemRootPath'] . 'view/include/footer.php'; $_page->print();
?> ?>
</body>
</html>

View file

@ -28,21 +28,18 @@ if (!empty($_REQUEST['live_schedule'])) {
} }
$imgw = 640; $imgw = 640;
$imgh = 360; $imgh = 360;
?> $_page = new Page(array('Confirm Password'));
<!DOCTYPE html> $_page->setIncludeNavbar(false);
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo __("Confirm Password"); ?></title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
?> ?>
<style> <style>
body { body {
padding-top: 0; padding-top: 0;
} }
footer { footer {
display: none; display: none;
} }
#bg { #bg {
position: fixed; position: fixed;
width: 100%; width: 100%;
@ -50,11 +47,10 @@ $imgh = 360;
background-image: url('<?php echo $img; ?>'); background-image: url('<?php echo $img; ?>');
background-size: cover; background-size: cover;
opacity: 0.3; opacity: 0.3;
filter: alpha(opacity=30); /* For IE8 and earlier */ filter: alpha(opacity=30);
/* For IE8 and earlier */
} }
</style> </style>
</head>
<body>
<div id="bg"></div> <div id="bg"></div>
<!-- Modal --> <!-- Modal -->
@ -108,13 +104,11 @@ $imgh = 360;
</div> </div>
</div> </div>
<?php
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script type="text/javascript"> <script type="text/javascript">
$(window).on('load', function() { $(window).on('load', function() {
$('#myModal').modal('show'); $('#myModal').modal('show');
}); });
</script> </script>
</body> <?php
</html> $_page->print();
?>

View file

@ -113,53 +113,18 @@ if (!empty($chat2) && !empty($chat2->useStaticLayout)) {
} }
*/ */
$global['doNotLoadPlayer'] = 1; $global['doNotLoadPlayer'] = 1;
?>
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head> $_page = new Page(array('Live'));
<title><?php echo __("Live") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title> $_page->setExtraScripts(
<?php array(
include $global['systemRootPath'] . 'view/include/head.php'; 'view/js/bootstrap-fileinput/js/fileinput.min.js',
?> )
<link href="<?php echo getURL('view/js/bootstrap-fileinput/css/fileinput.min.css'); ?>" rel="stylesheet" type="text/css" /> );
<script src="<?php echo getURL('view/js/bootstrap-fileinput/js/fileinput.min.js'); ?>" type="text/javascript"></script> $_page->setExtraStyles(
<style> array(
.krajee-default.file-preview-frame .kv-file-content { 'view/js/bootstrap-fileinput/css/fileinput.min.css',
width: auto; )
height: auto; );
}
#live .panel-body {
height: calc(100vh - 220px);
}
#live .panel-body>div,
#mainVideo {
height: -webkit-fill-available;
width: -webkit-fill-available;
}
<?php
/*
if (AVideoPlugin::isEnabledByName('Chat2')) {
?>
@media (max-width: 769px) {
#live .panel-body {
height: calc(50vh - 200px);
}
}
<?php
}
*
*/
?>
</style>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
?> ?>
<div class="container-fluid"> <div class="container-fluid">
@ -269,9 +234,6 @@ $global['doNotLoadPlayer'] = 1;
</div> </div>
</div> </div>
<?php
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script> <script>
var flashvars = { var flashvars = {
server: "<?php echo Live::getRTMPLinkWithOutKeyFromKey($trasnmition['key']); ?>", server: "<?php echo Live::getRTMPLinkWithOutKeyFromKey($trasnmition['key']); ?>",
@ -289,7 +251,7 @@ $global['doNotLoadPlayer'] = 1;
}); });
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/Live/saveLive.php', url: webSiteRootURL+'plugin/Live/saveLive.php',
data: { data: {
"title": $('#title').val(), "title": $('#title').val(),
"description": $('#description').val(), "description": $('#description').val(),
@ -333,7 +295,6 @@ $global['doNotLoadPlayer'] = 1;
?> ?>
}); });
</script> </script>
</body> <?php
$_page->print();
</html> ?>
<?php include_once $global['systemRootPath'] . 'objects/include_end.php'; ?>

View file

@ -14,13 +14,8 @@ $ls = new Live_schedule($_REQUEST['live_schedule_id']);
$liveImg = Live_schedule::getPosterURL($_REQUEST['live_schedule_id']); $liveImg = Live_schedule::getPosterURL($_REQUEST['live_schedule_id']);
$liveInfo = Live::getInfo($ls->getKey(), $ls->getLive_servers_id()); $liveInfo = Live::getInfo($ls->getKey(), $ls->getLive_servers_id());
?> $_page = new Page(array('Remind me'));
<!DOCTYPE html> //$_page->setIncludeNavbar(false);
<html lang="<?php echo getLanguage(); ?>">
<head>
<title>Remind me</title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
?> ?>
<style> <style>
.schedulePoster { .schedulePoster {
@ -29,8 +24,6 @@ $liveInfo = Live::getInfo($ls->getKey(), $ls->getLive_servers_id());
padding: 0 10px 0 0; padding: 0 10px 0 0;
} }
</style> </style>
</head>
<body style="padding: 0 10px;">
<div class="container-fluid"> <div class="container-fluid">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading clearfix"> <div class="panel-heading clearfix">
@ -62,7 +55,5 @@ $liveInfo = Live::getInfo($ls->getKey(), $ls->getLive_servers_id());
</div> </div>
</div> </div>
<?php <?php
include $global['systemRootPath'] . 'view/include/footer.php'; $_page->print();
?> ?>
</body>
</html>

View file

@ -7,14 +7,7 @@ if (!isset($global['systemRootPath'])) {
if (!Live::canRestream()) { if (!Live::canRestream()) {
forbiddenPage('You cannot restream'); forbiddenPage('You cannot restream');
} }
?> $_page = new Page(array('Active Lives'));
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo __("Live") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
//include $global['systemRootPath'] . 'plugin/Live/view/{$classname}/index_head.php';
?> ?>
<style> <style>
#livesRestreamList .livesRestreamStatus.inactive .hideWhenInactive, #livesRestreamList .livesRestreamStatus.inactive .hideWhenInactive,
@ -29,11 +22,6 @@ if (!Live::canRestream()) {
display: inline-flex; display: inline-flex;
} }
</style> </style>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
?>
<div class="container-fluid"> <div class="container-fluid">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
@ -68,15 +56,8 @@ if (!Live::canRestream()) {
</button> </button>
</div> </div>
</div> </div>
</div> </div>
<?php
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script> <script>
var activeLiveTemplate = <?php echo json_encode(file_get_contents($global['systemRootPath'] . 'plugin/Live/view/getActiveLives.template.html')); ?>; var activeLiveTemplate = <?php echo json_encode(file_get_contents($global['systemRootPath'] . 'plugin/Live/view/getActiveLives.template.html')); ?>;
var activeLiveRestreamTemplate = <?php echo json_encode(file_get_contents($global['systemRootPath'] . 'plugin/Live/view/getActiveLivesRestreams.template.html')); ?>; var activeLiveRestreamTemplate = <?php echo json_encode(file_get_contents($global['systemRootPath'] . 'plugin/Live/view/getActiveLivesRestreams.template.html')); ?>;
@ -108,7 +89,6 @@ if (!Live::canRestream()) {
}); });
} }
function getActiveLives() { function getActiveLives() {
var url = webSiteRootURL + 'plugin/Live/view/getActiveLives.json.php'; var url = webSiteRootURL + 'plugin/Live/view/getActiveLives.json.php';
//modal.showPleaseWait(); //modal.showPleaseWait();
@ -166,6 +146,7 @@ if (!Live::canRestream()) {
} }
var checkIfRestreamIsActiveTimeout = []; var checkIfRestreamIsActiveTimeout = [];
function checkIfRestreamIsActive(live_transmitions_history_id, restreams_id) { function checkIfRestreamIsActive(live_transmitions_history_id, restreams_id) {
var live_restream_id = live_transmitions_history_id + '_' + restreams_id; var live_restream_id = live_transmitions_history_id + '_' + restreams_id;
clearTimeout(checkIfRestreamIsActiveTimeout[live_restream_id]); clearTimeout(checkIfRestreamIsActiveTimeout[live_restream_id]);
@ -201,15 +182,19 @@ if (!Live::canRestream()) {
function setRestreamHasNoLog(live_transmitions_history_id, restreams_id) { function setRestreamHasNoLog(live_transmitions_history_id, restreams_id) {
removeAllClassesAndAdd(live_transmitions_history_id, restreams_id, 'hasNoLog'); removeAllClassesAndAdd(live_transmitions_history_id, restreams_id, 'hasNoLog');
} }
function setRestreamHasLog(live_transmitions_history_id, restreams_id) { function setRestreamHasLog(live_transmitions_history_id, restreams_id) {
removeAllClassesAndAdd(live_transmitions_history_id, restreams_id, 'hasLog'); removeAllClassesAndAdd(live_transmitions_history_id, restreams_id, 'hasLog');
} }
function setRestreamLogLoading(live_transmitions_history_id, restreams_id) { function setRestreamLogLoading(live_transmitions_history_id, restreams_id) {
removeAllClassesAndAdd(live_transmitions_history_id, restreams_id, 'loading'); removeAllClassesAndAdd(live_transmitions_history_id, restreams_id, 'loading');
} }
function setRestreamLogActive(live_transmitions_history_id, restreams_id) { function setRestreamLogActive(live_transmitions_history_id, restreams_id) {
removeAllClassesAndAdd(live_transmitions_history_id, restreams_id, 'active'); removeAllClassesAndAdd(live_transmitions_history_id, restreams_id, 'active');
} }
function setRestreamLogInactive(live_transmitions_history_id, restreams_id) { function setRestreamLogInactive(live_transmitions_history_id, restreams_id) {
removeAllClassesAndAdd(live_transmitions_history_id, restreams_id, 'inactive'); removeAllClassesAndAdd(live_transmitions_history_id, restreams_id, 'inactive');
} }
@ -225,5 +210,6 @@ if (!Live::canRestream()) {
} }
} }
</script> </script>
</body> <?php
</html> $_page->print();
?>

View file

@ -4,7 +4,7 @@ if (!isset($global['systemRootPath'])) {
require_once '../../videos/configuration.php'; require_once '../../videos/configuration.php';
} }
if (!User::isAdmin()) { if (!User::isAdmin()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); forbiddenPage("You can not do this");
exit; exit;
} }

View file

@ -4,7 +4,7 @@ if (!isset($global['systemRootPath'])) {
require_once '../../videos/configuration.php'; require_once '../../videos/configuration.php';
} }
if (!User::isAdmin()) { if (!User::isAdmin()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); forbiddenPage("You can not do this");
exit; exit;
} }
?> ?>
@ -119,7 +119,7 @@ if (!User::isAdmin()) {
$(document).ready(function () { $(document).ready(function () {
$('#addLive_restreamsBtn').click(function () { $('#addLive_restreamsBtn').click(function () {
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/Live/view/addLive_restreamsVideo.php', url: webSiteRootURL+'plugin/Live/view/addLive_restreamsVideo.php',
data: $('#panelLive_restreamsForm').serialize(), data: $('#panelLive_restreamsForm').serialize(),
type: 'post', type: 'post',
success: function (response) { success: function (response) {
@ -161,7 +161,7 @@ if (!User::isAdmin()) {
e.preventDefault(); e.preventDefault();
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/Live/view/Live_restreams/add.json.php', url: webSiteRootURL+'plugin/Live/view/Live_restreams/add.json.php',
data: $('#panelLive_restreamsForm').serialize(), data: $('#panelLive_restreamsForm').serialize(),
type: 'post', type: 'post',
success: function (response) { success: function (response) {

View file

@ -4,7 +4,7 @@ if (!isset($global['systemRootPath'])) {
require_once '../../../../videos/configuration.php'; require_once '../../../../videos/configuration.php';
} }
if (!User::isAdmin()) { if (!User::isAdmin()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); forbiddenPage("You can not do this");
exit; exit;
} }

View file

@ -4,7 +4,7 @@ if (!isset($global['systemRootPath'])) {
require_once '../../videos/configuration.php'; require_once '../../videos/configuration.php';
} }
if (!User::isAdmin()) { if (!User::isAdmin()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); forbiddenPage("You can not do this");
exit; exit;
} }
?> ?>

View file

@ -4,7 +4,7 @@ if (!isset($global['systemRootPath'])) {
require_once '../../videos/configuration.php'; require_once '../../videos/configuration.php';
} }
if (!User::isAdmin()) { if (!User::isAdmin()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); forbiddenPage("You can not do this");
exit; exit;
} }

View file

@ -4,7 +4,7 @@ if (!isset($global['systemRootPath'])) {
require_once '../../videos/configuration.php'; require_once '../../videos/configuration.php';
} }
if (!User::isAdmin()) { if (!User::isAdmin()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); forbiddenPage("You can not do this");
exit; exit;
} }
?> ?>
@ -178,7 +178,7 @@ if (!User::isAdmin()) {
$(document).ready(function () { $(document).ready(function () {
$('#addLive_scheduleBtn').click(function () { $('#addLive_scheduleBtn').click(function () {
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/Live/view/addLive_scheduleVideo.php', url: webSiteRootURL+'plugin/Live/view/addLive_scheduleVideo.php',
data: $('#panelLive_scheduleForm').serialize(), data: $('#panelLive_scheduleForm').serialize(),
type: 'post', type: 'post',
success: function (response) { success: function (response) {
@ -226,7 +226,7 @@ if (!User::isAdmin()) {
e.preventDefault(); e.preventDefault();
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/Live/view/Live_schedule/add.json.php', url: webSiteRootURL+'plugin/Live/view/Live_schedule/add.json.php',
data: $('#panelLive_scheduleForm').serialize(), data: $('#panelLive_scheduleForm').serialize(),
type: 'post', type: 'post',
success: function (response) { success: function (response) {

View file

@ -8,20 +8,7 @@ if (!User::canStream()) {
exit; exit;
} }
?> $_page = new Page(array('Live'));
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo $config->getWebSiteTitle(); ?> :: Live</title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
include $global['systemRootPath'] . 'plugin/Live/view/Live_schedule/panel.php'; include $global['systemRootPath'] . 'plugin/Live/view/Live_schedule/panel.php';
include $global['systemRootPath'] . 'view/include/footer.php'; $_page->print();
?> ?>
</body>
</html>

View file

@ -33,18 +33,7 @@ $image_postroll = getURL($poster);
$defaultTIme = 30; $defaultTIme = 30;
$defaultCloseTIme = 10; $defaultCloseTIme = 10;
?> $_page = new Page(array('Upload Poster'));
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo $config->getWebSiteTitle(); ?> :: Upload Poster</title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
?> ?>
<div class="container-fluid"> <div class="container-fluid">
<div class="row"> <div class="row">
@ -156,13 +145,10 @@ $defaultCloseTIme = 10;
</div> </div>
</div> </div>
</div> </div>
<?php
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script> <script>
var closeWindowAfterImageSave = false; var closeWindowAfterImageSave = false;
var posterType = 0; var posterType = 0;
function <?php echo $callBackJSFunction; ?>(image) { function <?php echo $callBackJSFunction; ?>(image) {
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
@ -243,5 +229,3 @@ echo $croppie1['restartCroppie'] . "(imageToRelaod);";
}); });
}); });
</script> </script>
</body>
</html>

View file

@ -4,7 +4,7 @@ if (!isset($global['systemRootPath'])) {
require_once '../../videos/configuration.php'; require_once '../../videos/configuration.php';
} }
if (!User::isAdmin()) { if (!User::isAdmin()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); forbiddenPage("You can not do this");
exit; exit;
} }

View file

@ -4,7 +4,7 @@ if (!isset($global['systemRootPath'])) {
require_once '../../videos/configuration.php'; require_once '../../videos/configuration.php';
} }
if (!User::isAdmin()) { if (!User::isAdmin()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); forbiddenPage("You can not do this");
exit; exit;
} }
$obj = AVideoPlugin::getObjectData("Live"); $obj = AVideoPlugin::getObjectData("Live");
@ -197,7 +197,7 @@ $obj = AVideoPlugin::getObjectData("Live");
$(document).ready(function() { $(document).ready(function() {
$('#addLiveBtn').click(function() { $('#addLiveBtn').click(function() {
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/Live/view/addLive_serversVideo.php', url: webSiteRootURL+'plugin/Live/view/addLive_serversVideo.php',
data: $('#panelLive_serversForm').serialize(), data: $('#panelLive_serversForm').serialize(),
type: 'post', type: 'post',
success: function(response) { success: function(response) {
@ -244,7 +244,7 @@ $obj = AVideoPlugin::getObjectData("Live");
e.preventDefault(); e.preventDefault();
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/Live/view/Live_servers/add.json.php', url: webSiteRootURL+'plugin/Live/view/Live_servers/add.json.php',
data: $('#panelLive_serversForm').serialize(), data: $('#panelLive_serversForm').serialize(),
type: 'post', type: 'post',
success: function(response) { success: function(response) {

View file

@ -1,20 +1,8 @@
<?php <?php
require_once '../../../videos/configuration.php'; require_once '../../../videos/configuration.php';
AVideoPlugin::loadPlugin("Live"); AVideoPlugin::loadPlugin("Live");
?> $_page = new Page(array('Live'));
<!DOCTYPE html> $_page->loadBasicCSSAndJS();
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo __("Live") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
?>
<link rel="stylesheet" type="text/css" href="<?php echo getCDN(); ?>view/css/DataTables/datatables.min.css"/>
<link href="<?php echo getCDN(); ?>view/js/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css"/>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
?> ?>
<div class="container-fluid"> <div class="container-fluid">
<div class="panel panel-default"> <div class="panel panel-default">
@ -49,10 +37,6 @@ AVideoPlugin::loadPlugin("Live");
</div> </div>
</div> </div>
</div> </div>
<script type="text/javascript" src="<?php echo getURL('view/css/DataTables/datatables.min.js'); ?>"></script>
<script src="<?php echo getCDN(); ?>js/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js" type="text/javascript"></script>
<?php <?php
include $global['systemRootPath'] . 'view/include/footer.php'; $_page->print();
?> ?>
</body>
</html>

View file

@ -109,25 +109,19 @@ if (isHTMLEmpty($sideAd)) {
} }
// to fix the unfinished lives // to fix the unfinished lives
$liveInfo = Live::getInfo($livet['key'], Live::getLiveServersIdRequest()); $liveInfo = Live::getInfo($livet['key'], Live::getLiveServersIdRequest());
?> $_page = new Page(array('Live'));
<!DOCTYPE html> $_page->setExtraScripts(
<html lang="<?php echo getLanguage(); ?>"> array(
'view/js/webui-popover/jquery.webui-popover.min.js',
<head> 'view/js/bootstrap-list-filter/bootstrap-list-filter.min.js'
<title><?php echo $liveTitle . $config->getPageTitleSeparator() . __("Live") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title> )
<link href="<?php echo getURL('node_modules/video.js/dist/video-js.min.css'); ?>" rel="stylesheet" type="text/css" /> );
<link href="<?php echo getCDN(); ?>js/webui-popover/jquery.webui-popover.min.css" rel="stylesheet" type="text/css" /> $_page->setExtraStyles(
<?php array(
include $global['systemRootPath'] . 'view/include/head.php'; 'node_modules/video.js/dist/video-js.min.css',
?> 'view/js/webui-popover/jquery.webui-popover.min.css'
<?php )
//echo AVideoPlugin::getHeadCode(); );
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
?> ?>
<!-- Live modeYoutubeLive.php --> <!-- Live modeYoutubeLive.php -->
<div class="container-fluid principalContainer" style="padding: 0; overflow: hidden;" id="modeYoutubePrincipal"> <div class="container-fluid principalContainer" style="padding: 0; overflow: hidden;" id="modeYoutubePrincipal">
@ -249,15 +243,7 @@ $liveInfo = Live::getInfo($livet['key'], Live::getLiveServersIdRequest());
<?php <?php
include $global['systemRootPath'] . 'view/include/video.min.js.php'; include $global['systemRootPath'] . 'view/include/video.min.js.php';
echo AVideoPlugin::afterVideoJS(); echo AVideoPlugin::afterVideoJS();
include $global['systemRootPath'] . 'view/include/footer.php';
?> ?>
<script src="<?php echo getURL('js/webui-popover/jquery.webui-popover.min.js'); ?>" type="text/javascript"></script>
<script src="<?php echo getURL('js/bootstrap-list-filter/bootstrap-list-filter.min.js'); ?>" type="text/javascript"></script>
</body>
</html>
<?php <?php
include $global['systemRootPath'] . 'objects/include_end.php'; $_page->print();
?> ?>

View file

@ -6,18 +6,7 @@ $plugin = AVideoPlugin::loadPluginIfEnabled('LiveLinks');
if (empty($plugin) || !$plugin->canAddLinks()) { if (empty($plugin) || !$plugin->canAddLinks()) {
forbiddenPage(__("You can not do this")); forbiddenPage(__("You can not do this"));
} }
?> $_page = new Page(array('Live Links'));
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo __("Live Links") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
?> ?>
<div class="container"> <div class="container">
<?php <?php
@ -25,7 +14,5 @@ if (empty($plugin) || !$plugin->canAddLinks()) {
?> ?>
</div> </div>
<?php <?php
include $global['systemRootPath'] . 'view/include/footer.php'; $_page->print();
?> ?>
</body>
</html>

View file

@ -88,23 +88,10 @@ if (isHTMLEmpty($sideAd)) {
$modeYoutubeBottomClass1 = "col-sm-12 col-md-12 col-lg-10"; $modeYoutubeBottomClass1 = "col-sm-12 col-md-12 col-lg-10";
$modeYoutubeBottomClass2 = "hidden "; $modeYoutubeBottomClass2 = "hidden ";
} }
$_page = new Page(array('Live Links'));
$_page->setExtraStyles(array('node_modules/video.js/dist/video-js.min.css'));
$_page->setExtraScripts(array('node_modules/videojs-contrib-ads/dist/videojs.ads.min.js'));
?> ?>
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo $t['title'] . $config->getPageTitleSeparator() . __("Live Links") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
<link href="<?php echo getURL('node_modules/video.js/dist/video-js.min.css'); ?>" rel="stylesheet" type="text/css"/>
<link href="<?php echo getURL('node_modules/videojs-contrib-ads/dist/videojs.ads.min.js'); ?>" rel="stylesheet" type="text/css"/>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
?>
<!-- LiveLinks Live.php -->
<div class="container-fluid principalContainer" style="padding: 0;overflow: hidden;" id="modeYoutubePrincipal"> <div class="container-fluid principalContainer" style="padding: 0;overflow: hidden;" id="modeYoutubePrincipal">
<?php <?php
if (!$isCompressed) { if (!$isCompressed) {
@ -211,18 +198,11 @@ if (isHTMLEmpty($sideAd)) {
</div> </div>
<div class="col-lg-1"></div> <div class="col-lg-1"></div>
</div> </div>
</div> </div>
<?php <?php
include $global['systemRootPath'] . 'view/include/video.min.js.php'; include $global['systemRootPath'] . 'view/include/video.min.js.php';
echo AVideoPlugin::afterVideoJS(); echo AVideoPlugin::afterVideoJS();
include $global['systemRootPath'] . 'view/include/footer.php';
?> ?>
</body>
</html>
<?php <?php
include $global['systemRootPath'] . 'objects/include_end.php'; $_page->print();
?> ?>

View file

@ -175,7 +175,7 @@
e.preventDefault(); e.preventDefault();
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/LiveLinks/view/addLiveLink.php', url: webSiteRootURL+'plugin/LiveLinks/view/addLiveLink.php',
data: $('#liveLinksForm').serialize(), data: $('#liveLinksForm').serialize(),
type: 'post', type: 'post',
success: function (response) { success: function (response) {

View file

@ -4,7 +4,7 @@ if (!isset($global['systemRootPath'])) {
require_once '../../videos/configuration.php'; require_once '../../videos/configuration.php';
} }
if (!User::isAdmin()) { if (!User::isAdmin()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); forbiddenPage("You can not do this");
exit; exit;
} }

View file

@ -4,7 +4,7 @@ if (!isset($global['systemRootPath'])) {
require_once '../../videos/configuration.php'; require_once '../../videos/configuration.php';
} }
if (!User::isAdmin()) { if (!User::isAdmin()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); forbiddenPage("You can not do this");
exit; exit;
} }
?> ?>
@ -126,7 +126,7 @@ if (!User::isAdmin()) {
$(document).ready(function () { $(document).ready(function () {
$('#addlogincontrol_historyBtn').click(function () { $('#addlogincontrol_historyBtn').click(function () {
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/LoginControl/View/addlogincontrol_historyVideo.php', url: webSiteRootURL+'plugin/LoginControl/View/addlogincontrol_historyVideo.php',
data: $('#panellogincontrol_historyForm').serialize(), data: $('#panellogincontrol_historyForm').serialize(),
type: 'post', type: 'post',
success: function (response) { success: function (response) {
@ -168,7 +168,7 @@ if (!User::isAdmin()) {
e.preventDefault(); e.preventDefault();
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/LoginControl/View/Users_login_history/add.json.php', url: webSiteRootURL+'plugin/LoginControl/View/Users_login_history/add.json.php',
data: $('#panellogincontrol_historyForm').serialize(), data: $('#panellogincontrol_historyForm').serialize(),
type: 'post', type: 'post',
success: function (response) { success: function (response) {

View file

@ -1,20 +1,8 @@
<?php <?php
require_once '../../../videos/configuration.php'; require_once '../../../videos/configuration.php';
AVideoPlugin::loadPlugin("LoginControl"); AVideoPlugin::loadPlugin("LoginControl");
?> $_page = new Page(array('Login Control'));
<!DOCTYPE html> $_page->loadBasicCSSAndJS();
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo __("Login Control") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
?>
<link rel="stylesheet" type="text/css" href="<?php echo getCDN(); ?>view/css/DataTables/datatables.min.css"/>
<link href="<?php echo getCDN(); ?>view/js/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css"/>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
?> ?>
<div class="container-fluid"> <div class="container-fluid">
<div class="panel panel-default"> <div class="panel panel-default">
@ -37,10 +25,6 @@ AVideoPlugin::loadPlugin("LoginControl");
</div> </div>
</div> </div>
</div> </div>
<script type="text/javascript" src="<?php echo getURL('view/css/DataTables/datatables.min.js'); ?>"></script>
<script src="<?php echo getCDN(); ?>js/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js" type="text/javascript"></script>
<?php <?php
include $global['systemRootPath'] . 'view/include/footer.php'; $_page->print();
?> ?>
</body>
</html>

View file

@ -11,21 +11,9 @@ if (empty($users_id)) {
forbiddenPage('Empty user ID'); forbiddenPage('Empty user ID');
} }
?> $_page = new Page(array("Login History"));
<!DOCTYPE html>
<html>
<head>
<title><?php echo __("Login History"); ?></title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
?>
</head>
<body>
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
?> ?>
<div class="container-fluid"> <div class="container-fluid">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading tabbable-line"> <div class="panel-heading tabbable-line">
<?php <?php
@ -38,15 +26,12 @@ if (empty($users_id)) {
?> ?>
</div> </div>
</div> </div>
</div> </div>
<?php
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script> <script>
$(document).ready(function() { $(document).ready(function() {
$('#loginHistory').addClass('in'); $('#loginHistory').addClass('in');
}); });
</script> </script>
</body> <?php
</html> $_page->print();
?>

View file

@ -1,20 +1,8 @@
<?php <?php
require_once dirname(__FILE__) . '/../../../videos/configuration.php'; require_once dirname(__FILE__) . '/../../../videos/configuration.php';
AVideoPlugin::loadPlugin("LoginControl"); AVideoPlugin::loadPlugin("LoginControl");
$_page = new Page(array('PGP Challenge'));
?> ?>
<!DOCTYPE html>
<html>
<head>
<title><?php echo __("PGP Challenge"); ?></title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
?>
<br>
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-sm-6"> <div class="col-sm-6">
@ -52,9 +40,6 @@ AVideoPlugin::loadPlugin("LoginControl");
</div> </div>
</div> </div>
</div> </div>
<?php
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script> <script>
function checkCode() { function checkCode() {
modal.showPleaseWait(); modal.showPleaseWait();
@ -75,6 +60,7 @@ AVideoPlugin::loadPlugin("LoginControl");
} }
}); });
} }
function decryptMessage() { function decryptMessage() {
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
@ -98,5 +84,6 @@ AVideoPlugin::loadPlugin("LoginControl");
}); });
} }
</script> </script>
</body> <?php
</html> $_page->print();
?>

View file

@ -3,13 +3,8 @@ require_once '../../../videos/configuration.php';
AVideoPlugin::loadPlugin("LoginControl"); AVideoPlugin::loadPlugin("LoginControl");
require_once $global['systemRootPath'] . 'plugin/LoginControl/pgp/functions.php'; require_once $global['systemRootPath'] . 'plugin/LoginControl/pgp/functions.php';
?> AVideoPlugin::loadPlugin("LoginControl");
<!DOCTYPE html> $_page = new Page(array('PGP Keys'));
<html>
<head>
<title><?php echo __("PGP Keys"); ?></title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
?> ?>
<style> <style>
.monospacedKey { .monospacedKey {
@ -17,12 +12,6 @@ require_once $global['systemRootPath'] . 'plugin/LoginControl/pgp/functions.php'
font-size: 0.8em; font-size: 0.8em;
} }
</style> </style>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
?>
<br>
<div class="container-fluid"> <div class="container-fluid">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading tabbable-line"> <div class="panel-heading tabbable-line">
@ -67,7 +56,5 @@ require_once $global['systemRootPath'] . 'plugin/LoginControl/pgp/functions.php'
</div> </div>
</div> </div>
<?php <?php
include $global['systemRootPath'] . 'view/include/footer.php'; $_page->print();
?> ?>
</body>
</html>

View file

@ -10,7 +10,7 @@ $uid = uniqid();
$('#switch<?php echo $uid; ?>').change(function (e) { $('#switch<?php echo $uid; ?>').change(function (e) {
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/LoginControl/set.json.php', url: webSiteRootURL+'plugin/LoginControl/set.json.php',
data: {"type": "set2FA", "value": $('#switch<?php echo $uid; ?>').is(":checked")}, data: {"type": "set2FA", "value": $('#switch<?php echo $uid; ?>').is(":checked")},
type: 'post', type: 'post',
success: function (response) { success: function (response) {

View file

@ -4,7 +4,7 @@ if (!isset($global['systemRootPath'])) {
require_once '../../videos/configuration.php'; require_once '../../videos/configuration.php';
} }
if (!User::isAdmin()) { if (!User::isAdmin()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); forbiddenPage("You can not do this");
exit; exit;
} }

View file

@ -4,7 +4,7 @@ if (!isset($global['systemRootPath'])) {
require_once '../../videos/configuration.php'; require_once '../../videos/configuration.php';
} }
if (!User::isAdmin()) { if (!User::isAdmin()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); forbiddenPage("You can not do this");
exit; exit;
} }
?> ?>
@ -113,7 +113,7 @@ if (!User::isAdmin()) {
$(document).ready(function () { $(document).ready(function () {
$('#addMeet_join_logBtn').click(function () { $('#addMeet_join_logBtn').click(function () {
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/Meet/View/addMeet_join_logVideo.php', url: webSiteRootURL+'plugin/Meet/View/addMeet_join_logVideo.php',
data: $('#panelMeet_join_logForm').serialize(), data: $('#panelMeet_join_logForm').serialize(),
type: 'post', type: 'post',
success: function (response) { success: function (response) {
@ -152,7 +152,7 @@ if (!User::isAdmin()) {
e.preventDefault(); e.preventDefault();
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/Meet/View/Meet_join_log/add.json.php', url: webSiteRootURL+'plugin/Meet/View/Meet_join_log/add.json.php',
data: $('#panelMeet_join_logForm').serialize(), data: $('#panelMeet_join_logForm').serialize(),
type: 'post', type: 'post',
success: function (response) { success: function (response) {

View file

@ -4,7 +4,7 @@ if (!isset($global['systemRootPath'])) {
require_once '../../videos/configuration.php'; require_once '../../videos/configuration.php';
} }
if (!User::isAdmin()) { if (!User::isAdmin()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); forbiddenPage("You can not do this");
exit; exit;
} }

View file

@ -4,7 +4,7 @@ if (!isset($global['systemRootPath'])) {
require_once '../../videos/configuration.php'; require_once '../../videos/configuration.php';
} }
if (!User::isAdmin()) { if (!User::isAdmin()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); forbiddenPage("You can not do this");
exit; exit;
} }
?> ?>
@ -153,7 +153,7 @@ if (!User::isAdmin()) {
$(document).ready(function () { $(document).ready(function () {
$('#addMeet_scheduleBtn').click(function () { $('#addMeet_scheduleBtn').click(function () {
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/Meet/View/addMeet_scheduleVideo.php', url: webSiteRootURL+'plugin/Meet/View/addMeet_scheduleVideo.php',
data: $('#panelMeet_scheduleForm').serialize(), data: $('#panelMeet_scheduleForm').serialize(),
type: 'post', type: 'post',
success: function (response) { success: function (response) {
@ -199,7 +199,7 @@ if (!User::isAdmin()) {
e.preventDefault(); e.preventDefault();
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/Meet/View/Meet_schedule/add.json.php', url: webSiteRootURL+'plugin/Meet/View/Meet_schedule/add.json.php',
data: $('#panelMeet_scheduleForm').serialize(), data: $('#panelMeet_scheduleForm').serialize(),
type: 'post', type: 'post',
success: function (response) { success: function (response) {

View file

@ -4,7 +4,7 @@ if (!isset($global['systemRootPath'])) {
require_once '../../videos/configuration.php'; require_once '../../videos/configuration.php';
} }
if (!User::isAdmin()) { if (!User::isAdmin()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); forbiddenPage("You can not do this");
exit; exit;
} }

View file

@ -4,7 +4,7 @@ if (!isset($global['systemRootPath'])) {
require_once '../../videos/configuration.php'; require_once '../../videos/configuration.php';
} }
if (!User::isAdmin()) { if (!User::isAdmin()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); forbiddenPage("You can not do this");
exit; exit;
} }
?> ?>
@ -99,7 +99,7 @@ $('#Meet_schedule_has_users_groupsusers_groups_id').val('');
$(document).ready(function () { $(document).ready(function () {
$('#addMeet_schedule_has_users_groupsBtn').click(function () { $('#addMeet_schedule_has_users_groupsBtn').click(function () {
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/Meet/View/addMeet_schedule_has_users_groupsVideo.php', url: webSiteRootURL+'plugin/Meet/View/addMeet_schedule_has_users_groupsVideo.php',
data: $('#panelMeet_schedule_has_users_groupsForm').serialize(), data: $('#panelMeet_schedule_has_users_groupsForm').serialize(),
type: 'post', type: 'post',
success: function (response) { success: function (response) {
@ -136,7 +136,7 @@ $('#Meet_schedule_has_users_groupsusers_groups_id').val('');
e.preventDefault(); e.preventDefault();
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/Meet/View/Meet_schedule_has_users_groups/add.json.php', url: webSiteRootURL+'plugin/Meet/View/Meet_schedule_has_users_groups/add.json.php',
data: $('#panelMeet_schedule_has_users_groupsForm').serialize(), data: $('#panelMeet_schedule_has_users_groupsForm').serialize(),
type: 'post', type: 'post',
success: function (response) { success: function (response) {

View file

@ -1,20 +1,8 @@
<?php <?php
require_once '../../../videos/configuration.php'; require_once '../../../videos/configuration.php';
AVideoPlugin::loadPlugin("Meet"); AVideoPlugin::loadPlugin("Meet");
?> $_page = new Page(array('Meet'));
<!DOCTYPE html> $_page->loadBasicCSSAndJS();
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo __("Meet") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
?>
<link rel="stylesheet" type="text/css" href="<?php echo getCDN(); ?>view/css/DataTables/datatables.min.css"/>
<link href="<?php echo getCDN(); ?>view/js/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css"/>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
?> ?>
<div class="container-fluid"> <div class="container-fluid">
<div class="panel panel-default"> <div class="panel panel-default">
@ -49,10 +37,6 @@ AVideoPlugin::loadPlugin("Meet");
</div> </div>
</div> </div>
</div> </div>
<script type="text/javascript" src="<?php echo getURL('view/css/DataTables/datatables.min.js'); ?>"></script>
<script src="<?php echo getCDN(); ?>js/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js" type="text/javascript"></script>
<?php <?php
include $global['systemRootPath'] . 'view/include/footer.php'; $_page->print();
?> ?>
</body>
</html>

View file

@ -13,7 +13,7 @@ if (empty($obj)) {
} }
if (!User::isAdmin()) { if (!User::isAdmin()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); forbiddenPage("You can not do this");
exit; exit;
} }
@ -26,19 +26,7 @@ $m = AVideoPlugin::loadPlugin("Meet");
$emptyObject = $m->getEmptyDataObject(); $emptyObject = $m->getEmptyDataObject();
$timeouts = 2000; $timeouts = 2000;
?> $_page = new Page(array('Check Meet Servers'));
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo __("Check Meet Servers") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
?> ?>
<div class="container-fluid"> <div class="container-fluid">
<div class="panel panel-default"> <div class="panel panel-default">
@ -161,12 +149,7 @@ $timeouts = 2000;
</div> </div>
</div> </div>
</div> </div>
<?php
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script> <script>
var roundedDecimals = 2; var roundedDecimals = 2;
var bytesInAKilobyte = 1024; var bytesInAKilobyte = 1024;
var tries = 1; var tries = 1;
@ -175,10 +158,18 @@ $timeouts = 2000;
function speed(bitsPerSecond) { function speed(bitsPerSecond) {
var Kbps = (bitsPerSecond / bytesInAKilobyte).toFixed(roundedDecimals); var Kbps = (bitsPerSecond / bytesInAKilobyte).toFixed(roundedDecimals);
if (Kbps <= 1) if (Kbps <= 1)
return {value: bitsPerSecond, units: "Bps"}; return {
value: bitsPerSecond,
units: "Bps"
};
var MBps = (Kbps / bytesInAKilobyte).toFixed(roundedDecimals); var MBps = (Kbps / bytesInAKilobyte).toFixed(roundedDecimals);
//if (MBps <= 1) //if (MBps <= 1)
return {value: Kbps, units: "Kbps", text: Kbps + " Kbps", bitsPerSecond: bitsPerSecond}; return {
value: Kbps,
units: "Kbps",
text: Kbps + " Kbps",
bitsPerSecond: bitsPerSecond
};
//else //else
//return {value: MBps, units: "MBps", text: MBps + " MBps", bitsPerSecond: bitsPerSecond}; //return {value: MBps, units: "MBps", text: MBps + " MBps", bitsPerSecond: bitsPerSecond};
} }
@ -279,23 +270,20 @@ $timeouts = 2000;
xhr.onreadystatechange = function(event) { xhr.onreadystatechange = function(event) {
if (xhr.readyState == 4) { if (xhr.readyState == 4) {
speed = Math.round(1024 / ((new Date() - startTime) / 1000)); speed = Math.round(1024 / ((new Date() - startTime) / 1000));
average == 0 average == 0 ?
? average = speed average = speed :
: average = Math.round((average + speed) / 2); average = Math.round((average + speed) / 2);
update(speed, average); update(speed, average);
index++; index++;
if (index == iterations) { if (index == iterations) {
window.clearInterval(timer); window.clearInterval(timer);
} };
; };
}
;
}; };
xhr.open('POST', url, true); xhr.open('POST', url, true);
startTime = new Date(); startTime = new Date();
xhr.send(data); xhr.send(data);
} };
;
function getRandomString(sizeInMb) { function getRandomString(sizeInMb) {
var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789~!@#$%^&*()_+`-=[]\{}|;':,./<>?", //random data prevents gzip effect var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789~!@#$%^&*()_+`-=[]\{}|;':,./<>?", //random data prevents gzip effect
@ -303,11 +291,9 @@ $timeouts = 2000;
result = ''; result = '';
for (var index = 0; index < iterations; index++) { for (var index = 0; index < iterations; index++) {
result += chars.charAt(Math.floor(Math.random() * chars.length)); result += chars.charAt(Math.floor(Math.random() * chars.length));
} };
;
return result; return result;
} };
;
} }
function runAll(server) { function runAll(server) {
@ -383,5 +369,6 @@ foreach ($emptyObject->server->type as $key => $value) {
}); });
</script> </script>
</div> </div>
</body> <?php
</html> $_page->print();
?>

View file

@ -12,21 +12,19 @@ $meet = new Meet_schedule($meet_schedule_id);
$img = User::getBackgroundURLFromUserID($meet->getUsers_id()); $img = User::getBackgroundURLFromUserID($meet->getUsers_id());
$photo = User::getPhoto($meet->getUsers_id()); $photo = User::getPhoto($meet->getUsers_id());
$_page = new Page(array('Confirm Meet Password'));
$_page->setIncludeNavbar(false);
?> ?>
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo __("Confirm Meet Password") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
?>
<style> <style>
body { body {
padding-top: 0; padding-top: 0;
} }
footer { footer {
display: none; display: none;
} }
#bg { #bg {
position: fixed; position: fixed;
width: 100%; width: 100%;
@ -34,20 +32,15 @@ $photo = User::getPhoto($meet->getUsers_id());
background-image: url('<?php echo $global['webSiteRootURL'], $img; ?>'); background-image: url('<?php echo $global['webSiteRootURL'], $img; ?>');
background-size: cover; background-size: cover;
opacity: 0.3; opacity: 0.3;
filter: alpha(opacity=30); /* For IE8 and earlier */ filter: alpha(opacity=30);
/* For IE8 and earlier */
} }
</style> </style>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
//include $global['systemRootPath'] . 'view/include/navbar.php';
?>
<div id="bg"></div> <div id="bg"></div>
<!-- Modal --> <!-- Modal -->
<div id="myModal" class="modal fade in" role="dialog"> <div id="myModal" class="modal fade in" role="dialog">
<div class="modal-dialog"> <div class="modal-dialog">
<!-- Modal content--> <!-- Modal content-->
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">
@ -93,13 +86,11 @@ $photo = User::getPhoto($meet->getUsers_id());
</div> </div>
</div> </div>
<?php
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script type="text/javascript"> <script type="text/javascript">
$(window).on('load', function() { $(window).on('load', function() {
$('#myModal').modal('show'); $('#myModal').modal('show');
}); });
</script> </script>
</body> <?php
</html> $_page->print();
?>

View file

@ -20,18 +20,9 @@ if (User::isAdmin() && !empty($_GET['newServer'])) {
$p = AVideoPlugin::loadPluginIfEnabled("Meet"); $p = AVideoPlugin::loadPluginIfEnabled("Meet");
$p->setDataObjectParameter("server->value", preg_replace("/[^0-1a-z.]/i", "", $_GET['newServer'])); $p->setDataObjectParameter("server->value", preg_replace("/[^0-1a-z.]/i", "", $_GET['newServer']));
} }
$_page = new Page(array('Meet'));
$_page->loadBasicCSSAndJS();
?> ?>
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo __("Meet") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
?>
<link rel="stylesheet" type="text/css" href="<?php echo getCDN(); ?>view/css/DataTables/datatables.min.css" />
<link href="<?php echo getCDN(); ?>view/js/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css" />
<style> <style>
.serverLabels { .serverLabels {
padding-bottom: 15px; padding-bottom: 15px;
@ -49,12 +40,6 @@ if (User::isAdmin() && !empty($_GET['newServer'])) {
margin-bottom: 0; margin-bottom: 0;
} }
</style> </style>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
?>
<div class="container-fluid"> <div class="container-fluid">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
@ -105,14 +90,7 @@ if (User::isAdmin() && !empty($_GET['newServer'])) {
</div> </div>
</div> </div>
</div> </div>
</div>
<script type="text/javascript" src="<?php echo getURL('view/css/DataTables/datatables.min.js'); ?>"></script>
<script src="<?php echo getCDN(); ?>js/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js" type="text/javascript"></script>
<?php
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script> <script>
var serverLabelsRequestTime; var serverLabelsRequestTime;
$(document).ready(function() { $(document).ready(function() {
@ -153,7 +131,6 @@ if (User::isAdmin() && !empty($_GET['newServer'])) {
}); });
var serverLabelsStartTime; var serverLabelsStartTime;
var serverLabelsRunning = false; var serverLabelsRunning = false;
function serverLabels() { function serverLabels() {
if (serverLabelsRunning) { if (serverLabelsRunning) {
return false; return false;
@ -161,7 +138,7 @@ if (User::isAdmin() && !empty($_GET['newServer'])) {
serverLabelsRunning = true; serverLabelsRunning = true;
serverLabelsStartTime = new Date().getTime(); serverLabelsStartTime = new Date().getTime();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/Meet/serverLabels.php?<?php echo $userCredentials; ?>', url: webSiteRootURL+'plugin/Meet/serverLabels.php?<?php echo $userCredentials; ?>',
success: function(response) { success: function(response) {
setTimeout(function() { setTimeout(function() {
serverLabelsRunning = false; serverLabelsRunning = false;
@ -171,8 +148,6 @@ if (User::isAdmin() && !empty($_GET['newServer'])) {
} }
}); });
} }
<?php <?php
if (User::canCreateMeet()) { if (User::canCreateMeet()) {
?> ?>
@ -222,6 +197,6 @@ if (User::isAdmin() && !empty($_GET['newServer'])) {
} }
?> ?>
</script> </script>
</body> <?php
$_page->print();
</html> ?>

View file

@ -13,7 +13,7 @@ if (empty($obj)) {
} }
if (!User::isLogged()) { if (!User::isLogged()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); forbiddenPage("You can not do this");
exit; exit;
} }
$userCredentials = User::loginFromRequestToGet(); $userCredentials = User::loginFromRequestToGet();

View file

@ -13,7 +13,7 @@ if (empty($obj)) {
} }
if (!User::canCreateMeet()) { if (!User::canCreateMeet()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); forbiddenPage("You can not do this");
exit; exit;
} }
$userCredentials = User::loginFromRequestToGet(); $userCredentials = User::loginFromRequestToGet();
@ -154,7 +154,7 @@ $userCredentials = User::loginFromRequestToGet();
e.preventDefault(); e.preventDefault();
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/Meet/saveMeet.json.php?<?php echo $userCredentials; ?>', url: webSiteRootURL+'plugin/Meet/saveMeet.json.php?<?php echo $userCredentials; ?>',
data: $('#formMeetManager').serialize(), data: $('#formMeetManager').serialize(),
type: 'post', type: 'post',
success: function (response) { success: function (response) {

View file

@ -1,21 +1,7 @@
<?php <?php
require_once '../../../videos/configuration.php'; require_once '../../../videos/configuration.php';
AVideoPlugin::loadPlugin("VideosStatistics"); AVideoPlugin::loadPlugin("VideosStatistics");
?> $_page = new Page(array('Monetize user'));
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo $config->getWebSiteTitle(); ?></title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
include $global['systemRootPath'] . 'plugin/MonetizeUsers/View/report.php'; include $global['systemRootPath'] . 'plugin/MonetizeUsers/View/report.php';
$_page->print();
include $global['systemRootPath'] . 'view/include/footer.php';
?> ?>
</body>
</html>

View file

@ -4,7 +4,7 @@ if (!isset($global['systemRootPath'])) {
require_once '../../videos/configuration.php'; require_once '../../videos/configuration.php';
} }
if (!User::isAdmin()) { if (!User::isAdmin()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); forbiddenPage("You can not do this");
exit; exit;
} }

View file

@ -4,7 +4,7 @@ if (!isset($global['systemRootPath'])) {
require_once '../../videos/configuration.php'; require_once '../../videos/configuration.php';
} }
if (!User::isAdmin()) { if (!User::isAdmin()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); forbiddenPage("You can not do this");
exit; exit;
} }
?> ?>
@ -115,7 +115,7 @@ if (!User::isAdmin()) {
$(document).ready(function () { $(document).ready(function () {
$('#addPayPalYPT_logBtn').click(function () { $('#addPayPalYPT_logBtn').click(function () {
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/PayPalYPT/View/addPayPalYPT_logVideo.php', url: webSiteRootURL+'plugin/PayPalYPT/View/addPayPalYPT_logVideo.php',
data: $('#panelPayPalYPT_logForm').serialize(), data: $('#panelPayPalYPT_logForm').serialize(),
type: 'post', type: 'post',
success: function (response) { success: function (response) {
@ -156,7 +156,7 @@ if (!User::isAdmin()) {
e.preventDefault(); e.preventDefault();
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/PayPalYPT/View/PayPalYPT_log/add.json.php', url: webSiteRootURL+'plugin/PayPalYPT/View/PayPalYPT_log/add.json.php',
data: $('#panelPayPalYPT_logForm').serialize(), data: $('#panelPayPalYPT_logForm').serialize(),
type: 'post', type: 'post',
success: function (response) { success: function (response) {

View file

@ -1,20 +1,8 @@
<?php <?php
require_once '../../../videos/configuration.php'; require_once '../../../videos/configuration.php';
AVideoPlugin::loadPlugin("PayPalYPT"); AVideoPlugin::loadPlugin("PayPalYPT");
?> $_page = new Page(array('PayPal'));
<!DOCTYPE html> $_page->loadBasicCSSAndJS();
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo $config->getWebSiteTitle(); ?> :: PayPalYPT</title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
?>
<link rel="stylesheet" type="text/css" href="<?php echo $global['webSiteRootURL']; ?>view/css/DataTables/datatables.min.css"/>
<link href="<?php echo $global['webSiteRootURL']; ?>view/js/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css"/>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
?> ?>
<div class="container-fluid"> <div class="container-fluid">
<div class="panel panel-default"> <div class="panel panel-default">
@ -37,10 +25,6 @@ AVideoPlugin::loadPlugin("PayPalYPT");
</div> </div>
</div> </div>
</div> </div>
<script type="text/javascript" src="<?php echo $global['webSiteRootURL']; ?>view/css/DataTables/datatables.min.js"></script>
<script src="<?php echo $global['webSiteRootURL']; ?>js/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js" type="text/javascript"></script>
<?php <?php
include $global['systemRootPath'] . 'view/include/footer.php'; $_page->print();
?> ?>
</body>
</html>

View file

@ -35,7 +35,7 @@ $uid = uniqid();
} }
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/PayPalYPT/savePayPalReceiverEmail.json.php', url: webSiteRootURL+'plugin/PayPalYPT/savePayPalReceiverEmail.json.php',
data: {"PayPalReceiverEmail": PayPalReceiverEmail}, data: {"PayPalReceiverEmail": PayPalReceiverEmail},
type: 'post', type: 'post',
success: function (response) { success: function (response) {

View file

@ -7,18 +7,7 @@ if (!User::isLogged()) {
forbiddenPage(); forbiddenPage();
} }
$rows = PayPalYPT::getAllLogsFromUser(User::getId()); $rows = PayPalYPT::getAllLogsFromUser(User::getId());
?> $_page = new Page(array('Paypal subscriptions'));
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<title>Paypal subscriptions</title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
?> ?>
<div class="container"> <div class="container">
@ -85,19 +74,17 @@ $rows = PayPalYPT::getAllLogsFromUser(User::getId());
</tfoot> </tfoot>
</table> </table>
</div> </div>
<?php
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script> <script>
$(document).ready(function() { $(document).ready(function() {
}); });
function cancelAgreement(agreement_id) { function cancelAgreement(agreement_id) {
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: webSiteRootURL + 'plugin/PayPalYPT/agreementCancel.json.php', url: webSiteRootURL + 'plugin/PayPalYPT/agreementCancel.json.php',
data: {agreement: agreement_id}, data: {
agreement: agreement_id
},
type: 'post', type: 'post',
success: function(response) { success: function(response) {
if (response.error) { if (response.error) {
@ -111,5 +98,6 @@ $rows = PayPalYPT::getAllLogsFromUser(User::getId());
}); });
} }
</script> </script>
</body> <?php
</html> $_page->print();
?>

View file

@ -4,7 +4,7 @@ if (!isset($global['systemRootPath'])) {
require_once '../../videos/configuration.php'; require_once '../../videos/configuration.php';
} }
if (!User::isAdmin()) { if (!User::isAdmin()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); forbiddenPage("You can not do this");
exit; exit;
} }

View file

@ -4,7 +4,7 @@ if (!isset($global['systemRootPath'])) {
require_once '../../videos/configuration.php'; require_once '../../videos/configuration.php';
} }
if (!User::isAdmin()) { if (!User::isAdmin()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); forbiddenPage("You can not do this");
exit; exit;
} }
?> ?>
@ -124,7 +124,7 @@ if (!User::isAdmin()) {
$(document).ready(function () { $(document).ready(function () {
$('#addUsers_groups_permissionsBtn').click(function () { $('#addUsers_groups_permissionsBtn').click(function () {
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/Permissions/View/addUsers_groups_permissionsVideo.php', url: webSiteRootURL+'plugin/Permissions/View/addUsers_groups_permissionsVideo.php',
data: $('#panelUsers_groups_permissionsForm').serialize(), data: $('#panelUsers_groups_permissionsForm').serialize(),
type: 'post', type: 'post',
success: function (response) { success: function (response) {
@ -164,7 +164,7 @@ if (!User::isAdmin()) {
e.preventDefault(); e.preventDefault();
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/Permissions/View/Users_groups_permissions/add.json.php', url: webSiteRootURL+'plugin/Permissions/View/Users_groups_permissions/add.json.php',
data: $('#panelUsers_groups_permissionsForm').serialize(), data: $('#panelUsers_groups_permissionsForm').serialize(),
type: 'post', type: 'post',
success: function (response) { success: function (response) {

View file

@ -1,20 +1,8 @@
<?php <?php
require_once '../../../videos/configuration.php'; require_once '../../../videos/configuration.php';
AVideoPlugin::loadPlugin("Permissions"); AVideoPlugin::loadPlugin("Permissions");
?> $_page = new Page(array('Permissions'));
<!DOCTYPE html> $_page->loadBasicCSSAndJS();
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo __("Permissions") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
?>
<link rel="stylesheet" type="text/css" href="<?php echo getCDN(); ?>view/css/DataTables/datatables.min.css"/>
<link href="<?php echo getCDN(); ?>view/js/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css"/>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
?> ?>
<div class="container-fluid"> <div class="container-fluid">
<div class="panel panel-default"> <div class="panel panel-default">
@ -37,10 +25,6 @@ AVideoPlugin::loadPlugin("Permissions");
</div> </div>
</div> </div>
</div> </div>
<script type="text/javascript" src="<?php echo getURL('view/css/DataTables/datatables.min.js'); ?>"></script>
<script src="<?php echo getCDN(); ?>js/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js" type="text/javascript"></script>
<?php <?php
include $global['systemRootPath'] . 'view/include/footer.php'; $_page->print();
?> ?>
</body>
</html>

View file

@ -82,7 +82,7 @@ $uid = uniqid();
console.log(users_groups_id, plugins_id, type); console.log(users_groups_id, plugins_id, type);
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/Permissions/setPermission.json.php', url: webSiteRootURL+'plugin/Permissions/setPermission.json.php',
data: {"users_groups_id": users_groups_id, "plugins_id": plugins_id, "type": type, "isEnabled": $('#pluginPermission'+users_groups_id+'<?php echo $uid; ?>_'+type).is(":checked")}, data: {"users_groups_id": users_groups_id, "plugins_id": plugins_id, "type": type, "isEnabled": $('#pluginPermission'+users_groups_id+'<?php echo $uid; ?>_'+type).is(":checked")},
type: 'post', type: 'post',
success: function (response) { success: function (response) {

View file

@ -4,7 +4,7 @@ if (!isset($global['systemRootPath'])) {
require_once '../../videos/configuration.php'; require_once '../../videos/configuration.php';
} }
if (!User::isAdmin()) { if (!User::isAdmin()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); forbiddenPage("You can not do this");
exit; exit;
} }

View file

@ -4,7 +4,7 @@ if (!isset($global['systemRootPath'])) {
require_once '../../videos/configuration.php'; require_once '../../videos/configuration.php';
} }
if (!User::isAdmin()) { if (!User::isAdmin()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); forbiddenPage("You can not do this");
exit; exit;
} }
?> ?>
@ -155,7 +155,7 @@ if (!User::isAdmin()) {
$(document).ready(function() { $(document).ready(function() {
$('#addPlaylists_schedulesBtn').click(function() { $('#addPlaylists_schedulesBtn').click(function() {
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/PlayLists/View/addPlaylists_schedulesVideo.php', url: webSiteRootURL+'plugin/PlayLists/View/addPlaylists_schedulesVideo.php',
data: $('#panelPlaylists_schedulesForm').serialize(), data: $('#panelPlaylists_schedulesForm').serialize(),
type: 'post', type: 'post',
success: function(response) { success: function(response) {
@ -221,7 +221,7 @@ if (!User::isAdmin()) {
e.preventDefault(); e.preventDefault();
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/PlayLists/View/Playlists_schedules/add.json.php', url: webSiteRootURL+'plugin/PlayLists/View/Playlists_schedules/add.json.php',
data: $('#panelPlaylists_schedulesForm').serialize(), data: $('#panelPlaylists_schedulesForm').serialize(),
type: 'post', type: 'post',
success: function(response) { success: function(response) {

View file

@ -215,7 +215,7 @@ $_page->setExtraScripts(
e.preventDefault(); e.preventDefault();
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/PlayLists/View/Playlists_schedules/add.json.php', url: webSiteRootURL+'plugin/PlayLists/View/Playlists_schedules/add.json.php',
data: $('#panelPlaylists_schedulesForm').serialize(), data: $('#panelPlaylists_schedulesForm').serialize(),
type: 'post', type: 'post',
success: function(response) { success: function(response) {

View file

@ -1,20 +1,8 @@
<?php <?php
require_once '../../../videos/configuration.php'; require_once '../../../videos/configuration.php';
AVideoPlugin::loadPlugin("PlayLists"); AVideoPlugin::loadPlugin("PlayLists");
?> $_page = new Page(array("PlayLists"));
<!DOCTYPE html> $_page->loadBasicCSSAndJS();
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo __("PlayLists") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
?>
<link rel="stylesheet" type="text/css" href="<?php echo getCDN(); ?>view/css/DataTables/datatables.min.css"/>
<link href="<?php echo getCDN(); ?>view/js/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css"/>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
?> ?>
<div class="container-fluid"> <div class="container-fluid">
<div class="panel panel-default"> <div class="panel panel-default">
@ -37,10 +25,6 @@ AVideoPlugin::loadPlugin("PlayLists");
</div> </div>
</div> </div>
</div> </div>
<script type="text/javascript" src="<?php echo getURL('view/css/DataTables/datatables.min.js'); ?>"></script>
<script src="<?php echo getCDN(); ?>js/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js" type="text/javascript"></script>
<?php <?php
include $global['systemRootPath'] . 'view/include/footer.php'; $_page->print();
?> ?>
</body>
</html>

View file

@ -2,16 +2,8 @@
if (!isset($global['systemRootPath'])) { if (!isset($global['systemRootPath'])) {
require_once '../../videos/configuration.php'; require_once '../../videos/configuration.php';
} }
$_page = new Page(array('EPG'));
?> ?>
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo __("EPG") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
<?php include $global['systemRootPath'] . 'view/include/head.php'; ?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php include $global['systemRootPath'] . 'view/include/navbar.php'; ?>
<div class="container-fluid"> <div class="container-fluid">
<?php <?php
$_REQUEST['site'] = get_domain($global['webSiteRootURL']); $_REQUEST['site'] = get_domain($global['webSiteRootURL']);
@ -22,12 +14,5 @@ if (!isset($global['systemRootPath'])) {
?> ?>
</div> </div>
<?php <?php
include $global['systemRootPath'] . 'view/include/footer.php'; $_page->print();
?> ?>
<script>
</script>
</body>
</html>
<?php include $global['systemRootPath'] . 'objects/include_end.php'; ?>

View file

@ -49,24 +49,15 @@ foreach ($playList as $key => $value) {
$videos[$key] = $value; $videos[$key] = $value;
$videos[$key]['id'] = $value['videos_id']; $videos[$key]['id'] = $value['videos_id'];
} }
$_page = new Page(array($playListObj->getName()));
$_page->setExtraStyles(array('view/css/social.css', 'plugin/Gallery/style.css'));
$_page->setExtraScripts(array('plugin/Gallery/script.js'));
?> ?>
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo $playListObj->getName() . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
<link href="<?php echo getURL('view/css/social.css'); ?>" rel="stylesheet" type="text/css"/>
<link href="<?php echo getURL('plugin/Gallery/style.css'); ?>" rel="stylesheet" type="text/css"/>
<script src="<?php echo getURL('plugin/Gallery/script.js'); ?>" type="text/javascript"></script>
<?php include $global['systemRootPath'] . 'view/include/head.php'; ?>
<style> <style>
.clearfix { .clearfix {
margin-bottom: 10px; margin-bottom: 10px;
} }
</style> </style>
</head>
<body class="<?php echo $global['bodyClass']; ?>" style="padding: 5px;">
<div class="container-fluid " style="overflow: hidden;"> <div class="container-fluid " style="overflow: hidden;">
<div class="gallery"> <div class="gallery">
<?php <?php
@ -79,9 +70,6 @@ foreach ($playList as $key => $value) {
} ?> } ?>
</div> </div>
</div> </div>
<?php
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script> <script>
$(document).ready(function() { $(document).ready(function() {
$('.galleryVideo a').click(function(event) { $('.galleryVideo a').click(function(event) {
@ -100,6 +88,6 @@ foreach ($playList as $key => $value) {
}); });
}); });
</script> </script>
</body> <?php
</html> $_page->print();
<?php include $global['systemRootPath'] . 'objects/include_end.php'; ?> ?>

View file

@ -1,348 +0,0 @@
<?php
if (!isset($global['systemRootPath'])) {
require_once '../../videos/configuration.php';
}
$isSerie = 1;
$isPlayList = true;
require_once $global['systemRootPath'] . 'objects/playlist.php';
require_once $global['systemRootPath'] . 'plugin/PlayLists/PlayListElement.php';
if (!PlayList::canSee($_GET['playlists_id'], User::getId())) {
die('{"error":"' . __("Permission denied") . '"}');
}
$playListObj = new PlayList($_GET['playlists_id']);
$playList = PlayList::getVideosFromPlaylist($_GET['playlists_id']);
$playListData = array();
$videoStartSeconds = array();
foreach ($playList as $value) {
if ($value['type'] === 'embed') {
$sources[0]['type'] = 'video';
$sources[0]['url'] = $value["videoLink"];
} else {
$sources = getVideosURL($value['filename']);
}
$images = Video::getImageFromFilename($value['filename'], $value['type']);
$externalOptions = _json_decode($value['externalOptions']);
$src = new stdClass();
$src->src = $images->thumbsJpg;
$thumbnail = array($src);
$playListSources = array();
foreach ($sources as $value2) {
if ($value2['type'] !== 'video' && $value2['type'] !== 'audio' && $value2['type'] !== 'serie') {
continue;
}
$playListSources[] = new playListSource($value2['url'], $value['type'] === 'embed');
}
if (empty($playListSources)) {
continue;
}
$playListData[] = new PlayListElement($value['title'], $value['description'], $value['duration'], $playListSources, $thumbnail, $images->poster, parseDurationToSeconds(@$externalOptions->videoStartSeconds), $value['cre'], $value['likes'], $value['views_count'], $value['videos_id']);
}
$video = PlayLists::isPlayListASerie($_GET['playlists_id']);
if (!empty($video['id'])) {
AVideoPlugin::getEmbed($video['id']);
}
?>
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo $playListObj->getName() . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
<link href="<?php echo getURL('node_modules/video.js/dist/video-js.min.css'); ?>" rel="stylesheet" type="text/css"/>
<link href="<?php echo getCDN(); ?>view/css/social.css" rel="stylesheet" type="text/css"/>
<link href="<?php echo getCDN(); ?>node_modules/videojs-playlist-ui/dist/videojs-playlist-ui.css" rel="stylesheet">
<?php include $global['systemRootPath'] . 'view/include/head.php'; ?>
<style>
.next-button:before {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
display: inline-block;
font-style: normal;
font-variant: normal;
text-rendering: auto;
line-height: 1;
content: "\f051";
font-family: 'Font Awesome 5 Free';
font-weight: 900;
}
.video-js .next-button {width: 2em !important;}
</style>
<?php
if (!empty($video['id'])) {
getLdJson($video['id']);
getItemprop($video['id']);
}
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php include $global['systemRootPath'] . 'view/include/navbar.php'; ?>
<?php
if (!empty($advancedCustomUser->showChannelBannerOnModeYoutube)) {
?>
<div class="container" style="margin-bottom: 10px;">
<img src="<?php echo User::getBackground($video['users_id']); ?>" class="img img-responsive" />
</div>
<?php
}
?>
<div class="container-fluid principalContainer">
<?php
if (!empty($playListObj)) {
if (!empty($advancedCustom->showAdsenseBannerOnTop)) {
?>
<style>
.compress {
top: 100px !important;
}
</style>
<div class="row">
<div class="col-lg-12 col-sm-12 col-xs-12">
<center style="margin:5px;">
<?php
echo getAdsLeaderBoardTop();
?>
</center>
</div>
</div>
<?php
}
?>
<!-- playlist player -->
<div class="row main-video" id="mvideo">
<div class="col-sm-2 col-md-2 firstC"></div>
<div class="col-sm-8 col-md-8 secC">
<div id="videoContainer">
<div id="floatButtons" style="display: none;">
<p class="btn btn-outline btn-xs move">
<i class="fas fa-expand-arrows-alt"></i>
</p>
<button type="button" class="btn btn-outline btn-xs"
onclick="closeFloatVideo(); floatClosed = 1;">
<i class="fas fa-times"></i>
</button>
</div>
<div id="main-video" class="embed-responsive embed-responsive-16by9">
<video <?php echo PlayerSkins::getPlaysinline(); ?>
<?php if ($config->getAutoplay() && false) { // disable it for now ?>
autoplay="true"
muted="muted"
<?php } ?>
preload="auto"
controls class="embed-responsive-item video-js vjs-default-skin vjs-big-play-centered" id="mainVideo"
data-setup='{"techOrder": ["youtube","html5"]}'>
</video>
</div>
<?php
showCloseButton();
?>
</div>
</div>
<div class="col-sm-2 col-md-2"></div>
</div>
<div class="row" id="modeYoutubeBottom">
<div class="col-sm-1 col-md-1"></div>
<div class="col-sm-8 col-md-8" id="modeYoutubeBottomContent">
</div>
<div class="col-sm-2 col-md-2 bgWhite list-group-item rightBar">
<div class="col-lg-12 col-sm-12 col-xs-12">
<?php echo getAdsSideRectangle(); ?>
</div>
<input type="search" id="playListSearch" class="form-control" placeholder=" <?php echo __("Search"); ?>"/>
<select class="form-control" id="embededSortBy" >
<option value="default"> <?php echo __("Default"); ?></option>
<option value="titleAZ" data-icon="glyphicon-sort-by-attributes"> <?php echo __("Title (A-Z)"); ?></option>
<option value="titleZA" data-icon="glyphicon-sort-by-attributes-alt"> <?php echo __("Title (Z-A)"); ?></option>
<option value="newest" data-icon="glyphicon-sort-by-attributes"> <?php echo __("Date added (newest)"); ?></option>
<option value="oldest" data-icon="glyphicon-sort-by-attributes-alt" > <?php echo __("Date added (oldest)"); ?></option>
<option value="popular" data-icon="glyphicon-thumbs-up"> <?php echo __("Most popular"); ?></option>
<?php
if (empty($advancedCustom->doNotDisplayViews)) {
?>
<option value="views_count" data-icon="glyphicon-eye-open" <?php echo (!empty($_POST['sort']['views_count'])) ? "selected='selected'" : "" ?>> <?php echo __("Most watched"); ?></option>
<?php } ?>
</select>
<div class="vjs-playlist" style="" id="playList">
<!--
The contents of this element will be filled based on the
currently loaded playlist
-->
</div>
</div>
<div class="col-sm-1 col-md-1"></div>
</div>
<?php
} else {
?>
<br>
<br>
<br>
<br>
<div class="alert alert-warning">
<i class="fa-solid fa-video"></i> <strong><?php echo __("Attention"); ?>!</strong> <?php echo empty($advancedCustom->videoNotFoundText->value) ? __("We have not found any videos or audios to show") : $advancedCustom->videoNotFoundText->value; ?>.
</div>
<?php } ?>
</div>
<?php
include $global['systemRootPath'] . 'view/include/video.min.js.php';
?>
<?php
echo AVideoPlugin::afterVideoJS();
include $global['systemRootPath'] . 'view/include/footer.php';
$videoJSArray = array(
"view/js/BootstrapMenu.min.js");
$jsURL = combineFiles($videoJSArray, "js");
?>
<script src="<?php echo $jsURL; ?>" type="text/javascript"></script><script src="<?php echo getCDN(); ?>node_modules/videojs-playlist/dist/videojs-playlist.min.js"></script>
<script src="<?php echo getCDN(); ?>node_modules/videojs-playlist-ui/dist/videojs-playlist-ui.min.js"></script>
<script src="<?php echo getURL('node_modules/videojs-youtube/dist/Youtube.min.js'); ?>node_modules/videojs-playlist/dist/videojs-playlist.min.js"></script>
<script>
var playerPlaylist = <?php echo json_encode($playListData); ?>;
var originalPlayerPlaylist = playerPlaylist;
if (typeof player === 'undefined' && $('#mainVideo').length) {
player = videojs('mainVideo'<?php echo PlayerSkins::getDataSetup(); ?>);
}
var videos_id = playerPlaylist[0].videos_id;
player.on('play', function () {
addView(videos_id, this.currentTime());
});
player.on('timeupdate', function () {
var time = Math.round(this.currentTime());
if (time >= 5 && time % 5 === 0) {
addView(videos_id, time);
}
});
player.on('ended', function () {
var time = Math.round(this.currentTime());
addView(videos_id, time);
});
player.playlist(playerPlaylist);
player.playlist.autoadvance(0);
player.playlist.repeat(true);
// Initialize the playlist-ui plugin with no option (i.e. the defaults).
player.playlistUi();
var timeout;
$(document).ready(function () {
$("#playListSearch").keyup(function () {
var filter = $(this).val();
$(".vjs-playlist-item-list li").each(function () {
if ($(this).find('.vjs-playlist-name').text().search(new RegExp(filter, "i")) < 0) {
$(this).slideUp();
} else {
$(this).slideDown();
}
});
});
$('#embededSortBy').click(function () {
setTimeout(function () {
clearTimeout(timeout);
}, 2000);
});
$('#embededSortBy').change(function () {
var value = $(this).val();
playerPlaylist.sort(function (a, b) {
return compare(a, b, value);
});
player.playlist.sort(function (a, b) {
return compare(a, b, value);
});
});
//Prevent HTML5 video from being downloaded (right-click saved)?
$('#mainVideo').bind('contextmenu', function () {
return false;
});
player.currentTime(playerPlaylist[0].videoStartSeconds);
$("#modeYoutubeBottomContent").load("<?php echo $global['webSiteRootURL']; ?>view/modeYoutubeBottom.php?videos_id=" + playerPlaylist[0].videos_id);
$(".vjs-playlist-item ").click(function () {
});
player.on('playlistitem', function () {
index = player.playlist.currentIndex();
videos_id = playerPlaylist[index].videos_id;
$("#modeYoutubeBottomContent").load("<?php echo $global['webSiteRootURL']; ?>view/modeYoutubeBottom.php?videos_id=" + playerPlaylist[index].videos_id);
setTimeout(function () {
player.currentTime(playerPlaylist[index].videoStartSeconds);
}, 500);
if (typeof enableDownloadProtection === 'function') {
enableDownloadProtection();
}
});
setTimeout(function () {
var Button = videojs.getComponent('Button');
var nextButton = videojs.extend(Button, {
//constructor: function(player, options) {
constructor: function () {
Button.apply(this, arguments);
//this.addClass('vjs-chapters-button');
this.addClass('next-button');
this.addClass('vjs-button-fa-size');
this.controlText("Next");
},
handleClick: function () {
player.playlist.next();
}
});
// Register the new component
videojs.registerComponent('nextButton', nextButton);
player.getChild('controlBar').addChild('nextButton', {}, getPlayerButtonIndex('PlayToggle') + 1);
}, 30);
});
function compare(a, b, type) {
console.log(type);
switch (type) {
case "titleAZ":
return strcasecmp(a.name, b.name);
break;
case "titleZA":
return strcasecmp(b.name, a.name);
break;
case "newest":
return a.created > b.created ? 1 : (a.created < b.created ? -1 : 0);
break;
case "oldest":
return b.created > a.created ? 1 : (b.created < a.created ? -1 : 0);
break;
case "popular":
return a.likes > b.likes ? 1 : (a.likes < b.likes ? -1 : 0);
break;
default:
return 0;
break;
}
}
function strcasecmp(s1, s2) {
s1 = (s1 + '').toLowerCase();
s2 = (s2 + '').toLowerCase();
return s1 > s2 ? 1 : (s1 < s2 ? -1 : 0);
}
</script>
</body>
</html>
<?php include $global['systemRootPath'] . 'objects/include_end.php'; ?>

Some files were not shown because too many files have changed in this diff Show more