1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00

Update page builder

This commit is contained in:
Daniel Neto 2024-04-03 15:52:25 -03:00
parent a08af28ae1
commit 8341712d58
49 changed files with 2141 additions and 2740 deletions

View file

@ -189,55 +189,41 @@ switch ($_GET['page']) {
$includeBody = $global['systemRootPath'] . 'view/charts_body.php'; $includeBody = $global['systemRootPath'] . 'view/charts_body.php';
break; break;
} }
$_page = new Page(array('Administration'));
if (!empty($includeHead) && file_exists($includeHead)) {
$_page->setIncludeInHead(array($includeHead));
}
?> ?>
<!DOCTYPE html> <style>
<html lang="<?php echo getLanguage(); ?>"> @media (max-width: 767px) {
<head>
<?php
echo getHTMLTitle(__("Administration"));
?>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
if (!empty($includeHead) && file_exists($includeHead)) {
echo "<!-- Include $includeHead -->";
include $includeHead;
echo "<!-- END Include $includeHead -->";
}
?>
<style>
@media (max-width: 767px) {
.affix { .affix {
position: static; position: static;
} }
} }
.leftMenu .panel-body { .leftMenu .panel-body {
padding: 0px; padding: 0px;
} }
.adminLeftMenu.panel-default i, .adminLeftMenu.panel-default{ .adminLeftMenu.panel-default i, .adminLeftMenu.panel-default{
-webkit-transition: opacity 0.5s ease-in-out; -webkit-transition: opacity 0.5s ease-in-out;
-moz-transition: opacity 0.5s ease-in-out; -moz-transition: opacity 0.5s ease-in-out;
transition: opacity 0.5s ease-in-out; transition: opacity 0.5s ease-in-out;
} }
.adminLeftMenu.panel-default i{ .adminLeftMenu.panel-default i{
opacity: 0.2; opacity: 0.2;
} }
.adminLeftMenu:hover.panel-default i{ .adminLeftMenu:hover.panel-default i{
opacity: 1; opacity: 1;
} }
.adminLeftMenu.panel-default{ .adminLeftMenu.panel-default{
opacity: 0.6; opacity: 0.6;
} }
.adminLeftMenu:hover.panel-default{ .adminLeftMenu:hover.panel-default{
opacity: 1; opacity: 1;
} }
</style> </style>
</head> <div class="container-fluid">
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
?>
<div class="container-fluid">
<br> <br>
<div class="row"> <div class="row">
<div class=" col-lg-2 col-md-3 col-sm-3 fixed affix leftMenu"> <div class=" col-lg-2 col-md-3 col-sm-3 fixed affix leftMenu">
@ -265,7 +251,7 @@ switch ($_GET['page']) {
<div class="panel <?php echo $panel; ?> adminLeftMenu <?php echo getCSSAnimationClassAndStyle('animate__bounceInLeft', 'menu'); ?>"> <div class="panel <?php echo $panel; ?> adminLeftMenu <?php echo getCSSAnimationClassAndStyle('animate__bounceInLeft', 'menu'); ?>">
<div class="panel-heading"> <div class="panel-heading">
<h4 class="panel-title"> <h4 class="panel-title">
<a <?php echo $href; ?> > <a <?php echo $href; ?>>
<i class="<?php echo $value->icon; ?> "></i> <?php echo $value->title; ?> <i class="<?php echo $value->icon; ?> "></i> <?php echo $value->title; ?>
</a> </a>
</h4> </h4>
@ -345,41 +331,39 @@ switch ($_GET['page']) {
?> ?>
</div> </div>
</div> </div>
</div> </div>
<script>
$(document).ready(function() {
<?php $('.adminOptionsForm').submit(function(e) {
include_once $global['systemRootPath'] . 'view/include/footer.php';
?>
<script>
$(document).ready(function () {
$('.adminOptionsForm').submit(function (e) {
e.preventDefault(); e.preventDefault();
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: 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) {
modal.hidePleaseWait(); modal.hidePleaseWait();
} }
}); });
}); });
$('.pluginSwitch').change(function (e) { $('.pluginSwitch').change(function(e) {
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: 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) {
modal.hidePleaseWait(); modal.hidePleaseWait();
} }
}); });
}); });
}); });
</script> </script>
</body> <?php
</html> $_page->print();
?>

View file

@ -14,6 +14,7 @@ class Page
private $includeFooter = true; private $includeFooter = true;
private $includeBGAnimation = false; private $includeBGAnimation = false;
private $includeInHead = array(); private $includeInHead = array();
private $includeInBody = array();
private $includeInFooter = array(); private $includeInFooter = array();
public function __construct($title, $bodyClass = '', $loadBasicCSSAndJS = false) public function __construct($title, $bodyClass = '', $loadBasicCSSAndJS = false)
@ -92,6 +93,11 @@ class Page
$this->includeInHead = $includeInHead; $this->includeInHead = $includeInHead;
} }
public function setIncludeInBody(array $includeInBody)
{
$this->includeInBody = $includeInBody;
}
public function setIncludeInFooter(array $includeInFooter) public function setIncludeInFooter(array $includeInFooter)
{ {
$this->includeInFooter = $includeInFooter; $this->includeInFooter = $includeInFooter;
@ -117,7 +123,16 @@ class Page
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) {
include $global['systemRootPath'] . $value; if(!empty($value)){
if(!file_exists($value)){
$value = $global['systemRootPath'] . $value;
}
if(file_exists($value)){
include $value;
}else{
echo "<!-- Page::includeInHead not found {$value} -->";
}
}
} }
} }
if (!empty($this->extraStyles)) { if (!empty($this->extraStyles)) {
@ -157,7 +172,16 @@ class Page
} }
if (!empty($this->includeInFooter)) { if (!empty($this->includeInFooter)) {
foreach ($this->includeInFooter as $value) { foreach ($this->includeInFooter as $value) {
include $global['systemRootPath'] . $value; if(!empty($value)){
if(!file_exists($value)){
$value = $global['systemRootPath'] . $value;
}
if(file_exists($value)){
include $value;
}else{
echo "<!-- Page::includeInFooter not found {$value} -->";
}
}
} }
} }
if (!empty($this->extraScripts)) { if (!empty($this->extraScripts)) {
@ -181,6 +205,20 @@ class Page
$this->getNavBar(); $this->getNavBar();
//echo '<div id="_avideoPageContentLoading" class="progress"><div class="progress-bar progress-bar-striped active" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%"><span class="sr-only">Loading...</span></div></div>'; //echo '<div id="_avideoPageContentLoading" class="progress"><div class="progress-bar progress-bar-striped active" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%"><span class="sr-only">Loading...</span></div></div>';
//echo '<div id="_avideoPageContent">'; //echo '<div id="_avideoPageContent">';
if (!empty($this->includeInBody)) {
foreach ($this->includeInBody as $value) {
if(!empty($value)){
if(!file_exists($value)){
$value = $global['systemRootPath'] . $value;
}
if(file_exists($value)){
include $value;
}else{
echo "<!-- Page::includeInBody not found {$value} -->";
}
}
}
}
echo $this->bodyContent; echo $this->bodyContent;
//echo '</div>'; //echo '</div>';
$this->getFooter(); $this->getFooter();
@ -207,4 +245,30 @@ class Page
include $global['systemRootPath'] . 'objects/include_end.php'; include $global['systemRootPath'] . 'objects/include_end.php';
} }
} }
public function printEditorIndex($plugin, $classname)
{
$this->loadBasicCSSAndJS();
$this->setIncludeInHead(array("plugin/{$plugin}/View/{$classname}/index_head.php"));
$this->setIncludeInBody(array("plugin/{$plugin}/View/{$classname}/index_body.php"));
$this->print();
}
public function printEditorIndexFromFile($file)
{
global $config, $global;
$file = str_replace($global['systemRootPath'], '', $file);
$title = str_replace('/index.php', '', $file);
$parts = explode('/View/', $title);
$title = $parts[1];
$title = ucwords(str_replace('_', ' ', $title));
$this->setTitle($title);
$head = str_replace('index.php', 'index_head.php', $file);
$body = str_replace('index.php', 'index_body.php', $file);
//var_dump($title, $file, $head, $body);exit;
$this->loadBasicCSSAndJS();
$this->setIncludeInHead(array($head));
$this->setIncludeInBody(array($body));
$this->print();
}
} }

View file

