From: Metabox Date: Sat, 20 Jul 2019 23:53:15 +0000 (+1000) Subject: minor. X-Git-Url: https://lifelog.hopto.org/gitweb/?a=commitdiff_plain;h=7906b57e7a6d2f08d4a22fc10a087c667c1b9c39;p=LifeLog.git minor. --- diff --git a/htdocs/cgi-bin/json.cgi b/htdocs/cgi-bin/json.cgi index 9219cf2..7c77d4f 100755 --- a/htdocs/cgi-bin/json.cgi +++ b/htdocs/cgi-bin/json.cgi @@ -44,8 +44,9 @@ my $sid = $session->id(); my $dbname = "";#$session->param('database'); my $userid = $session->param('alias'); my $password = $session->param('passw'); -my $action = $session->param('action'); -my $lid = $session->param('id'); +my $action = $cgi->param('action'); +my $lid = $cgi->param('id'); +my $doc = $cgi->param('doc'); if ($AUTHORITY) { $userid = $password = $AUTHORITY; @@ -76,10 +77,11 @@ $today->set_time_zone($TIME_ZONE); ############### my $json = JSON->new->utf8->space_after->pretty->allow_blessed->encode ({date => DateTime::Format::SQLite->format_datetime($today), - origin => "LifeLog.".$RELEASE_VER, + response_origin => "LifeLog.".$RELEASE_VER, response => "Feature Under Development!", alias => $userid, log_id => $lid, + received => $doc });