2 class PluginHandler extends Handler_Protected {
3 function csrf_ignore($method) {
7 function catchall($method) {
8 $plugin = PluginHost::getInstance()->get_plugin($_REQUEST["plugin"]);
11 if (method_exists($plugin, $method)) {
14 print json_encode(array("error" => "METHOD_NOT_FOUND"));
17 print json_encode(array("error" => "PLUGIN_NOT_FOUND"));