mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-25 00:06:16 +00:00
91e6b23d3f
NMAKE-VS2012 Error LNK2011 while NMAKE-VS2010 does not complain we need to link the pch.obj file see http://msdn.microsoft.com/en-us/library/3ay26wa2(v=vs.110).aspx ** PCH Support for Ninja Ninja need to add property OBJECT_DEPENDS for using PCH OBJECT_OUTPUTS for create PCH see http://public.kitware.com/pipermail/cmake-developers/2012-March/003653.html
35 lines
No EOL
658 B
PHP
35 lines
No EOL
658 B
PHP
<?php
|
|
|
|
require_once('common/config.php');
|
|
require_once('common/time.php');
|
|
require_once('common/xml_utils.php');
|
|
|
|
if (RYAPI_MODE == 'server') {
|
|
require_once('server/config.php');
|
|
require_once('server/time.php');
|
|
} else {
|
|
require_once('client/time.php');
|
|
}
|
|
|
|
$format = 'raw';
|
|
if (isset($_GET['format'])) $format = trim($_GET['format']);
|
|
|
|
// Compute
|
|
|
|
$tick = ryzom_time_tick();
|
|
switch($format) {
|
|
case 'raw':
|
|
echo $tick;
|
|
break;
|
|
case 'txt':
|
|
$rytime = ryzom_time_array($tick);
|
|
echo ryzom_time_txt($rytime);
|
|
break;
|
|
case 'xml':
|
|
$rytime = ryzom_time_array($tick);
|
|
ryzom_display_xml_header();
|
|
echo ryzom_time_xml($rytime)->asXML();
|
|
break;
|
|
}
|
|
|
|
?>
|