10 lines
196 B
PHP
10 lines
196 B
PHP
<?php
|
|
header("Content-Type: application/json");
|
|
include('lib.php');
|
|
$ret = array( "err" => "unknown command" );
|
|
if ( $_GET["cmd"] == "get" ) {
|
|
$ret = getEvents();
|
|
}
|
|
print(json_encode($ret));
|
|
?>
|