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

Offline player test

This commit is contained in:
DanieL 2022-07-11 15:14:02 -03:00
parent 53dfc89fd2
commit 7d7f568a6f
2 changed files with 583 additions and 582 deletions

View file

@ -2,11 +2,11 @@
$vars = []; $vars = [];
require_once '../videos/configuration.php'; require_once '../videos/configuration.php';
require_once './functions.php'; require_once './functions.php';
if (!User::isAdmin()) { if (!User::isAdmin()) {
header("Location: {$global['webSiteRootURL']}"); header("Location: {$global['webSiteRootURL']}");
exit; exit;
} }
adminSecurityCheck(true);
$isAdminPanel = 1; $isAdminPanel = 1;
class MenuAdmin class MenuAdmin

View file

@ -13,6 +13,7 @@ if (!User::isAdmin()) {
forbiddenPage(""); forbiddenPage("");
exit; exit;
} }
adminSecurityCheck(true);
// remove cache dir before the script starts to let the script recreate the javascript and css files // remove cache dir before the script starts to let the script recreate the javascript and css files
if (!empty($_POST['updateFile'])) { if (!empty($_POST['updateFile'])) {
$dir = Video::getStoragePath()."cache"; $dir = Video::getStoragePath()."cache";