X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=public.php;h=bf13fdd583040aa21f82c4226effe4458822b158;hb=51cc387347668e98b1b8e6c6053581a2affc5fa6;hp=5fd9beabdfb6c5bb425f68453d6a44bfc9063b9d;hpb=f30ef1fa1bd76b497b5c0a64a92e2e0ef7116515;p=tt-rss.git diff --git a/public.php b/public.php index 5fd9beab..bf13fdd5 100644 --- a/public.php +++ b/public.php @@ -1,4 +1,7 @@ before($method)) { + if ($method && method_exists($handler, $method)) { + $handler->$method(); + } else if (method_exists($handler, 'index')) { + $handler->index(); + } + $handler->after(); + return; } - handle_public_request($link, $op); + header("Content-Type: text/plain"); + print json_encode(array("error" => array("code" => 7))); // We close the connection to database. db_close($link);