@ -5482,6 +5482,10 @@ function getHTMLTitle($titleArray)
{ {
global $config, $global; global $config, $global;
if(!empty($_REQUEST['catName'])){
$cat = Category::getCategoryByName($_REQUEST['catName']);
$titleArray[] = $cat['name'];
}
if (!is_array($titleArray)) { if (!is_array($titleArray)) {
$titleArray = []; $titleArray = [];
} }

View file

@ -222,6 +222,7 @@ function createEmailMessageFromTemplate($message)
global $global, $config; global $global, $config;
$text = file_get_contents("{$global['systemRootPath']}view/include/emailTemplate.html"); $text = file_get_contents("{$global['systemRootPath']}view/include/emailTemplate.html");
$config = new AVideoConf();
$siteTitle = $config->getWebSiteTitle(); $siteTitle = $config->getWebSiteTitle();
$logo = "<img src=\"" . getURL($config->getLogo()) . "\" alt=\"{$siteTitle}\"/>"; $logo = "<img src=\"" . getURL($config->getLogo()) . "\" alt=\"{$siteTitle}\"/>";

View file

@ -7,24 +7,8 @@ if (!User::isAdmin()) {
forbiddenPage("You can not do this"); forbiddenPage("You can not do this");
exit; exit;
} }
$_page = new Page(array('VAST'));
$_page->setIncludeInHead(array('plugin/AD_Server/index_head.php'));
$_page->setIncludeInBody(array('plugin/AD_Server/index_body.php'));
$_page->print();
?> ?>
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<?php
echo getHTMLTitle(__("VAST"));
?>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
include $global['systemRootPath'] . 'plugin/AD_Server/index_head.php';
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
include $global['systemRootPath'] . 'plugin/AD_Server/index_body.php';
include $global['systemRootPath'] . 'view/include/footer.php';
?>
</body>
</html>

View file

@ -1,28 +1,12 @@
<?php <?php
global $global, $config; global $global, $config;
if (!isset($global['systemRootPath'])) { if (!isset($global['systemRootPath'])) {
require_once '../../videos/configuration.php'; require_once '../../../../videos/configuration.php';
} }
if (!User::isAdmin()) { if (!User::isAdmin()) {
forbiddenPage("Must be admin"); forbiddenPage("Must be admin");
} }
$_page = new Page(array(''));
$_page->printEditorIndexFromFile(__FILE__);
?> ?>
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo $config->getWebSiteTitle(); ?> :: CustomizeUser</title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
include $global['systemRootPath'] . 'plugin/CustomizeUser/View/{$classname}/index_head.php';
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
include $global['systemRootPath'] . 'plugin/CustomizeUser/View/{$classname}/index_body.php';
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script type="text/javascript" src="<?php echo getURL('view/css/DataTables/datatables.min.js'); ?>"></script>
</body>
</html>

View file

@ -8,22 +8,6 @@ if (!User::isAdmin()) {
exit; exit;
} }
$_page = new Page(array(''));
$_page->printEditorIndexFromFile(__FILE__);
?> ?>
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo $config->getWebSiteTitle(); ?> :: CustomizeUser</title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
include $global['systemRootPath'] . 'plugin/CustomizeUser/View/{$classname}/index_head.php';
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
include $global['systemRootPath'] . 'plugin/CustomizeUser/View/{$classname}/index_body.php';
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script type="text/javascript" src="<?php echo $global['webSiteRootURL']; ?>view/css/DataTables/datatables.min.js"></script>
</body>
</html>

View file

@ -7,22 +7,6 @@ if (!User::isAdmin()) {
forbiddenPage("Must be admin"); forbiddenPage("Must be admin");
} }
$_page = new Page(array(''));
$_page->printEditorIndexFromFile(__FILE__);
?> ?>
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo $config->getWebSiteTitle(); ?> :: CustomizeUser</title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
include $global['systemRootPath'] . 'plugin/CustomizeUser/View/{$classname}/index_head.php';
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
include $global['systemRootPath'] . 'plugin/CustomizeUser/View/{$classname}/index_body.php';
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script type="text/javascript" src="<?php echo getURL('view/css/DataTables/datatables.min.js'); ?>"></script>
</body>
</html>

View file

@ -8,22 +8,7 @@ if (!User::isAdmin()) {
exit; exit;
} }
$_page = new Page(array(''));
$_page->printEditorIndexFromFile(__FILE__);
?> ?>
<!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';
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
include $global['systemRootPath'] . 'plugin/Live/view/{$classname}/index_body.php';
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script type="text/javascript" src="<?php echo getURL('view/css/DataTables/datatables.min.js'); ?>"></script>
</body>
</html>

View file

@ -8,22 +8,8 @@ if (!User::isAdmin()) {
exit; exit;
} }
$_page = new Page(array('Live Restream'));
$_page->setIncludeInHead(array('plugin/Live/view/Live_restreams_logs/index_head.phpp'));
$_page->setIncludeInBody(array('plugin/Live/view/Live_restreams_logs/index_body.php'));
$_page->print();
?> ?>
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo $config->getWebSiteTitle(); ?> :: Live</title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
include $global['systemRootPath'] . 'plugin/Live/view/Live_restreams_logs/index_head.php';
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
include $global['systemRootPath'] . 'plugin/Live/view/Live_restreams_logs/index_body.php';
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script type="text/javascript" src="<?php echo $global['webSiteRootURL']; ?>view/css/DataTables/datatables.min.js"></script>
</body>
</html>

View file

@ -8,22 +8,7 @@ if (!User::isAdmin()) {
exit; exit;
} }
$_page = new Page(array(''));
$_page->printEditorIndexFromFile(__FILE__);
?> ?>
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo $config->getWebSiteTitle(); ?> :: Live</title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
include $global['systemRootPath'] . 'plugin/Live/view/{$classname}/index_head.php';
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
include $global['systemRootPath'] . 'plugin/Live/view/{$classname}/index_body.php';
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script type="text/javascript" src="<?php echo $global['webSiteRootURL']; ?>view/css/DataTables/datatables.min.js"></script>
</body>
</html>

View file

@ -8,22 +8,6 @@ if (!User::isAdmin()) {
exit; exit;
} }
$_page = new Page(array(''));
$_page->printEditorIndexFromFile(__FILE__);
?> ?>
<!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';
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
include $global['systemRootPath'] . 'plugin/Live/view/{$classname}/index_body.php';
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script type="text/javascript" src="<?php echo getURL('view/css/DataTables/datatables.min.js'); ?>"></script>
</body>
</html>

View file

@ -7,23 +7,6 @@ if (!User::isAdmin()) {
forbiddenPage("You can not do this"); forbiddenPage("You can not do this");
exit; exit;
} }
$_page = new Page(array(''));
$_page->printEditorIndexFromFile(__FILE__);
?> ?>
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo __("Login Control") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
include $global['systemRootPath'] . 'plugin/LoginControl/View/{$classname}/index_head.php';
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
include $global['systemRootPath'] . 'plugin/LoginControl/View/{$classname}/index_body.php';
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script type="text/javascript" src="<?php echo getURL('view/css/DataTables/datatables.min.js'); ?>"></script>
</body>
</html>

View file

@ -8,22 +8,6 @@ if (!User::isAdmin()) {
exit; exit;
} }
$_page = new Page(array(''));
$_page->printEditorIndexFromFile(__FILE__);
?> ?>
<!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';
include $global['systemRootPath'] . 'plugin/Meet/View/{$classname}/index_head.php';
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
include $global['systemRootPath'] . 'plugin/Meet/View/{$classname}/index_body.php';
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script type="text/javascript" src="<?php echo getURL('view/css/DataTables/datatables.min.js'); ?>"></script>
</body>
</html>

View file

@ -7,23 +7,6 @@ if (!User::isAdmin()) {
forbiddenPage("You can not do this"); forbiddenPage("You can not do this");
exit; exit;
} }
$_page = new Page(array(''));
$_page->printEditorIndexFromFile(__FILE__);
?> ?>
<!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';
include $global['systemRootPath'] . 'plugin/Meet/View/{$classname}/index_head.php';
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
include $global['systemRootPath'] . 'plugin/Meet/View/{$classname}/index_body.php';
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script type="text/javascript" src="<?php echo getURL('view/css/DataTables/datatables.min.js'); ?>"></script>
</body>
</html>

View file

@ -8,22 +8,6 @@ if (!User::isAdmin()) {
exit; exit;
} }
$_page = new Page(array(''));
$_page->printEditorIndexFromFile(__FILE__);
?> ?>
<!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';
include $global['systemRootPath'] . 'plugin/Meet/View/{$classname}/index_head.php';
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
include $global['systemRootPath'] . 'plugin/Meet/View/{$classname}/index_body.php';
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script type="text/javascript" src="<?php echo getURL('view/css/DataTables/datatables.min.js'); ?>"></script>
</body>
</html>

View file

@ -7,23 +7,6 @@ if (!User::isAdmin()) {
forbiddenPage("You can not do this"); forbiddenPage("You can not do this");
exit; exit;
} }
$_page = new Page(array(''));
$_page->printEditorIndexFromFile(__FILE__);
?> ?>
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo $config->getWebSiteTitle(); ?> :: PayPalYPT</title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
include $global['systemRootPath'] . 'plugin/PayPalYPT/View/{$classname}/index_head.php';
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
include $global['systemRootPath'] . 'plugin/PayPalYPT/View/{$classname}/index_body.php';
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script type="text/javascript" src="<?php echo $global['webSiteRootURL']; ?>view/css/DataTables/datatables.min.js"></script>
</body>
</html>

View file

@ -8,22 +8,6 @@ if (!User::isAdmin()) {
exit; exit;
} }
$_page = new Page(array(''));
$_page->printEditorIndexFromFile(__FILE__);
?> ?>
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo __("Permissions") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
include $global['systemRootPath'] . 'plugin/Permissions/View/{$classname}/index_head.php';
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
include $global['systemRootPath'] . 'plugin/Permissions/View/{$classname}/index_body.php';
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script type="text/javascript" src="<?php echo getURL('view/css/DataTables/datatables.min.js'); ?>"></script>
</body>
</html>

View file

@ -8,22 +8,6 @@ if (!User::isAdmin()) {
exit; exit;
} }
$_page = new Page(array(''));
$_page->printEditorIndexFromFile(__FILE__);
?> ?>
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo __("PlayLists") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
include $global['systemRootPath'] . 'plugin/PlayLists/View/{$classname}/index_head.php';
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
include $global['systemRootPath'] . 'plugin/PlayLists/View/{$classname}/index_body.php';
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script type="text/javascript" src="<?php echo getURL('view/css/DataTables/datatables.min.js'); ?>"></script>
</body>
</html>

View file

@ -8,22 +8,6 @@ if (!User::isAdmin()) {
exit; exit;
} }
$_page = new Page(array(''));
$_page->printEditorIndexFromFile(__FILE__);
?> ?>
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo $config->getWebSiteTitle(); ?> :: Scheduler</title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
include $global['systemRootPath'] . 'plugin/Scheduler/View/{$classname}/index_head.php';
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
include $global['systemRootPath'] . 'plugin/Scheduler/View/{$classname}/index_body.php';
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script type="text/javascript" src="<?php echo $global['webSiteRootURL']; ?>view/css/DataTables/datatables.min.js"></script>
</body>
</html>

View file

