diff --git a/public_html/index.php b/public_html/index.php index ce1ae76..757f78f 100755 --- a/public_html/index.php +++ b/public_html/index.php @@ -156,6 +156,8 @@ $R->post('api(?:(/.*))/?', function($url){ if( isset($_SERVER['HTTP_X_TREE_TOKEN']) ) $GLOBALS['page_log']->log('api.call('.$_SERVER['HTTP_X_TREE_TOKEN'].')'); + else + $GLOBALS['page_log']->log('api.call(NO_TOKEN)'); header('Content-Type: application/json; charset=UTF-8');