|
|
@ -3,12 +3,12 @@
|
|
|
|
// Server Time API Module
|
|
|
|
// Server Time API Module
|
|
|
|
|
|
|
|
|
|
|
|
// Process client requested data
|
|
|
|
// Process client requested data
|
|
|
|
$server = $_POST['server'];
|
|
|
|
$data['server'] = $_POST['server'];
|
|
|
|
|
|
|
|
|
|
|
|
echo $server; //debug test
|
|
|
|
echo $data['server']; //debug test
|
|
|
|
|
|
|
|
|
|
|
|
// If client requested datetime for Rocknarok Universe (General Timezone).
|
|
|
|
// If client requested datetime for Rocknarok Universe (General Timezone).
|
|
|
|
if ($server='ru-general') {
|
|
|
|
if ($data['server']='ru-general') {
|
|
|
|
|
|
|
|
|
|
|
|
// Set current datetime of Rocknarok Universe.
|
|
|
|
// Set current datetime of Rocknarok Universe.
|
|
|
|
$rutime=date_create();
|
|
|
|
$rutime=date_create();
|
|
|
|