Add communication with the scheduler (through socket)
This commit is contained in:
parent
469b7046f2
commit
87af2e3506
4 changed files with 14 additions and 1 deletions
|
|
@ -10,6 +10,7 @@ if (count($p) > 2)
|
|||
{
|
||||
case "start":
|
||||
file_put_contents($VAR["misc_dir"]."/challenge_started", time() + (intval($_POST["time"]) - 240) * 60);
|
||||
pipe_backend_scheduler("resetreset:HOME:all:SY");
|
||||
break;
|
||||
|
||||
case "init":
|
||||
|
|
|
|||
|
|
@ -100,7 +100,10 @@ if (!empty($_FILES["inputFile"]['tmp_name']))
|
|||
if ($error != "")
|
||||
erreur($error);
|
||||
else
|
||||
{
|
||||
pipe_backend_scheduler("resetreset:RTEAMS:HOME:all:SY");
|
||||
erreur("Fichier XML importé avec succès.", "success");
|
||||
}
|
||||
}
|
||||
|
||||
return "admin/import_users";
|
||||
|
|
|
|||
Reference in a new issue