@ -8,22 +8,6 @@ if (!User::isAdmin()) {
exit; exit;
} }
$_page = new Page(array(''));
$_page->printEditorIndexFromFile(__FILE__);
?> ?>
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo $config->getWebSiteTitle(); ?> :: Scheduler</title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
include $global['systemRootPath'] . 'plugin/Scheduler/View/{$classname}/index_head.php';
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
include $global['systemRootPath'] . 'plugin/Scheduler/View/{$classname}/index_body.php';
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script type="text/javascript" src="<?php echo $global['webSiteRootURL']; ?>view/css/DataTables/datatables.min.js"></script>
</body>
</html>

View file

@ -7,23 +7,6 @@ if (!User::isAdmin()) {
forbiddenPage("You can not do this"); forbiddenPage("You can not do this");
exit; exit;
} }
$_page = new Page(array(''));
$_page->printEditorIndexFromFile(__FILE__);
?> ?>
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo $config->getWebSiteTitle(); ?> :: Scheduler</title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
include $global['systemRootPath'] . 'plugin/Scheduler/View/{$classname}/index_head.php';
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
include $global['systemRootPath'] . 'plugin/Scheduler/View/{$classname}/index_body.php';
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script type="text/javascript" src="<?php echo $global['webSiteRootURL']; ?>view/css/DataTables/datatables.min.js"></script>
</body>
</html>

View file

@ -8,22 +8,6 @@ if (!User::isAdmin()) {
exit; exit;
} }
$_page = new Page(array(''));
$_page->printEditorIndexFromFile(__FILE__);
?> ?>
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo $config->getWebSiteTitle(); ?> :: UserNotifications</title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
include $global['systemRootPath'] . 'plugin/UserNotifications/View/{$classname}/index_head.php';
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
include $global['systemRootPath'] . 'plugin/UserNotifications/View/{$classname}/index_body.php';
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script type="text/javascript" src="<?php echo $global['webSiteRootURL']; ?>view/css/DataTables/datatables.min.js"></script>
</body>
</html>

View file

@ -1,22 +1,10 @@
<?php <?php
require_once '../../../videos/configuration.php'; require_once '../../../videos/configuration.php';
AVideoPlugin::loadPlugin("UserNotifications"); AVideoPlugin::loadPlugin("UserNotifications");
$_page = new Page(array('UserNotifications'));
$_page->loadBasicCSSAndJS();
?> ?>
<!DOCTYPE html> <div class="container-fluid">
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo $config->getWebSiteTitle(); ?> :: UserNotifications</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="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"><?php echo __('UserNotifications') ?> <div class="panel-heading"><?php echo __('UserNotifications') ?>
<div class="pull-right"> <div class="pull-right">
@ -36,11 +24,7 @@ AVideoPlugin::loadPlugin("UserNotifications");
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<script type="text/javascript" src="<?php echo $global['webSiteRootURL']; ?>view/css/DataTables/datatables.min.js"></script> <?php
<script src="<?php echo $global['webSiteRootURL']; ?>js/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js" type="text/javascript"></script> $_page->print();
<?php ?>
include $global['systemRootPath'] . 'view/include/footer.php';
?>
</body>
</html>

View file

@ -8,22 +8,6 @@ if (!User::isAdmin()) {
exit; exit;
} }
$_page = new Page(array(''));
$_page->printEditorIndexFromFile(__FILE__);
?> ?>
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo $config->getWebSiteTitle(); ?> :: VideoTags</title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
include $global['systemRootPath'] . 'plugin/VideoTags/View/{$classname}/index_head.php';
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
include $global['systemRootPath'] . 'plugin/VideoTags/View/{$classname}/index_body.php';
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script type="text/javascript" src="<?php echo $global['webSiteRootURL']; ?>view/css/DataTables/datatables.min.js"></script>
</body>
</html>

View file

@ -1,22 +1,10 @@
<?php <?php
require_once '../../../videos/configuration.php'; require_once '../../../videos/configuration.php';
AVideoPlugin::loadPlugin("VideoTags"); AVideoPlugin::loadPlugin("VideoTags");
$_page = new Page(array('VideoTags'));
$_page->loadBasicCSSAndJS();
?> ?>
<!DOCTYPE html> <div class="container-fluid">
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo $config->getWebSiteTitle(); ?> :: VideoTags</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="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"><?php echo __('VideoTags') ?> <div class="panel-heading"><?php echo __('VideoTags') ?>
<div class="pull-right"> <div class="pull-right">
@ -36,11 +24,7 @@ AVideoPlugin::loadPlugin("VideoTags");
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<script type="text/javascript" src="<?php echo $global['webSiteRootURL']; ?>view/css/DataTables/datatables.min.js"></script> <?php
<script src="<?php echo $global['webSiteRootURL']; ?>js/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js" type="text/javascript"></script> $_page->print();
<?php ?>
include $global['systemRootPath'] . 'view/include/footer.php';
?>
</body>
</html>

View file

@ -7,21 +7,8 @@ if (!User::isAdmin()) {
forbiddenPage("You can not do this"); forbiddenPage("You can not do this");
exit; exit;
} }
$_page = new Page(array('Tags'));
include $global['systemRootPath'] . 'plugin/VideoTags/index_body.php';
$_page->print();
?> ?>
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo __("Tags") . $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';
include $global['systemRootPath'] . 'plugin/VideoTags/index_body.php';
include $global['systemRootPath'] . 'view/include/footer.php';
?>
</body>
</html>

View file

@ -8,22 +8,6 @@ if (!User::isAdmin()) {
exit; exit;
} }
$_page = new Page(array(''));
$_page->printEditorIndexFromFile(__FILE__);
?> ?>
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo $config->getWebSiteTitle(); ?> :: VideosStatistics</title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
include $global['systemRootPath'] . 'plugin/VideosStatistics/View/{$classname}/index_head.php';
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
include $global['systemRootPath'] . 'plugin/VideosStatistics/View/{$classname}/index_body.php';
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script type="text/javascript" src="<?php echo $global['webSiteRootURL']; ?>view/css/DataTables/datatables.min.js"></script>
</body>
</html>

View file

@ -1,22 +1,10 @@
<?php <?php
require_once '../../../videos/configuration.php'; require_once '../../../videos/configuration.php';
AVideoPlugin::loadPlugin("VideosStatistics"); AVideoPlugin::loadPlugin("VideosStatistics");
$_page = new Page(array('VideosStatistics'));
$_page->loadBasicCSSAndJS();
?> ?>
<!DOCTYPE html> <div class="container-fluid">
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo $config->getWebSiteTitle(); ?> :: VideosStatistics</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="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"><?php echo __('VideosStatistics') ?> <div class="panel-heading"><?php echo __('VideosStatistics') ?>
<div class="pull-right"> <div class="pull-right">
@ -36,11 +24,7 @@ AVideoPlugin::loadPlugin("VideosStatistics");
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<script type="text/javascript" src="<?php echo $global['webSiteRootURL']; ?>view/css/DataTables/datatables.min.js"></script> <?php
<script src="<?php echo $global['webSiteRootURL']; ?>js/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js" type="text/javascript"></script> $_page->print();
<?php ?>
include $global['systemRootPath'] . 'view/include/footer.php';
?>
</body>
</html>

View file

@ -8,25 +8,12 @@ $global['paymentsTest'] = 1;
$myWallet = AVideoPlugin::loadPlugin('YPTWallet'); $myWallet = AVideoPlugin::loadPlugin('YPTWallet');
$objWallet = $myWallet->getDataObject(); $objWallet = $myWallet->getDataObject();
$myBalance = $myWallet->getBalance(User::getId()); $myBalance = $myWallet->getBalance(User::getId());
$planTitle = 'Test payment '.date('Y-m-d h:i:s'); $planTitle = 'Test payment ' . date('Y-m-d h:i:s');
$_GET['plans_id'] = -1; $_GET['plans_id'] = -1;
$_page = new Page(array('Payment tests'));
?> ?>
<!DOCTYPE html> <div class="container-fluid">
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo $config->getWebSiteTitle(); ?> :: Show Plans</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="panel panel-default" id="plans"> <div class="panel panel-default" id="plans">
<div class="panel-body"> <div class="panel-body">
@ -176,9 +163,7 @@ $_GET['plans_id'] = -1;
</div> </div>
</div> </div>
</div> </div>
<?php </div>
include $global['systemRootPath'] . 'view/include/footer.php'; <?php
?> $_page->print();
</body> ?>
</html>

View file

