"unknown command" ); if ( $_GET["cmd"] == "get" ) { $ret = getEvents(); } print(json_encode($ret)); ?>