X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=public.php;h=8ffc83224f170a51c3a89f175848e6bccdb291f4;hb=787e5ebc2101e3a207a6f4e7deffcc0a07b9e28d;hp=3b0d064b6c093ecc5c6311cc7b42ef65cd00b786;hpb=94976024848e94f2e1987b82b0b1d0d4140a416d;p=tt-rss.git diff --git a/public.php b/public.php index 3b0d064b..8ffc8322 100644 --- a/public.php +++ b/public.php @@ -1,5 +1,6 @@ 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);