Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (10 sloc) 228 Bytes
<?php
include_once('common.php');
$id = g("id");
$type = g("type");
if(empty($id) || empty($type)){
header("HTTP/1.0 400 Bad Request");
echo 'Empty get $id or $type';
}else{
echo json_encode(history($type, $id));
}