1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00

Improve scheduler

This commit is contained in:
Daniel 2021-10-15 10:11:47 -03:00
parent 21039fb630
commit 9b03316e14
2 changed files with 2 additions and 2 deletions

View file

@ -12,7 +12,7 @@ if(empty($objAutoPostOnSocialMedia)){
die(json_encode($obj));
}
if(!isCommandLineInterface() && !User::isAdmin()){
if((!isCommandLineInterface() && !User::isAdmin()) || isTokenValid($_REQUEST['token'])){
$obj->msg = 'Forbbiden';
die(json_encode($obj));
}

View file

@ -13,7 +13,7 @@ if(!AVideoPlugin::isEnabledByName('Scheduler')){
$rowActive = Scheduler_commands::getAllActiveOrToRepeat();
$total = count($rowActive);
_log("There are {$total} active requests php_sapi_name=".php_sapi_name());
_log("There are {$total} active requests");
$rows = Scheduler_commands::getAllActiveAndReady();
_log("getAllActiveAndReady found ".count($rows));