From b67fbef3bceeb4182a385bd0d6cf0d0bcc94b1fd Mon Sep 17 00:00:00 2001 From: kanoi Date: Mon, 4 Jan 2016 06:22:11 +1100 Subject: [PATCH] php - include the current time STAMP in the API reply --- pool/page_api.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pool/page_api.php b/pool/page_api.php index 234d4235..7e43d28a 100644 --- a/pool/page_api.php +++ b/pool/page_api.php @@ -32,7 +32,8 @@ function show_api($info, $page, $menu, $name, $user) $info = homeInfo($u); if ($info === false) no_api($jfu); - $rep = fldEncode($info, 'lastbc', true); + $rep = fldEncode($info, 'STAMP', true); + $rep .= fldEncode($info, 'lastbc', false); $rep .= fldEncode($info, 'lastheight', false); $rep .= fldEncode($info, 'currndiff', false); $rep .= fldEncode($info, 'lastblock', false); @@ -66,7 +67,8 @@ function show_api($info, $page, $menu, $name, $user) if ($ans === false) no_api($jfu); - $rep = fldEncode($ans, 'rows', true); + $rep = fldEncode($ans, 'STAMP', true); + $rep .= fldEncode($ans, 'rows', false); $rows = $ans['rows']; $flds = explode(',', $ans['flds']); $zeflds = '';