22 lines
323 B
PHP
22 lines
323 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() + 42);
|
|
break;
|
|
|
|
case "init":
|
|
unlink($VAR["misc_dir"]."/challenge_started");
|
|
break;
|
|
}
|
|
}
|
|
|
|
header("Location: /".SALT_ADMIN."/");
|
|
exit(); |