1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00
Daniel Neto 2024-04-01 10:56:36 -03:00
parent ea2e649f17
commit 7ec296ff28
2 changed files with 23 additions and 22 deletions

View file

@ -1,7 +1,7 @@
<?php
require_once __DIR__ . '/../../videos/configuration.php';
if (!isCommandLineInterface()) {
if (!isCommandLineInterface() && !User::isAdmin()) {
forbiddenPage();
}

View file

@ -59,7 +59,8 @@ if(!empty($lastVisitFile) && !empty($lastVisitFile['size'])){
_error_log($msg);
}
function _log($msg){
function _log($msg)
{
if (!isCommandLineInterface()) {
echo date('Y-m-d H:i:s') . ' ' . $msg . '<br>';