1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00
Oinktube/view/managerVideos.php
2024-04-03 15:52:25 -03:00

27 lines
No EOL
739 B
PHP

<?php
global $global, $config;
if (!isset($global['systemRootPath'])) {
require_once '../videos/configuration.php';
}
require_once $global['systemRootPath'] . 'objects/user.php';
if (!User::isLogged()) {
header("Location: {$global['webSiteRootURL']}user?redirectUri={$global['webSiteRootURL']}mvideos");
exit;
}
if (!User::canUpload(true)) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not manage videos"));
exit;
}
if (!empty($_GET['iframe'])) {
$_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();
?>