22 lines
318 B
PHP
22 lines
318 B
PHP
|
<?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();
|