|
|
|
@ -5,16 +5,6 @@
|
|
|
|
|
// Process client requested data
|
|
|
|
|
$data = $_POST['server'];
|
|
|
|
|
|
|
|
|
|
//debug tests
|
|
|
|
|
echo $_POST;
|
|
|
|
|
echo '<br>';
|
|
|
|
|
echo $_POST['server'];
|
|
|
|
|
echo '<br>';
|
|
|
|
|
echo $data['server'];
|
|
|
|
|
echo '<br>';
|
|
|
|
|
echo $data;
|
|
|
|
|
echo '<br>';
|
|
|
|
|
|
|
|
|
|
// If client requested datetime for Rocknarok Universe (General Timezone).
|
|
|
|
|
if ($data == 'ru_general') {
|
|
|
|
|
|
|
|
|
@ -29,10 +19,10 @@ date_add($rutime,date_interval_create_from_date_string("6 seconds"));
|
|
|
|
|
|
|
|
|
|
// Return current datetime to requester.
|
|
|
|
|
echo date_format($rutime,"Y/m/d H:i:s");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
echo "Something went wrong."; //debugging
|
|
|
|
|
exit();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// If client requested a server not on the list or is request is malformed.
|
|
|
|
|
echo "Something went wrong.";
|
|
|
|
|
exit();
|
|
|
|
|
?>
|