]> git.wh0rd.org - tt-rss.git/blame - classes/pluginhandler.php
remove $link
[tt-rss.git] / classes / pluginhandler.php
CommitLineData
19c73507
AD
1<?php
2class PluginHandler extends Handler_Protected {
3 function csrf_ignore($method) {
4 return true;
5 }
6
7 function catchall($method) {
8 global $pluginhost;
9
10 $plugin = $pluginhost->get_plugin($_REQUEST["plugin"]);
11
aca71915
AD
12 if ($plugin) {
13 if (method_exists($plugin, $method)) {
14 $plugin->$method();
15 } else {
16 print json_encode(array("error" => "METHOD_NOT_FOUND"));
17 }
18 } else {
19 print json_encode(array("error" => "PLUGIN_NOT_FOUND"));
19c73507
AD
20 }
21 }
22}
23
24?>