mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
Offline player test
This commit is contained in:
parent
53dfc89fd2
commit
7d7f568a6f
2 changed files with 583 additions and 582 deletions
|
@ -2,11 +2,11 @@
|
|||
$vars = [];
|
||||
require_once '../videos/configuration.php';
|
||||
require_once './functions.php';
|
||||
|
||||
if (!User::isAdmin()) {
|
||||
header("Location: {$global['webSiteRootURL']}");
|
||||
exit;
|
||||
}
|
||||
adminSecurityCheck(true);
|
||||
$isAdminPanel = 1;
|
||||
|
||||
class MenuAdmin
|
||||
|
|
|
@ -13,6 +13,7 @@ if (!User::isAdmin()) {
|
|||
forbiddenPage("");
|
||||
exit;
|
||||
}
|
||||
adminSecurityCheck(true);
|
||||
// remove cache dir before the script starts to let the script recreate the javascript and css files
|
||||
if (!empty($_POST['updateFile'])) {
|
||||
$dir = Video::getStoragePath()."cache";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue