Clean up debug stuff

master
YandolsZX 3 years ago
parent 22c40b5860
commit be98743763
  1. 18
      servertime.php

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