mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
This commit is contained in:
parent
ea2e649f17
commit
7ec296ff28
2 changed files with 23 additions and 22 deletions
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
require_once __DIR__ . '/../../videos/configuration.php';
|
||||
|
||||
if (!isCommandLineInterface()) {
|
||||
if (!isCommandLineInterface() && !User::isAdmin()) {
|
||||
forbiddenPage();
|
||||
}
|
||||
|
||||
|
|
|
@ -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>';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue