server/onyx/include/admin/chrono.php

22 lines
356 B
PHP
Raw Normal View History

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":
2014-01-20 17:59:15 +00:00
file_put_contents($VAR["misc_dir"]."/challenge_started", time() + (intval($_POST["time"]) - 240) * 60);
2014-01-14 18:45:56 +00:00
break;
case "init":
unlink($VAR["misc_dir"]."/challenge_started");
break;
}
}
header("Location: /".SALT_ADMIN."/");
exit();