mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Improve scheduler
This commit is contained in:
parent
21039fb630
commit
9b03316e14
2 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ if(empty($objAutoPostOnSocialMedia)){
|
||||||
die(json_encode($obj));
|
die(json_encode($obj));
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!isCommandLineInterface() && !User::isAdmin()){
|
if((!isCommandLineInterface() && !User::isAdmin()) || isTokenValid($_REQUEST['token'])){
|
||||||
$obj->msg = 'Forbbiden';
|
$obj->msg = 'Forbbiden';
|
||||||
die(json_encode($obj));
|
die(json_encode($obj));
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@ if(!AVideoPlugin::isEnabledByName('Scheduler')){
|
||||||
|
|
||||||
$rowActive = Scheduler_commands::getAllActiveOrToRepeat();
|
$rowActive = Scheduler_commands::getAllActiveOrToRepeat();
|
||||||
$total = count($rowActive);
|
$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();
|
$rows = Scheduler_commands::getAllActiveAndReady();
|
||||||
_log("getAllActiveAndReady found ".count($rows));
|
_log("getAllActiveAndReady found ".count($rows));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue