2014-01-14 18:45:56 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
if(!defined('ONYX')) exit;
|
|
|
|
|
|
|
|
$p = $out[0];
|
|
|
|
|
|
|
|
if (count($p) > 2)
|
|
|
|
{
|
|
|
|
switch($p[2])
|
|
|
|
{
|
|
|
|
case "start":
|
2015-01-13 16:58:33 +00:00
|
|
|
file_put_contents($VAR["misc_dir"]."/shared/challenge_started", time() + (intval($_POST["time"]) - 240) * 60);
|
2014-11-23 17:06:18 +00:00
|
|
|
pipe_backend_scheduler("resetreset:HOME:all:SY");
|
2014-01-14 18:45:56 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case "init":
|
2015-01-13 16:58:33 +00:00
|
|
|
unlink($VAR["misc_dir"]."/shared/challenge_started");
|
2014-12-28 10:13:50 +00:00
|
|
|
pipe_backend_scheduler("resetreset:HOME:all:SY");
|
2014-01-14 18:45:56 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
header("Location: /".SALT_ADMIN."/");
|
2014-12-28 10:13:50 +00:00
|
|
|
exit();
|