1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +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,20 +189,12 @@ switch ($_GET['page']) {
$includeBody = $global['systemRootPath'] . 'view/charts_body.php';
break;
}
?>
<!DOCTYPE html>
<html lang="<?php echo getLanguage(); ?>">
<head>
<?php
echo getHTMLTitle(__("Administration"));
?>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
$_page = new Page(array('Administration'));
if (!empty($includeHead) && file_exists($includeHead)) {
echo "<!-- Include $includeHead -->";
include $includeHead;
echo "<!-- END Include $includeHead -->";
$_page->setIncludeInHead(array($includeHead));
}
?>
<style>
@media (max-width: 767px) {
@ -231,12 +223,6 @@ switch ($_GET['page']) {
opacity: 1;
}
</style>
</head>
<body class="<?php echo $global['bodyClass']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
?>
<div class="container-fluid">
<br>
<div class="row">
@ -346,13 +332,7 @@ switch ($_GET['page']) {
</div>
</div>
</div>
<?php
include_once $global['systemRootPath'] . 'view/include/footer.php';
?>
<script>
$(document).ready(function() {
$('.adminOptionsForm').submit(function(e) {
e.preventDefault();
@ -370,16 +350,20 @@ switch ($_GET['page']) {
modal.showPleaseWait();
$.ajax({
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',
success: function(response) {
modal.hidePleaseWait();
}
});
});
});
</script>
</body>
</html>
<?php
$_page->print();
?>

View file

@ -14,6 +14,7 @@ class Page
private $includeFooter = true;
private $includeBGAnimation = false;
private $includeInHead = array();
private $includeInBody = array();
private $includeInFooter = array();
public function __construct($title, $bodyClass = '', $loadBasicCSSAndJS = false)
@ -92,6 +93,11 @@ class Page
$this->includeInHead = $includeInHead;
}
public function setIncludeInBody(array $includeInBody)
{
$this->includeInBody = $includeInBody;
}
public function setIncludeInFooter(array $includeInFooter)
{
$this->includeInFooter = $includeInFooter;
@ -117,7 +123,16 @@ class Page
include $global['systemRootPath'] . 'view/include/head.php';
if (!empty($this->includeInHead)) {
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)) {
@ -157,7 +172,16 @@ class Page
}
if (!empty($this->includeInFooter)) {
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)) {
@ -181,6 +205,20 @@ class Page
$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="_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 '</div>';
$this->getFooter();
@ -207,4 +245,30 @@ class Page
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;
if(!empty($_REQUEST['catName'])){
$cat = Category::getCategoryByName($_REQUEST['catName']);
$titleArray[] = $cat['name'];
}
if (!is_array($titleArray)) {
$titleArray = [];
}

View file

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

View file

@ -7,24 +7,8 @@ if (!User::isAdmin()) {
forbiddenPage("You can not do this");
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
global $global, $config;
if (!isset($global['systemRootPath'])) {
require_once '../../videos/configuration.php';
require_once '../../../../videos/configuration.php';
}
if (!User::isAdmin()) {
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;
}
$_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");
}
$_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;
}
$_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;
}
$_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;
}
$_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;
}
$_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");
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;
}
$_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");
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;
}
$_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");
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;
}
$_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;
}
$_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;
}
$_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;
}
$_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");
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;
}
$_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,20 +1,8 @@
<?php
require_once '../../../videos/configuration.php';
AVideoPlugin::loadPlugin("UserNotifications");
?>
<!DOCTYPE html>
<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';
$_page = new Page(array('UserNotifications'));
$_page->loadBasicCSSAndJS();
?>
<div class="container-fluid">
<div class="panel panel-default">
@ -37,10 +25,6 @@ AVideoPlugin::loadPlugin("UserNotifications");
</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
include $global['systemRootPath'] . 'view/include/footer.php';
$_page->print();
?>
</body>
</html>

View file

@ -8,22 +8,6 @@ if (!User::isAdmin()) {
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,20 +1,8 @@
<?php
require_once '../../../videos/configuration.php';
AVideoPlugin::loadPlugin("VideoTags");
?>
<!DOCTYPE html>
<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';
$_page = new Page(array('VideoTags'));
$_page->loadBasicCSSAndJS();
?>
<div class="container-fluid">
<div class="panel panel-default">
@ -37,10 +25,6 @@ AVideoPlugin::loadPlugin("VideoTags");
</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
include $global['systemRootPath'] . 'view/include/footer.php';
$_page->print();
?>
</body>
</html>

View file

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

View file

@ -8,22 +8,6 @@ if (!User::isAdmin()) {
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,20 +1,8 @@
<?php
require_once '../../../videos/configuration.php';
AVideoPlugin::loadPlugin("VideosStatistics");
?>
<!DOCTYPE html>
<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';
$_page = new Page(array('VideosStatistics'));
$_page->loadBasicCSSAndJS();
?>
<div class="container-fluid">
<div class="panel panel-default">
@ -37,10 +25,6 @@ AVideoPlugin::loadPlugin("VideosStatistics");
</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
include $global['systemRootPath'] . 'view/include/footer.php';
$_page->print();
?>
</body>
</html>

View file

@ -11,20 +11,7 @@ $myBalance = $myWallet->getBalance(User::getId());
$planTitle = 'Test payment ' . date('Y-m-d h:i:s');
$_GET['plans_id'] = -1;
?>
<!DOCTYPE html>
<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';
$_page = new Page(array('Payment tests'));
?>
<div class="container-fluid">
@ -176,9 +163,7 @@ $_GET['plans_id'] = -1;
</div>
</div>
</div>
</div>
<?php
include $global['systemRootPath'] . 'view/include/footer.php';
$_page->print();
?>
</body>
</html>

View file

@ -13,19 +13,7 @@ if (!empty($paypal)) {
$options = _json_decode($obj->addFundsOptions);
//unset($_SESSION['addFunds_Success']);
//unset($_SESSION['addFunds_Fail']);
?>
<!DOCTYPE html>
<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';
$_page = new Page(array('Add Funds'));
?>
<div class="container">
<div class="row">
@ -82,16 +70,11 @@ $options = _json_decode($obj->addFundsOptions);
</div>
</div>
<?php
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script>
$(document).ready(function() {
});
</script>
</body>
</html>
<?php
$_page->print();
?>

View file

@ -10,19 +10,7 @@ if (!User::isAdmin()) {
$plugin = AVideoPlugin::loadPluginIfEnabled("YPTWallet");
$obj = $plugin->getDataObject();
?>
<!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']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
$_page = new Page(array('Support Author'));
?>
<div class="container">
@ -71,9 +59,6 @@ $obj = $plugin->getDataObject();
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<?php
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script>
$(document).ready(function() {
@ -101,8 +86,7 @@ $obj = $plugin->getDataObject();
return row.user + photo;
}
}
}).on("loaded.rs.jquery.bootgrid", function ()
{
}).on("loaded.rs.jquery.bootgrid", function() {
/* Executes after data is loaded and rendered */
grid.find(".command-edit").on("click", function(e) {
var row_index = $(this).closest('tr').index();
@ -147,7 +131,7 @@ $obj = $plugin->getDataObject();
});
});
</script>
</body>
</html>
<?php
$_page->print();
?>

View file

@ -12,26 +12,11 @@ $walletDataObject = $plugin->getDataObject();
$wallet = new Wallet(0);
$wallet->setUsers_id(User::getId());
$_page = new Page(array('Configuration'));
?>
<!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';
?>
</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); ?>
</div>
<?php
include $global['systemRootPath'] . 'view/include/footer.php';
$_page->print();
?>
</body>
</html>

View file

@ -14,19 +14,7 @@ if (!empty($_GET['users_id'])) {
} else {
$users_id = User::getId();
}
?>
<!DOCTYPE html>
<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';
$_page = new Page(array('History'));
?>
<div class="container">
<div class="panel panel-default">
@ -50,13 +38,10 @@ if (!empty($_GET['users_id'])) {
</div>
</div>
</div>
<?php
if (AVideoPlugin::isEnabledByName('MonetizeUsers')) {
include $global['systemRootPath'] . 'plugin/MonetizeUsers/View/report.php';
}
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script>
$(document).ready(function() {
@ -142,6 +127,7 @@ if (User::isAdmin()) {
<?php
if (User::isAdmin()) {
?>
function setStatus(status, wallet_log_id) {
modal.showPleaseWait();
$.ajax({
@ -167,7 +153,7 @@ if (User::isAdmin()) {
<?php
}
?>
</script>
</body>
</html>
<?php
$_page->print();
?>

View file

@ -10,19 +10,7 @@ if (!User::isLogged()) {
$plugin = AVideoPlugin::loadPluginIfEnabled("YPTWallet");
$obj = $plugin->getDataObject();
$options = _json_decode($obj->addFundsOptions);
?>
<!DOCTYPE html>
<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';
$_page = new Page(array('Add Funds'));
?>
<div class="container">
<div class="row">
@ -83,11 +71,6 @@ $options = _json_decode($obj->addFundsOptions);
</div>
</div>
<?php
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script>
$(document).ready(function() {
$('#manualAddFundsPageButton').click(function() {
@ -116,6 +99,6 @@ $options = _json_decode($obj->addFundsOptions);
});
});
</script>
</body>
</html>
<?php
$_page->print();
?>

View file

@ -10,18 +10,7 @@ if (!User::isLogged()) {
$plugin = AVideoPlugin::loadPluginIfEnabled("YPTWallet");
$obj = $plugin->getDataObject();
$options = _json_decode($obj->withdrawFundsOptions);
?>
<!DOCTYPE html>
<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';
$_page = new Page(array('Withdraw Funds'));
?>
<div class="container">
<div class="row">
@ -91,9 +80,6 @@ $options = _json_decode($obj->withdrawFundsOptions);
</div>
</div>
</div>
<?php
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script>
$(document).ready(function() {
$('#manualWithdrawFundsPageButton').click(function() {
@ -122,6 +108,6 @@ $options = _json_decode($obj->withdrawFundsOptions);
});
});
</script>
</body>
</html>
<?php
$_page->print();
?>

View file

@ -7,19 +7,8 @@ if (!User::isAdmin()) {
forbiddenPage("You can not do this");
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']; ?>">
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
$_page = new Page(array('Pending Requests'));
?>
<div class="container">
<div class="panel panel-default">
@ -45,10 +34,6 @@ if (!User::isAdmin()) {
</div>
</div>
</div>
<?php
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script>
$(document).ready(function() {
@ -98,6 +83,7 @@ if (!User::isAdmin()) {
createTimer('.pendingTimers');
});
});
function setStatus(status, wallet_log_id) {
modal.showPleaseWait();
$.ajax({
@ -120,7 +106,7 @@ if (!User::isAdmin()) {
}
});
}
</script>
</body>
</html>
<?php
$_page->print();
?>

View file

@ -2,7 +2,7 @@
$isFirstPage = 1;
global $global, $config;
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/category.php';
@ -11,23 +11,9 @@ if(AVideoPlugin::isEnabledByName('PlayLists')){
PlayLists::loadScripts();
}
$obj = AVideoPlugin::getObjectData("YouPHPFlix2");
$_page = new Page(array(''));
$_page->setIncludeInHead(array('plugin/YouPHPFlix2/view/modeFlixHead.php'));
?>
<!DOCTYPE html>
<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
include $global['systemRootPath'] . 'plugin/YouPHPFlix2/view/modeFlixBody.php';
@ -37,6 +23,6 @@ $obj = AVideoPlugin::getObjectData("YouPHPFlix2");
<?php
include $global['systemRootPath'] . 'plugin/YouPHPFlix2/view/modeFlixFooter.php';
?>
</body>
</html>
<?php
$_page->print();
?>

View file

@ -4,21 +4,8 @@ global $global, $config;
if (!isset($global['systemRootPath'])) {
require_once '../videos/configuration.php';
}
?>
<!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';
$_page = new Page(array('Dashboard'));
$_page->setIncludeInHead(array('view/charts_head.php'));
include $global['systemRootPath'] . 'view/charts_body.php';
include_once $global['systemRootPath'] . 'view/include/footer.php';
$_page->print();
?>
</body>
</html>

View file

@ -41,10 +41,6 @@
<?php echo AVideoPlugin::getChartContent(); ?>
</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">
$(document).ready(function () {
<?php if (!empty($_GET['jump'])) { ?>

View file

@ -11,30 +11,8 @@ if (!User::isAdmin()) {
forbiddenPage('');
}
//var_dump($config);exit;
?>
<!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
$_page = new Page(array('Configuration'));
$_page->setIncludeInHead(array('view/configurations_head.php'));
include $global['systemRootPath'] . 'view/configurations_body.php';
$_page->print();
?>
</div>
<?php
include $global['systemRootPath'] . 'view/include/footer.php';
?>
</body>
</html>

View file

@ -1,7 +1,7 @@
<?php
if (User::isAdmin()) {
?>
<div class="container-fluid">
<form class="form-compact form-horizontal" id="updateConfigForm" onsubmit="">
<div class="panel panel-default ">
<div class="panel-heading tabbable-line">
@ -653,7 +653,7 @@ if (User::isAdmin()) {
</div>
</form>
</div>
<script>
var logoCrop;
var logoSmallCrop;

View file

@ -9,22 +9,9 @@ if (!Category::canCreateCategory()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not manage categories"));
exit;
}
?>
<!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';
$_page = new Page(array('Categories'));
$_page->setIncludeInHead(array('view/managerCategories_head.php'));
include $global['systemRootPath'] . 'view/managerCategories_body.php';
include $global['systemRootPath'] . 'view/include/footer.php'; ?>
</body>
</html>
$_page->print();
?>

View file

@ -7,22 +7,8 @@ if (!User::isAdmin()) {
gotToLoginAndComeBackHere(__("You can not manage plugins"));
exit;
}
?>
<!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';
$_page = new Page(array('Plugins'));
$_page->setIncludeInHead(array('view/managerPlugins_head.php'));
include $global['systemRootPath'] . 'view/managerPlugins_body.php';
include $global['systemRootPath'] . 'view/include/footer.php';
$_page->print();
?>
</body>
</html>

View file

@ -8,27 +8,8 @@ if (!Permissions::canAdminUsers()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not manage users"));
exit;
}
?>
<!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
$_page = new Page(array('Users'));
$_page->setIncludeInHead(array('view/managerUsers_head.php'));
include $global['systemRootPath'] . 'view/managerUsers_body.php';
$_page->print();
?>
</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()) {
forbiddenPage(__("You can not manage do this"));
}
?>
<!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
$_page = new Page(array('User Groups'));
$_page->setIncludeInHead(array('view/managerUsersGroups_head.php'));
include $global['systemRootPath'] . 'view/managerUsersGroups_body.php';
$_page->print();
?>
</div>
<?php
include $global['systemRootPath'] . 'view/include/footer.php';
?>
</body>
</html>

View file

@ -1,3 +1,4 @@
<div class="container-fluid">
<div class="panel panel-default">
<div class="panel-heading">
<div class="btn-group">
@ -74,8 +75,8 @@
</div>
</div>
</div>
<script>
<script>
function pluginPermissionsBtn(plugins_id) {
modal.showPleaseWait();
$('#groupFormModal').modal('hide');
@ -102,8 +103,7 @@
ajax: true,
url: "<?php echo $global['webSiteRootURL'] . "objects/usersGroups.json.php"; ?>",
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 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;
@ -162,7 +162,9 @@
modal.showPleaseWait();
$.ajax({
url: webSiteRootURL + 'objects/userGroupsDelete.json.php',
data: {"id": row.id},
data: {
"id": row.id
},
type: 'post',
success: function(response) {
if (response.status === "1") {
@ -214,5 +216,4 @@
return false;
});
});
</script>

View file

@ -16,6 +16,7 @@ foreach ($userGroups as $value) {
?>
<link href="<?php echo getURL('node_modules/flickity/dist/flickity.min.css'); ?>" rel="stylesheet" type="text/css" />
<div class="container-fluid">
<div class="panel panel-default">
<div class="panel-heading tabbable-line">
<div class="btn-group pull-right">
@ -346,7 +347,7 @@ foreach ($userGroups as $value) {
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</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-bg-lazyload/bg-lazyload.js'); ?>" type="text/javascript"></script>

View file

@ -19,24 +19,9 @@ if (!empty($_GET['iframe'])) {
$_GET['noNavbar'] = 1;
}
?>
<!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';
$_page = new Page(array('Videos'));
$_page->loadBasicCSSAndJS();
$_page->setIncludeInHead(array('view/managerVideos_head.php'));
include $global['systemRootPath'] . 'view/managerVideos_body.php';
include $global['systemRootPath'] . 'view/include/footer.php';
$_page->print();
?>
<script src="<?php echo getCDN(); ?>view/js/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js" type="text/javascript"></script>
</body>
</html>