2017-01-27 20:00:06 +00:00
|
|
|
<?php
|
|
|
|
|
2017-01-30 09:39:45 +00:00
|
|
|
require_once __DIR__.'/../../include/php/const';
|
2017-01-27 20:00:06 +00:00
|
|
|
|
|
|
|
function api_fetch(){
|
|
|
|
|
|
|
|
/* [1] Fetch & generate useful data from features
|
|
|
|
=========================================================*/
|
|
|
|
/* (1) Default data : access */
|
|
|
|
$data = [
|
2017-01-28 10:45:09 +00:00
|
|
|
'access' => file_get_contents(DATA_DIR.'/access.dat'),
|
|
|
|
'feature' => []
|
2017-01-27 20:00:06 +00:00
|
|
|
];
|
2017-01-28 10:45:09 +00:00
|
|
|
|
|
|
|
/* (2) Fetch for each feature which generates data */
|
|
|
|
|
|
|
|
|
2017-01-27 20:00:06 +00:00
|
|
|
|
2017-01-28 17:58:49 +00:00
|
|
|
return json_encode(['a'=>1]);
|
2017-01-27 20:00:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
echo api_fetch();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
?>
|