mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
update
This commit is contained in:
parent
27ed1e6819
commit
1d091b9571
2 changed files with 15 additions and 3 deletions
|
@ -174,6 +174,12 @@ if (empty($verified)) {
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(Scheduler::isActive()){
|
||||||
|
$messages['Server'][] = "Scheduler plugin crontab is runing";
|
||||||
|
}else{
|
||||||
|
$messages['Server'][] = ["Scheduler plugin crontab is NOT runing", Scheduler::getCronHelp()];
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
<style>
|
<style>
|
||||||
#healthCheck .alert{
|
#healthCheck .alert{
|
||||||
|
|
|
@ -15,9 +15,7 @@ class Scheduler extends PluginAbstract
|
||||||
$desc = "Scheduler Plugin";
|
$desc = "Scheduler Plugin";
|
||||||
if (!_isSchedulerPresentOnCrontab()) {
|
if (!_isSchedulerPresentOnCrontab()) {
|
||||||
$desc = "<strong onclick='tooglePluginDescription(this);'>";
|
$desc = "<strong onclick='tooglePluginDescription(this);'>";
|
||||||
$desc .= "To use the Scheduler Plugin, you MUST add it on your crontab";
|
$desc .= self::getCronHelp();
|
||||||
$desc .= "</strong>";
|
|
||||||
$desc .= "<br>Open a terminal and type <code>crontab -e</code> than add a crontab for every 1 minute<br><code>* * * * * php {$global['systemRootPath']}plugin/Scheduler/run.php</code>";
|
|
||||||
}
|
}
|
||||||
$desc .= '<br>';
|
$desc .= '<br>';
|
||||||
$desc .= getIncludeFileContent($global['systemRootPath'].'plugin/Scheduler/View/activeLabel.php');
|
$desc .= getIncludeFileContent($global['systemRootPath'].'plugin/Scheduler/View/activeLabel.php');
|
||||||
|
@ -25,6 +23,14 @@ class Scheduler extends PluginAbstract
|
||||||
return $desc;
|
return $desc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static function getCronHelp(){
|
||||||
|
global $global;
|
||||||
|
$desc = "To use the Scheduler Plugin, you MUST add it on your crontab";
|
||||||
|
$desc .= "</strong>";
|
||||||
|
$desc .= "<br>Open a terminal and type <code>crontab -e</code> than add a crontab for every 1 minute<br><code>* * * * * php {$global['systemRootPath']}plugin/Scheduler/run.php</code>";
|
||||||
|
return $desc;
|
||||||
|
}
|
||||||
|
|
||||||
public function getName()
|
public function getName()
|
||||||
{
|
{
|
||||||
return "Scheduler";
|
return "Scheduler";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue