server/onyx/include/admin/chrono.php

23 lines
464 B
PHP
Raw Normal View History

2014-01-14 18:45:56 +00:00
<?php
if(!defined('ONYX')) exit;
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);
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();