X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=public.php;h=7138b3d8122bd6e48caf683f1e5755604c05eeb0;hb=23419d117bf6db266ce2fc4b7e8d14e96b788f9b;hp=59e0ef2e3696082acbc9cb9ab2f017a60817747d;hpb=88e8fb3a7132d1321ab65b66a19a67df890c402d;p=tt-rss.git diff --git a/public.php b/public.php index 59e0ef2e..7138b3d8 100644 --- a/public.php +++ b/public.php @@ -17,8 +17,8 @@ $_REQUEST = array_map('stripslashes_deep', $_REQUEST); } - require_once "functions.php"; require_once "sessions.php"; + require_once "functions.php"; require_once "sanity_check.php"; require_once "config.php"; require_once "db.php"; @@ -40,9 +40,16 @@ $method = $_REQUEST["op"]; - $handler = new Handler_Public($link, $_REQUEST); + global $pluginhost; + $override = $pluginhost->lookup_handler("public", $method); + + if ($override) { + $handler = $override; + } else { + $handler = new Handler_Public($link, $_REQUEST); + } - if ($handler->before($method)) { + if (implements_interface($handler, "IHandler") && $handler->before($method)) { if ($method && method_exists($handler, $method)) { $handler->$method(); } else if (method_exists($handler, 'index')) {