Add a page to manage chrono
This commit is contained in:
parent
8e7d652688
commit
99a4edb33f
8 changed files with 63 additions and 26 deletions
22
onyx/include/admin/chrono.php
Normal file
22
onyx/include/admin/chrono.php
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
|
||||
if(!defined('ONYX')) exit;
|
||||
|
||||
$p = $out[0];
|
||||
|
||||
if (count($p) > 2)
|
||||
{
|
||||
switch($p[2])
|
||||
{
|
||||
case "start":
|
||||
file_put_contents($VAR["misc_dir"]."/challenge_started", time());
|
||||
break;
|
||||
|
||||
case "init":
|
||||
unlink($VAR["misc_dir"]."/challenge_started");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
header("Location: /".SALT_ADMIN."/");
|
||||
exit();
|
||||
Reference in a new issue