@ -13,21 +13,9 @@ if (!empty($paypal)) {
$options = _json_decode($obj->addFundsOptions); $options = _json_decode($obj->addFundsOptions);
//unset($_SESSION['addFunds_Success']); //unset($_SESSION['addFunds_Success']);
//unset($_SESSION['addFunds_Fail']); //unset($_SESSION['addFunds_Fail']);
$_page = new Page(array('Add Funds'));
?> ?>
<!DOCTYPE html> <div class="container">
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo __("Add Funds") . $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="row"> <div class="row">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"><?php echo __("Add Funds"); ?></div> <div class="panel-heading"><?php echo __("Add Funds"); ?></div>
@ -62,7 +50,7 @@ $options = _json_decode($obj->addFundsOptions);
?> ?>
<div class="form-group"> <div class="form-group">
<label for="value"><?php echo __("Add Funds"); ?> <?php echo $obj->currency_symbol; ?> <?php echo $obj->currency; ?></label> <label for="value"><?php echo __("Add Funds"); ?> <?php echo $obj->currency_symbol; ?> <?php echo $obj->currency; ?></label>
<select class="form-control" id="value" > <select class="form-control" id="value">
<?php <?php
foreach ($options as $value) { foreach ($options as $value) {
?> ?>
@ -81,17 +69,12 @@ $options = _json_decode($obj->addFundsOptions);
</div> </div>
</div> </div>
<script>
$(document).ready(function() {
<?php
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script>
$(document).ready(function () {
}); });
</script> </script>
<?php
</body> $_page->print();
</html> ?>

View file

@ -10,22 +10,10 @@ if (!User::isAdmin()) {
$plugin = AVideoPlugin::loadPluginIfEnabled("YPTWallet"); $plugin = AVideoPlugin::loadPluginIfEnabled("YPTWallet");
$obj = $plugin->getDataObject(); $obj = $plugin->getDataObject();
$_page = new Page(array('Support Author'));
?> ?>
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo __("Support Author") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>"> <div class="container">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
?>
<div class="container">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading">Total Site Balance: <b><?php echo YPTWallet::getTotalBalanceText(); ?></b></div> <div class="panel-heading">Total Site Balance: <b><?php echo YPTWallet::getTotalBalanceText(); ?></b></div>
@ -36,8 +24,8 @@ $obj = $plugin->getDataObject();
<tr> <tr>
<th data-column-id="user" data-formatter="user"><?php echo __("User"); ?></th> <th data-column-id="user" data-formatter="user"><?php echo __("User"); ?></th>
<th data-column-id="name" data-order="desc"><?php echo __("Name"); ?></th> <th data-column-id="name" data-order="desc"><?php echo __("Name"); ?></th>
<th data-column-id="email" ><?php echo __("E-mail"); ?></th> <th data-column-id="email"><?php echo __("E-mail"); ?></th>
<th data-column-id="balance" ><?php echo __("Balance"); ?></th> <th data-column-id="balance"><?php echo __("Balance"); ?></th>
<th data-column-id="commands" data-formatter="commands" data-sortable="false" data-width="100px"></th> <th data-column-id="commands" data-formatter="commands" data-sortable="false" data-width="100px"></th>
</tr> </tr>
</thead> </thead>
@ -45,9 +33,9 @@ $obj = $plugin->getDataObject();
</div> </div>
</div> </div>
</div> </div>
<div id="userFormModal" class="modal fade" tabindex="-1" role="dialog"> <div id="userFormModal" class="modal fade" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document"> <div class="modal-dialog" role="document">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">
@ -56,7 +44,7 @@ $obj = $plugin->getDataObject();
</div> </div>
<div class="modal-body"> <div class="modal-body">
<form class="form-compact" id="updateUserForm" onsubmit=""> <form class="form-compact" id="updateUserForm" onsubmit="">
<input type="hidden" id="inputUserId" > <input type="hidden" id="inputUserId">
<label for="inputUser" class="sr-only"><?php echo __("User"); ?></label> <label for="inputUser" class="sr-only"><?php echo __("User"); ?></label>
<input type="text" id="inputUser" class="form-control first" placeholder="<?php echo __("User"); ?>" readonly required="required"> <input type="text" id="inputUser" class="form-control first" placeholder="<?php echo __("User"); ?>" readonly required="required">
<label for="inputUserBalance" class="sr-only"><?php echo __("Balance"); ?></label> <label for="inputUserBalance" class="sr-only"><?php echo __("Balance"); ?></label>
@ -70,12 +58,9 @@ $obj = $plugin->getDataObject();
</div> </div>
</div><!-- /.modal-content --> </div><!-- /.modal-content -->
</div><!-- /.modal-dialog --> </div><!-- /.modal-dialog -->
</div><!-- /.modal --> </div><!-- /.modal -->
<?php <script>
include $global['systemRootPath'] . 'view/include/footer.php'; $(document).ready(function() {
?>
<script>
$(document).ready(function () {
var grid = $("#grid").bootgrid({ var grid = $("#grid").bootgrid({
labels: { labels: {
@ -89,22 +74,21 @@ $obj = $plugin->getDataObject();
ajax: true, ajax: true,
url: "<?php echo $global['webSiteRootURL'] . "plugin/YPTWallet/view/users.json.php"; ?>", url: "<?php echo $global['webSiteRootURL'] . "plugin/YPTWallet/view/users.json.php"; ?>",
formatters: { formatters: {
"commands": function (column, row) { "commands": function(column, row) {
console.log(row); console.log(row);
var editBtn = '<button type="button" class="btn btn-xs btn-default command-edit" data-toggle="tooltip" data-placement="left" title="Edit"><i class="fa-solid fa-pen-to-square"></i></button>' var editBtn = '<button type="button" class="btn btn-xs btn-default command-edit" data-toggle="tooltip" data-placement="left" title="Edit"><i class="fa-solid fa-pen-to-square"></i></button>'
var history = '<a href="<?php echo $global['webSiteRootURL']; ?>plugin/YPTWallet/view/history.php?users_id=' + row.user_id + '" class="btn btn-default btn-xs command-history" data-toggle="tooltip" data-placement="left" title="History""><span class="fa fa-history" aria-hidden="true"></span></a>'; var history = '<a href="<?php echo $global['webSiteRootURL']; ?>plugin/YPTWallet/view/history.php?users_id=' + row.user_id + '" class="btn btn-default btn-xs command-history" data-toggle="tooltip" data-placement="left" title="History""><span class="fa fa-history" aria-hidden="true"></span></a>';
//return editBtn + deleteBtn; //return editBtn + deleteBtn;
return editBtn + history; return editBtn + history;
}, },
"user": function (column, row) { "user": function(column, row) {
var photo = "<br><img src='" + row.photo + "' class='img img-responsive img-rounded img-thumbnail' style='max-width:50px;'/>"; var photo = "<br><img src='" + row.photo + "' class='img img-responsive img-rounded img-thumbnail' style='max-width:50px;'/>";
return row.user + photo; return row.user + photo;
} }
} }
}).on("loaded.rs.jquery.bootgrid", function () }).on("loaded.rs.jquery.bootgrid", function() {
{
/* Executes after data is loaded and rendered */ /* Executes after data is loaded and rendered */
grid.find(".command-edit").on("click", function (e) { grid.find(".command-edit").on("click", function(e) {
var row_index = $(this).closest('tr').index(); var row_index = $(this).closest('tr').index();
var row = $("#grid").bootgrid("getCurrentRows")[row_index]; var row = $("#grid").bootgrid("getCurrentRows")[row_index];
console.log(row); console.log(row);
@ -117,22 +101,22 @@ $obj = $plugin->getDataObject();
}); });
}); });
$('#saveUserBtn').click(function (evt) { $('#saveUserBtn').click(function(evt) {
$('#updateUserForm').submit(); $('#updateUserForm').submit();
}); });
$('#updateUserForm').submit(function (evt) { $('#updateUserForm').submit(function(evt) {
evt.preventDefault(); evt.preventDefault();
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: webSiteRootURL+'plugin/YPTWallet/view/saveBalance.php', url: webSiteRootURL + 'plugin/YPTWallet/view/saveBalance.php',
data: { data: {
"users_id": $('#inputUserId').val(), "users_id": $('#inputUserId').val(),
"balance": $('#inputUserBalance').val() "balance": $('#inputUserBalance').val()
}, },
type: 'post', type: 'post',
success: function (response) { success: function(response) {
if (!response.error) { if (!response.error) {
$(".walletBalance").text(response.walletBalance); $(".walletBalance").text(response.walletBalance);
$('#userFormModal').modal('hide'); $('#userFormModal').modal('hide');
@ -147,7 +131,7 @@ $obj = $plugin->getDataObject();
}); });
}); });
</script>
</script> <?php
</body> $_page->print();
</html> ?>

View file

@ -3,7 +3,7 @@ require_once '../../../videos/configuration.php';
require_once $global['systemRootPath'] . 'objects/user.php'; require_once $global['systemRootPath'] . 'objects/user.php';
require_once $global['systemRootPath'] . 'objects/functions.php'; require_once $global['systemRootPath'] . 'objects/functions.php';
if(!User::isLogged()){ if (!User::isLogged()) {
header("Location: {$global['webSiteRootURL']}"); header("Location: {$global['webSiteRootURL']}");
} }
@ -12,26 +12,11 @@ $walletDataObject = $plugin->getDataObject();
$wallet = new Wallet(0); $wallet = new Wallet(0);
$wallet->setUsers_id(User::getId()); $wallet->setUsers_id(User::getId());
$_page = new Page(array('Configuration'));
?> ?>
<!DOCTYPE html> <div class="container">
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo __("Configuration") . $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';
?>
<br>
<div class="container">
<?php echo AVideoPlugin::getWalletConfigurationHTML(User::getId(), $wallet, $walletDataObject); ?> <?php echo AVideoPlugin::getWalletConfigurationHTML(User::getId(), $wallet, $walletDataObject); ?>
</div> </div>
<?php <?php
include $global['systemRootPath'] . 'view/include/footer.php'; $_page->print();
?> ?>
</body>
</html>

View file

@ -11,24 +11,12 @@ if (!User::isLogged()) {
$users_id = 0; $users_id = 0;
if (!empty($_GET['users_id'])) { if (!empty($_GET['users_id'])) {
$users_id = $_GET['users_id']; $users_id = $_GET['users_id'];
}else{ } else {
$users_id = User::getId(); $users_id = User::getId();
} }
$_page = new Page(array('History'));
?> ?>
<!DOCTYPE html> <div class="container">
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo __("History") . $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="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading" style="height: 70px;"> <div class="panel-heading" style="height: 70px;">
<img src="<?php echo User::getPhoto($users_id); ?>" class="img img-responsive img-circle pull-left" style="height: 50px; margin-right: 10px;" alt="User Photo"> <img src="<?php echo User::getPhoto($users_id); ?>" class="img img-responsive img-circle pull-left" style="height: 50px; margin-right: 10px;" alt="User Photo">
@ -40,7 +28,7 @@ if (!empty($_GET['users_id'])) {
<thead> <thead>
<tr> <tr>
<th data-column-id="valueText" data-width="150px"><?php echo __("Value"); ?></th> <th data-column-id="valueText" data-width="150px"><?php echo __("Value"); ?></th>
<th data-column-id="description" data-formatter="description" ><?php echo __("Description"); ?></th> <th data-column-id="description" data-formatter="description"><?php echo __("Description"); ?></th>
<th data-column-id="status" data-formatter="status" data-width="250px"><?php echo __("Status"); ?></th> <th data-column-id="status" data-formatter="status" data-width="250px"><?php echo __("Status"); ?></th>
<th data-column-id="created" data-order="desc" data-width="150px"><?php echo __("Date"); ?></th> <th data-column-id="created" data-order="desc" data-width="150px"><?php echo __("Date"); ?></th>
</tr> </tr>
@ -49,17 +37,14 @@ if (!empty($_GET['users_id'])) {
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<?php
<?php if (AVideoPlugin::isEnabledByName('MonetizeUsers')) {
if(AVideoPlugin::isEnabledByName('MonetizeUsers')){
include $global['systemRootPath'] . 'plugin/MonetizeUsers/View/report.php'; include $global['systemRootPath'] . 'plugin/MonetizeUsers/View/report.php';
} }
?>
include $global['systemRootPath'] . 'view/include/footer.php'; <script>
?> $(document).ready(function() {
<script>
$(document).ready(function () {
var grid = $("#grid").bootgrid({ var grid = $("#grid").bootgrid({
labels: { labels: {
@ -73,14 +58,14 @@ if (!empty($_GET['users_id'])) {
ajax: true, ajax: true,
url: "<?php echo $global['webSiteRootURL']; ?>plugin/YPTWallet/view/log.json.php?users_id=<?php echo $users_id; ?>", url: "<?php echo $global['webSiteRootURL']; ?>plugin/YPTWallet/view/log.json.php?users_id=<?php echo $users_id; ?>",
formatters: { formatters: {
"description": function (column, row) { "description": function(column, row) {
if(row.information){ if (row.information) {
return row.information; return row.information;
}else{ } else {
return row.description; return row.description;
} }
}, },
"status": function (column, row) { "status": function(column, row) {
var status = ""; var status = "";
if (row.type == "<?php echo YPTWallet::MANUAL_ADD; ?>" || row.type == "<?php echo YPTWallet::MANUAL_WITHDRAW; ?>") { if (row.type == "<?php echo YPTWallet::MANUAL_ADD; ?>" || row.type == "<?php echo YPTWallet::MANUAL_WITHDRAW; ?>") {
status = "<span class='label label-success'>Success</span>"; status = "<span class='label label-success'>Success</span>";
@ -89,8 +74,8 @@ if (!empty($_GET['users_id'])) {
} else if (row.status == 'canceled') { } else if (row.status == 'canceled') {
status = "<span class='label label-danger'>Canceled</span>"; status = "<span class='label label-danger'>Canceled</span>";
} }
<?php <?php
if (User::isAdmin()) { if (User::isAdmin()) {
?> ?>
status += "<br><br><div class=\"btn-group\"><button class='btn btn-default btn-xs command-status-success'>Success</button>"; status += "<br><br><div class=\"btn-group\"><button class='btn btn-default btn-xs command-status-success'>Success</button>";
@ -98,12 +83,12 @@ if (User::isAdmin()) {
status += "<button class='btn btn-default btn-xs command-status-canceled'>Canceled</button><div>"; status += "<button class='btn btn-default btn-xs command-status-canceled'>Canceled</button><div>";
<?php <?php
} }
?> ?>
}else{ } else {
if (row.status == 'success') { if (row.status == 'success') {
status = "<span class='label label-success'>Success</span>"; status = "<span class='label label-success'>Success</span>";
}else if (row.status == 'pending') { } else if (row.status == 'pending') {
status = "<span class='label label-warning'>Pending</span>"; status = "<span class='label label-warning'>Pending</span>";
} else if (row.status == 'canceled') { } else if (row.status == 'canceled') {
status = "<span class='label label-danger'>Canceled</span>"; status = "<span class='label label-danger'>Canceled</span>";
@ -112,50 +97,51 @@ if (User::isAdmin()) {
return status; return status;
} }
} }
}).on("loaded.rs.jquery.bootgrid", function () { }).on("loaded.rs.jquery.bootgrid", function() {
<?php <?php
if (User::isAdmin()) { if (User::isAdmin()) {
?> ?>
/* Executes after data is loaded and rendered */ /* Executes after data is loaded and rendered */
grid.find(".command-status-success").on("click", function (e) { grid.find(".command-status-success").on("click", function(e) {
var row_index = $(this).closest('tr').index(); var row_index = $(this).closest('tr').index();
var row = $("#grid").bootgrid("getCurrentRows")[row_index]; var row = $("#grid").bootgrid("getCurrentRows")[row_index];
setStatus("success", row.id); setStatus("success", row.id);
}); });
grid.find(".command-status-pending").on("click", function (e) { grid.find(".command-status-pending").on("click", function(e) {
var row_index = $(this).closest('tr').index(); var row_index = $(this).closest('tr').index();
var row = $("#grid").bootgrid("getCurrentRows")[row_index]; var row = $("#grid").bootgrid("getCurrentRows")[row_index];
setStatus("pending", row.id); setStatus("pending", row.id);
}); });
grid.find(".command-status-canceled").on("click", function (e) { grid.find(".command-status-canceled").on("click", function(e) {
var row_index = $(this).closest('tr').index(); var row_index = $(this).closest('tr').index();
var row = $("#grid").bootgrid("getCurrentRows")[row_index]; var row = $("#grid").bootgrid("getCurrentRows")[row_index];
setStatus("canceled", row.id); setStatus("canceled", row.id);
}); });
<?php <?php
} }
?>
});
});
<?php
if (User::isAdmin()) {
?> ?>
});
});
<?php
if (User::isAdmin()) {
?>
function setStatus(status, wallet_log_id) { function setStatus(status, wallet_log_id) {
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: webSiteRootURL+'plugin/YPTWallet/view/changeLogStatus.json.php', url: webSiteRootURL + 'plugin/YPTWallet/view/changeLogStatus.json.php',
type: "POST", type: "POST",
data: { data: {
status: status, status: status,
wallet_log_id: wallet_log_id wallet_log_id: wallet_log_id
}, },
success: function (response) { success: function(response) {
$(".walletBalance").text(response.walletBalance); $(".walletBalance").text(response.walletBalance);
modal.hidePleaseWait(); modal.hidePleaseWait();
if (response.error) { if (response.error) {
setTimeout(function () { setTimeout(function() {
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error"); avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
}, 500); }, 500);
} else { } else {
@ -165,9 +151,9 @@ if (User::isAdmin()) {
}); });
} }
<?php <?php
} }
?>
</script>
<?php
$_page->print();
?> ?>
</script>
</body>
</html>

View file

@ -10,21 +10,9 @@ if (!User::isLogged()) {
$plugin = AVideoPlugin::loadPluginIfEnabled("YPTWallet"); $plugin = AVideoPlugin::loadPluginIfEnabled("YPTWallet");
$obj = $plugin->getDataObject(); $obj = $plugin->getDataObject();
$options = _json_decode($obj->addFundsOptions); $options = _json_decode($obj->addFundsOptions);
$_page = new Page(array('Add Funds'));
?> ?>
<!DOCTYPE html> <div class="container">
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo __("Add Funds") . $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="row"> <div class="row">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"><?php echo __("Add Funds"); ?></div> <div class="panel-heading"><?php echo __("Add Funds"); ?></div>
@ -59,7 +47,7 @@ $options = _json_decode($obj->addFundsOptions);
?> ?>
<div class="form-group"> <div class="form-group">
<label for="value"><?php echo __("Specify Amount"); ?> <?php echo $obj->currency_symbol; ?> <?php echo $obj->currency; ?></label> <label for="value"><?php echo __("Specify Amount"); ?> <?php echo $obj->currency_symbol; ?> <?php echo $obj->currency; ?></label>
<select class="form-control" id="value" > <select class="form-control" id="value">
<?php <?php
foreach ($options as $value) { foreach ($options as $value) {
?> ?>
@ -82,32 +70,27 @@ $options = _json_decode($obj->addFundsOptions);
</div> </div>
</div> </div>
<script>
$(document).ready(function() {
<?php $('#manualAddFundsPageButton').click(function() {
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script>
$(document).ready(function () {
$('#manualAddFundsPageButton').click(function () {
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: webSiteRootURL+'plugin/YPTWallet/view/manualAddFunds.json.php', url: webSiteRootURL + 'plugin/YPTWallet/view/manualAddFunds.json.php',
type: "POST", type: "POST",
data: { data: {
value: $('#value').val(), value: $('#value').val(),
information: $('#information').val(), information: $('#information').val(),
autoWithdraw: <?php echo empty($autoWithdraw)?0:1; ?> autoWithdraw: <?php echo empty($autoWithdraw) ? 0 : 1; ?>
}, },
success: function (response) { success: function(response) {
modal.hidePleaseWait(); modal.hidePleaseWait();
if (response.error) { if (response.error) {
setTimeout(function () { setTimeout(function() {
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error"); avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
}, 500); }, 500);
} else { } else {
setTimeout(function () { setTimeout(function() {
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your request was sent"); ?>", "success"); avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your request was sent"); ?>", "success");
}, 500); }, 500);
} }
@ -115,7 +98,7 @@ $options = _json_decode($obj->addFundsOptions);
}); });
}); });
}); });
</script> </script>
<?php
</body> $_page->print();
</html> ?>

View file

@ -10,20 +10,9 @@ if (!User::isLogged()) {
$plugin = AVideoPlugin::loadPluginIfEnabled("YPTWallet"); $plugin = AVideoPlugin::loadPluginIfEnabled("YPTWallet");
$obj = $plugin->getDataObject(); $obj = $plugin->getDataObject();
$options = _json_decode($obj->withdrawFundsOptions); $options = _json_decode($obj->withdrawFundsOptions);
$_page = new Page(array('Withdraw Funds'));
?> ?>
<!DOCTYPE html> <div class="container">
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo __("Withdraw Funds") . $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="row"> <div class="row">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
@ -68,7 +57,7 @@ $options = _json_decode($obj->withdrawFundsOptions);
?> ?>
<div class="form-group"> <div class="form-group">
<label for="value"><?php echo __("Specify Amount"); ?> <?php echo $obj->currency_symbol; ?> <?php echo $obj->currency; ?></label> <label for="value"><?php echo __("Specify Amount"); ?> <?php echo $obj->currency_symbol; ?> <?php echo $obj->currency; ?></label>
<select class="form-control" id="value" > <select class="form-control" id="value">
<?php <?php
foreach ($options as $value) { foreach ($options as $value) {
?> ?>
@ -90,30 +79,27 @@ $options = _json_decode($obj->withdrawFundsOptions);
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<?php <script>
include $global['systemRootPath'] . 'view/include/footer.php'; $(document).ready(function() {
?> $('#manualWithdrawFundsPageButton').click(function() {
<script>
$(document).ready(function () {
$('#manualWithdrawFundsPageButton').click(function () {
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: webSiteRootURL+'plugin/YPTWallet/view/manualWithdrawFunds.json.php', url: webSiteRootURL + 'plugin/YPTWallet/view/manualWithdrawFunds.json.php',
type: "POST", type: "POST",
data: { data: {
value: $('#value').val(), value: $('#value').val(),
information: $('#information').val() information: $('#information').val()
}, },
success: function (response) { success: function(response) {
$(".walletBalance").text(response.walletBalance); $(".walletBalance").text(response.walletBalance);
modal.hidePleaseWait(); modal.hidePleaseWait();
if (response.error) { if (response.error) {
setTimeout(function () { setTimeout(function() {
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error"); avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
}, 500); }, 500);
} else { } else {
setTimeout(function () { setTimeout(function() {
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your request was sent"); ?>", "success"); avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your request was sent"); ?>", "success");
}, 500); }, 500);
} }
@ -121,7 +107,7 @@ $options = _json_decode($obj->withdrawFundsOptions);
}); });
}); });
}); });
</script> </script>
<?php
</body> $_page->print();
</html> ?>

View file

@ -7,21 +7,10 @@ if (!User::isAdmin()) {
forbiddenPage("You can not do this"); forbiddenPage("You can not do this");
exit; exit;
} }
?>
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo __("Pending Requests") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>"> $_page = new Page(array('Pending Requests'));
<?php ?>
include $global['systemRootPath'] . 'view/include/navbar.php'; <div class="container">
?>
<div class="container">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
<?php <?php
@ -35,7 +24,7 @@ if (!User::isAdmin()) {
<tr> <tr>
<th data-column-id="user" data-width="150px"><?php echo __("User"); ?></th> <th data-column-id="user" data-width="150px"><?php echo __("User"); ?></th>
<th data-column-id="valueText" data-width="150px"><?php echo __("Value"); ?></th> <th data-column-id="valueText" data-width="150px"><?php echo __("Value"); ?></th>
<th data-column-id="description" data-formatter="description" ><?php echo __("Description"); ?></th> <th data-column-id="description" data-formatter="description"><?php echo __("Description"); ?></th>
<th data-column-id="status" data-formatter="status" data-width="150px"><?php echo __("Status"); ?></th> <th data-column-id="status" data-formatter="status" data-width="150px"><?php echo __("Status"); ?></th>
<th data-column-id="created" data-order="desc" data-formatter="created" data-width="150px"><?php echo __("Date"); ?></th> <th data-column-id="created" data-order="desc" data-formatter="created" data-width="150px"><?php echo __("Date"); ?></th>
</tr> </tr>
@ -44,13 +33,9 @@ if (!User::isAdmin()) {
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<script>
<?php $(document).ready(function() {
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script>
$(document).ready(function () {
var grid = $("#grid").bootgrid({ var grid = $("#grid").bootgrid({
labels: { labels: {
@ -64,33 +49,33 @@ if (!User::isAdmin()) {
ajax: true, ajax: true,
url: "<?php echo $global['webSiteRootURL']; ?>plugin/YPTWallet/view/pendingRequests.json.php", url: "<?php echo $global['webSiteRootURL']; ?>plugin/YPTWallet/view/pendingRequests.json.php",
formatters: { formatters: {
"status": function (column, row) { "status": function(column, row) {
var status = ""; var status = "";
status = "<div class=\"btn-group\"><button class='btn btn-success btn-xs command-status-success'>Confirm</button>"; status = "<div class=\"btn-group\"><button class='btn btn-success btn-xs command-status-success'>Confirm</button>";
status += "<button class='btn btn-danger btn-xs command-status-canceled'>Cancel</button><div>"; status += "<button class='btn btn-danger btn-xs command-status-canceled'>Cancel</button><div>";
return status; return status;
}, },
"description": function (column, row) { "description": function(column, row) {
if(row.information){ if (row.information) {
return row.information; return row.information;
}else{ } else {
return row.description; return row.description;
} }
}, },
"created": function (column, row) { "created": function(column, row) {
return '<span class="pendingTimers">'+row.created+'</span>'; return '<span class="pendingTimers">' + row.created + '</span>';
} }
} }
}).on("loaded.rs.jquery.bootgrid", function () { }).on("loaded.rs.jquery.bootgrid", function() {
/* Executes after data is loaded and rendered */ /* Executes after data is loaded and rendered */
grid.find(".command-status-success").on("click", function (e) { grid.find(".command-status-success").on("click", function(e) {
var row_index = $(this).closest('tr').index(); var row_index = $(this).closest('tr').index();
var row = $("#grid").bootgrid("getCurrentRows")[row_index]; var row = $("#grid").bootgrid("getCurrentRows")[row_index];
setStatus("success", row.id); setStatus("success", row.id);
}); });
grid.find(".command-status-canceled").on("click", function (e) { grid.find(".command-status-canceled").on("click", function(e) {
var row_index = $(this).closest('tr').index(); var row_index = $(this).closest('tr').index();
var row = $("#grid").bootgrid("getCurrentRows")[row_index]; var row = $("#grid").bootgrid("getCurrentRows")[row_index];
setStatus("canceled", row.id); setStatus("canceled", row.id);
@ -98,20 +83,21 @@ if (!User::isAdmin()) {
createTimer('.pendingTimers'); createTimer('.pendingTimers');
}); });
}); });
function setStatus(status, wallet_log_id) { function setStatus(status, wallet_log_id) {
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: webSiteRootURL+'plugin/YPTWallet/view/changeLogStatus.json.php', url: webSiteRootURL + 'plugin/YPTWallet/view/changeLogStatus.json.php',
type: "POST", type: "POST",
data: { data: {
status: status, status: status,
wallet_log_id: wallet_log_id wallet_log_id: wallet_log_id
}, },
success: function (response) { success: function(response) {
$(".walletBalance").text(response.walletBalance); $(".walletBalance").text(response.walletBalance);
modal.hidePleaseWait(); modal.hidePleaseWait();
if (response.error) { if (response.error) {
setTimeout(function () { setTimeout(function() {
avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error"); avideoAlert("<?php echo __("Sorry!"); ?>", response.msg, "error");
}, 500); }, 500);
} else { } else {
@ -120,7 +106,7 @@ if (!User::isAdmin()) {
} }
}); });
} }
</script>
</script> <?php
</body> $_page->print();
</html> ?>

View file

@ -2,41 +2,27 @@
$isFirstPage = 1; $isFirstPage = 1;
global $global, $config; global $global, $config;
if (!isset($global['systemRootPath'])) { if (!isset($global['systemRootPath'])) {
require_once '../videos/configuration.php'; require_once __DIR__ . '/../../../videos/configuration.php';
} }
require_once $global['systemRootPath'] . 'objects/video.php'; require_once $global['systemRootPath'] . 'objects/video.php';
require_once $global['systemRootPath'] . 'objects/category.php'; require_once $global['systemRootPath'] . 'objects/category.php';
if(AVideoPlugin::isEnabledByName('PlayLists')){ if (AVideoPlugin::isEnabledByName('PlayLists')) {
PlayLists::loadScripts(); PlayLists::loadScripts();
} }
$obj = AVideoPlugin::getObjectData("YouPHPFlix2"); $obj = AVideoPlugin::getObjectData("YouPHPFlix2");
$_page = new Page(array(''));
$_page->setIncludeInHead(array('plugin/YouPHPFlix2/view/modeFlixHead.php'));
?> ?>
<!DOCTYPE html> <div class="container-fluid nopadding flickity-area" id="mainContainer" style="display:none;">
<html>
<head>
<script>
var webSiteRootURL = '<?php echo $global['webSiteRootURL']; ?>';
</script>
<?php
include $global['systemRootPath'] . 'plugin/YouPHPFlix2/view/modeFlixHead.php';
include $global['systemRootPath'] . 'view/include/head.php';
?>
<title><?php if(!empty($_REQUEST['catName'])){echo $_REQUEST['catName'].' - ';}; echo $config->getWebSiteTitle(); ?></title>
</head>
<body class="<?php echo $global['bodyClass']; ?>" style="overflow-x: hidden;">
<?php include $global['systemRootPath'] . 'view/include/navbar.php'; ?>
<div class="container-fluid nopadding flickity-area" id="mainContainer" style="display:none;">
<?php <?php
include $global['systemRootPath'] . 'plugin/YouPHPFlix2/view/modeFlixBody.php'; include $global['systemRootPath'] . 'plugin/YouPHPFlix2/view/modeFlixBody.php';
?> ?>
</div> </div>
<?php <?php
include $global['systemRootPath'] . 'plugin/YouPHPFlix2/view/modeFlixFooter.php'; include $global['systemRootPath'] . 'plugin/YouPHPFlix2/view/modeFlixFooter.php';
?> ?>
<?php
</body> $_page->print();
</html> ?>

View file

@ -4,21 +4,8 @@ global $global, $config;
if (!isset($global['systemRootPath'])) { if (!isset($global['systemRootPath'])) {
require_once '../videos/configuration.php'; require_once '../videos/configuration.php';
} }
$_page = new Page(array('Dashboard'));
$_page->setIncludeInHead(array('view/charts_head.php'));
include $global['systemRootPath'] . 'view/charts_body.php';
$_page->print();
?> ?>
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo __("Dashboard") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
include $global['systemRootPath'] . 'view/charts_head.php';
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
include $global['systemRootPath'] . 'view/charts_body.php';
include_once $global['systemRootPath'] . 'view/include/footer.php';
?>
</body>
</html>

View file

@ -41,10 +41,6 @@
<?php echo AVideoPlugin::getChartContent(); ?> <?php echo AVideoPlugin::getChartContent(); ?>
</div> </div>
</div> </div>
<script type="text/javascript" src="<?php echo getURL('view/css/DataTables/datatables.min.js'); ?>"></script>
<?php
include_once $global['systemRootPath'] . 'view/include/footer.php';
?>
<script type="text/javascript"> <script type="text/javascript">
$(document).ready(function () { $(document).ready(function () {
<?php if (!empty($_GET['jump'])) { ?> <?php if (!empty($_GET['jump'])) { ?>

View file

@ -11,30 +11,8 @@ if (!User::isAdmin()) {
forbiddenPage(''); forbiddenPage('');
} }
//var_dump($config);exit; $_page = new Page(array('Configuration'));
$_page->setIncludeInHead(array('view/configurations_head.php'));
include $global['systemRootPath'] . 'view/configurations_body.php';
$_page->print();
?> ?>
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo __("Configuration") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
include $global['systemRootPath'] . 'view/configurations_head.php';
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
?>
<div class="container-fluid">
<?php
include $global['systemRootPath'] . 'view/configurations_body.php';
?>
</div>
<?php
include $global['systemRootPath'] . 'view/include/footer.php';
?>
</body>
</html>

View file

@ -1,7 +1,7 @@
<?php <?php
if (User::isAdmin()) { if (User::isAdmin()) {
?> ?>
<div class="container-fluid">
<form class="form-compact form-horizontal" id="updateConfigForm" onsubmit=""> <form class="form-compact form-horizontal" id="updateConfigForm" onsubmit="">
<div class="panel panel-default "> <div class="panel panel-default ">
<div class="panel-heading tabbable-line"> <div class="panel-heading tabbable-line">
@ -653,7 +653,7 @@ if (User::isAdmin()) {
</div> </div>
</form> </form>
</div>
<script> <script>
var logoCrop; var logoCrop;
var logoSmallCrop; var logoSmallCrop;
@ -700,7 +700,7 @@ if (User::isAdmin()) {
evt.preventDefault(); evt.preventDefault();
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: webSiteRootURL+'objects/sendEmail.json.php', url: webSiteRootURL + 'objects/sendEmail.json.php',
data: { data: {
captcha: $('#captchaText').val(), captcha: $('#captchaText').val(),
first_name: "Your Site test", first_name: "Your Site test",

View file

@ -9,22 +9,9 @@ if (!Category::canCreateCategory()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not manage categories")); header("Location: {$global['webSiteRootURL']}?error=" . __("You can not manage categories"));
exit; exit;
} }
$_page = new Page(array('Categories'));
$_page->setIncludeInHead(array('view/managerCategories_head.php'));
include $global['systemRootPath'] . 'view/managerCategories_body.php';
$_page->print();
?> ?>
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo __("Categories") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
include $global['systemRootPath'] . 'view/managerCategories_head.php';
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
include $global['systemRootPath'] . 'view/managerCategories_body.php';
include $global['systemRootPath'] . 'view/include/footer.php'; ?>
</body>
</html>

View file

@ -7,22 +7,8 @@ if (!User::isAdmin()) {
gotToLoginAndComeBackHere(__("You can not manage plugins")); gotToLoginAndComeBackHere(__("You can not manage plugins"));
exit; exit;
} }
$_page = new Page(array('Plugins'));
$_page->setIncludeInHead(array('view/managerPlugins_head.php'));
include $global['systemRootPath'] . 'view/managerPlugins_body.php';
$_page->print();
?> ?>
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo __("Plugins") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
include $global['systemRootPath'] . 'view/managerPlugins_head.php';
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
include $global['systemRootPath'] . 'view/managerPlugins_body.php';
include $global['systemRootPath'] . 'view/include/footer.php';
?>
</body>
</html>

View file

@ -8,27 +8,8 @@ if (!Permissions::canAdminUsers()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not manage users")); header("Location: {$global['webSiteRootURL']}?error=" . __("You can not manage users"));
exit; exit;
} }
$_page = new Page(array('Users'));
$_page->setIncludeInHead(array('view/managerUsers_head.php'));
include $global['systemRootPath'] . 'view/managerUsers_body.php';
$_page->print();
?> ?>
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo __("Users") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
include $global['systemRootPath'] . 'view/managerUsers_head.php';
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
?>
<div class="container-fluid">
<?php
include $global['systemRootPath'] . 'view/managerUsers_body.php';
?>
</div>
<?php
include $global['systemRootPath'] . 'view/include/footer.php';
?>
</body>
</html>

View file

@ -7,29 +7,8 @@ require_once $global['systemRootPath'] . 'objects/user.php';
if (!Permissions::canAdminUserGroups()) { if (!Permissions::canAdminUserGroups()) {
forbiddenPage(__("You can not manage do this")); forbiddenPage(__("You can not manage do this"));
} }
$_page = new Page(array('User Groups'));
$_page->setIncludeInHead(array('view/managerUsersGroups_head.php'));
include $global['systemRootPath'] . 'view/managerUsersGroups_body.php';
$_page->print();
?> ?>
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo __("UserGroups") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
include $global['systemRootPath'] . 'view/managerUsersGroups_head.php';
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
?>
<div class="container-fluid">
<?php
include $global['systemRootPath'] . 'view/managerUsersGroups_body.php';
?>
</div>
<?php
include $global['systemRootPath'] . 'view/include/footer.php';
?>
</body>
</html>

View file

@ -1,6 +1,7 @@
<div class="panel panel-default"> <div class="container-fluid">
<div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
<div class="btn-group" > <div class="btn-group">
<button type="button" class="btn btn-default" id="addUserGroupsBtn"> <button type="button" class="btn btn-default" id="addUserGroupsBtn">
<i class="fa-solid fa-plus"></i></span> <?php echo __("New User Groups"); ?> <i class="fa-solid fa-plus"></i></span> <?php echo __("New User Groups"); ?>
</button> </button>
@ -18,16 +19,16 @@
<thead> <thead>
<tr> <tr>
<th data-column-id="group_name" data-order="asc"><?php echo __("Name"); ?></th> <th data-column-id="group_name" data-order="asc"><?php echo __("Name"); ?></th>
<th data-column-id="created" data-width="150px" ><?php echo __("Created"); ?></th> <th data-column-id="created" data-width="150px"><?php echo __("Created"); ?></th>
<th data-column-id="modified" data-width="150px" ><?php echo __("Modified"); ?></th> <th data-column-id="modified" data-width="150px"><?php echo __("Modified"); ?></th>
<th data-column-id="commands" data-formatter="commands" data-sortable="false" data-width="100px" ></th> <th data-column-id="commands" data-formatter="commands" data-sortable="false" data-width="100px"></th>
</tr> </tr>
</thead> </thead>
</table> </table>
</div> </div>
</div> </div>
<div id="groupFormModal" class="modal fade" tabindex="-1" role="dialog"> <div id="groupFormModal" class="modal fade" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document"> <div class="modal-dialog" role="document">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">
@ -36,7 +37,7 @@
</div> </div>
<div class="modal-body"> <div class="modal-body">
<form class="form-compact" id="updateUserGroupsForm" onsubmit=""> <form class="form-compact" id="updateUserGroupsForm" onsubmit="">
<input type="hidden" id="inputUserGroupsId" name="id" > <input type="hidden" id="inputUserGroupsId" name="id">
<label for="inputName" class="sr-only"><?php echo __("Name"); ?></label> <label for="inputName" class="sr-only"><?php echo __("Name"); ?></label>
<input type="text" id="inputName" name="group_name" class="form-control" placeholder="<?php echo __("Name"); ?>" required autofocus> <input type="text" id="inputName" name="group_name" class="form-control" placeholder="<?php echo __("Name"); ?>" required autofocus>
@ -65,7 +66,7 @@
</div> </div>
</div><!-- /.modal-content --> </div><!-- /.modal-content -->
</div><!-- /.modal-dialog --> </div><!-- /.modal-dialog -->
</div><!-- /.modal --> </div><!-- /.modal -->
</div><!--/.container--> </div><!--/.container-->
<div id="pluginsPermissionModal" class="modal fade" tabindex="-1" role="dialog"> <div id="pluginsPermissionModal" class="modal fade" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document"> <div class="modal-dialog" role="document">
@ -74,22 +75,22 @@
</div> </div>
</div> </div>
</div> </div>
<script>
<script>
function pluginPermissionsBtn(plugins_id) { function pluginPermissionsBtn(plugins_id) {
modal.showPleaseWait(); modal.showPleaseWait();
$('#groupFormModal').modal('hide'); $('#groupFormModal').modal('hide');
$("#pluginsPermissionModalContent").html(''); $("#pluginsPermissionModalContent").html('');
$.ajax({ $.ajax({
url: webSiteRootURL+'plugin/Permissions/getPermissionsFromPlugin.html.php?plugins_id=' + plugins_id, url: webSiteRootURL + 'plugin/Permissions/getPermissionsFromPlugin.html.php?plugins_id=' + plugins_id,
success: function (response) { success: function(response) {
modal.hidePleaseWait(); modal.hidePleaseWait();
$("#pluginsPermissionModalContent").html(response); $("#pluginsPermissionModalContent").html(response);
$('#pluginsPermissionModal').modal(); $('#pluginsPermissionModal').modal();
} }
}); });
} }
$(document).ready(function () { $(document).ready(function() {
var grid = $("#grid").bootgrid({ var grid = $("#grid").bootgrid({
labels: { labels: {
noResults: "<?php echo __("No results found!"); ?>", noResults: "<?php echo __("No results found!"); ?>",
@ -102,16 +103,15 @@
ajax: true, ajax: true,
url: "<?php echo $global['webSiteRootURL'] . "objects/usersGroups.json.php"; ?>", url: "<?php echo $global['webSiteRootURL'] . "objects/usersGroups.json.php"; ?>",
formatters: { formatters: {
"commands": function (column, row) "commands": function(column, row) {
{
var editBtn = '<button type="button" class="btn btn-xs btn-default command-edit" data-row-id="' + row.id + '" data-toggle="tooltip" data-placement="left" title="<?php echo __('Edit'); ?>"><i class="fa-solid fa-pen-to-square"></i></button>' var editBtn = '<button type="button" class="btn btn-xs btn-default command-edit" data-row-id="' + row.id + '" data-toggle="tooltip" data-placement="left" title="<?php echo __('Edit'); ?>"><i class="fa-solid fa-pen-to-square"></i></button>'
var deleteBtn = '<button type="button" class="btn btn-default btn-xs command-delete" data-row-id="' + row.id + ' data-toggle="tooltip" data-placement="left" title="<?php echo __('Delete'); ?>""><i class="fa fa-trash"></i></button>'; var deleteBtn = '<button type="button" class="btn btn-default btn-xs command-delete" data-row-id="' + row.id + ' data-toggle="tooltip" data-placement="left" title="<?php echo __('Delete'); ?>""><i class="fa fa-trash"></i></button>';
return editBtn + deleteBtn; return editBtn + deleteBtn;
} }
} }
}).on("loaded.rs.jquery.bootgrid", function () { }).on("loaded.rs.jquery.bootgrid", function() {
/* Executes after data is loaded and rendered */ /* Executes after data is loaded and rendered */
grid.find(".command-edit").on("click", function (e) { grid.find(".command-edit").on("click", function(e) {
var row_index = $(this).closest('tr').index(); var row_index = $(this).closest('tr').index();
var row = $("#grid").bootgrid("getCurrentRows")[row_index]; var row = $("#grid").bootgrid("getCurrentRows")[row_index];
console.log(row); console.log(row);
@ -122,19 +122,19 @@
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: webSiteRootURL+'plugin/Permissions/getPermissions.json.php?users_groups_id=' + row.id, url: webSiteRootURL + 'plugin/Permissions/getPermissions.json.php?users_groups_id=' + row.id,
success: function (response) { success: function(response) {
console.log(response); console.log(response);
$(".permissions").prop("checked", false); $(".permissions").prop("checked", false);
for (var key in response) { for (var key in response) {
if(typeof key !== 'string'){ if (typeof key !== 'string') {
continue; continue;
} }
for (var subkey in response[key]) { for (var subkey in response[key]) {
if(typeof subkey !== 'string' || isNaN(subkey)){ if (typeof subkey !== 'string' || isNaN(subkey)) {
continue; continue;
} }
var selector = "."+key+"[value=\""+response[key][subkey]+"\"]"; var selector = "." + key + "[value=\"" + response[key][subkey] + "\"]";
console.log(selector, $(selector)); console.log(selector, $(selector));
$(selector).prop("checked", true); $(selector).prop("checked", true);
} }
@ -145,7 +145,7 @@
}); });
}).end().find(".command-delete").on("click", function (e) { }).end().find(".command-delete").on("click", function(e) {
var row_index = $(this).closest('tr').index(); var row_index = $(this).closest('tr').index();
var row = $("#grid").bootgrid("getCurrentRows")[row_index]; var row = $("#grid").bootgrid("getCurrentRows")[row_index];
@ -156,15 +156,17 @@
buttons: true, buttons: true,
dangerMode: true, dangerMode: true,
}) })
.then(function (willDelete) { .then(function(willDelete) {
if (willDelete) { if (willDelete) {
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: webSiteRootURL+'objects/userGroupsDelete.json.php', url: webSiteRootURL + 'objects/userGroupsDelete.json.php',
data: {"id": row.id}, data: {
"id": row.id
},
type: 'post', type: 'post',
success: function (response) { success: function(response) {
if (response.status === "1") { if (response.status === "1") {
$("#grid").bootgrid("reload"); $("#grid").bootgrid("reload");
avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your group has been deleted!"); ?>", "success"); avideoAlert("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your group has been deleted!"); ?>", "success");
@ -179,7 +181,7 @@
}); });
}); });
$('#addUserGroupsBtn').click(function (evt) { $('#addUserGroupsBtn').click(function(evt) {
$('#inputUserGroupsId').val(''); $('#inputUserGroupsId').val('');
$('#inputName').val(''); $('#inputName').val('');
$('#inputCleanName').val(''); $('#inputCleanName').val('');
@ -189,18 +191,18 @@
}); });
$('#saveUserGroupsBtn').click(function (evt) { $('#saveUserGroupsBtn').click(function(evt) {
$('#updateUserGroupsForm').submit(); $('#updateUserGroupsForm').submit();
}); });
$('#updateUserGroupsForm').submit(function (evt) { $('#updateUserGroupsForm').submit(function(evt) {
evt.preventDefault(); evt.preventDefault();
modal.showPleaseWait(); modal.showPleaseWait();
$.ajax({ $.ajax({
url: '<?php echo $global['webSiteRootURL'] . "objects/userGroupsAddNew.json.php"; ?>', url: '<?php echo $global['webSiteRootURL'] . "objects/userGroupsAddNew.json.php"; ?>',
data: $(this).serialize(), data: $(this).serialize(),
type: 'post', type: 'post',
success: function (response) { success: function(response) {
if (response.status) { if (response.status) {
$('#groupFormModal').modal('hide'); $('#groupFormModal').modal('hide');
$("#grid").bootgrid("reload"); $("#grid").bootgrid("reload");
@ -214,5 +216,4 @@
return false; return false;
}); });
}); });
</script> </script>

View file

@ -16,7 +16,8 @@ foreach ($userGroups as $value) {
?> ?>
<link href="<?php echo getURL('node_modules/flickity/dist/flickity.min.css'); ?>" rel="stylesheet" type="text/css" /> <link href="<?php echo getURL('node_modules/flickity/dist/flickity.min.css'); ?>" rel="stylesheet" type="text/css" />
<div class="panel panel-default"> <div class="container-fluid">
<div class="panel panel-default">
<div class="panel-heading tabbable-line"> <div class="panel-heading tabbable-line">
<div class="btn-group pull-right"> <div class="btn-group pull-right">
<button type="button" class="btn btn-default" id="addUserBtn"> <button type="button" class="btn btn-default" id="addUserBtn">
@ -92,10 +93,10 @@ foreach ($userGroups as $value) {
?> ?>
</div> </div>
</div> </div>
</div> </div>
<div id="userFormModal" class="modal fade" tabindex="-1" role="dialog"> <div id="userFormModal" class="modal fade" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document"> <div class="modal-dialog" role="document">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">
@ -254,10 +255,10 @@ foreach ($userGroups as $value) {
</div> </div>
</div><!-- /.modal-content --> </div><!-- /.modal-content -->
</div><!-- /.modal-dialog --> </div><!-- /.modal-dialog -->
</div><!-- /.modal --> </div><!-- /.modal -->
<div id="userInfoModal" class="modal fade" tabindex="-1" role="dialog"> <div id="userInfoModal" class="modal fade" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document"> <div class="modal-dialog" role="document">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">
@ -345,8 +346,8 @@ foreach ($userGroups as $value) {
</div> </div>
</div><!-- /.modal-content --> </div><!-- /.modal-content -->
</div><!-- /.modal-dialog --> </div><!-- /.modal-dialog -->
</div><!-- /.modal --> </div><!-- /.modal -->
</div>
<script src="<?php echo getURL('node_modules/flickity/dist/flickity.pkgd.min.js'); ?>" type="text/javascript"></script> <script src="<?php echo getURL('node_modules/flickity/dist/flickity.pkgd.min.js'); ?>" type="text/javascript"></script>
<script src="<?php echo getURL('node_modules/flickity-bg-lazyload/bg-lazyload.js'); ?>" type="text/javascript"></script> <script src="<?php echo getURL('node_modules/flickity-bg-lazyload/bg-lazyload.js'); ?>" type="text/javascript"></script>
@ -401,7 +402,7 @@ foreach ($userGroups as $value) {
selectedUserGroups.push($(this).val()); selectedUserGroups.push($(this).val());
}); });
$.ajax({ $.ajax({
url: webSiteRootURL+'objects/userAddNew.json.php', url: webSiteRootURL + 'objects/userAddNew.json.php',
data: { data: {
<?php <?php
print AVideoPlugin::updateUserFormJS(); print AVideoPlugin::updateUserFormJS();

View file

@ -19,24 +19,9 @@ if (!empty($_GET['iframe'])) {
$_GET['noNavbar'] = 1; $_GET['noNavbar'] = 1;
} }
$_page = new Page(array('Videos'));
$_page->loadBasicCSSAndJS();
$_page->setIncludeInHead(array('view/managerVideos_head.php'));
include $global['systemRootPath'] . 'view/managerVideos_body.php';
$_page->print();
?> ?>
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<title><?php echo __("Audio and Video") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
include $global['systemRootPath'] . 'view/managerVideos_head.php';
?>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
include $global['systemRootPath'] . 'view/managerVideos_body.php';
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script src="<?php echo getCDN(); ?>view/js/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js" type="text/javascript"></script>
</body>
</html>