diff options
Diffstat (limited to 'classes/pluginhandler.php')
-rw-r--r-- | classes/pluginhandler.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/classes/pluginhandler.php b/classes/pluginhandler.php new file mode 100644 index 000000000..df7058dcd --- /dev/null +++ b/classes/pluginhandler.php @@ -0,0 +1,18 @@ +<?php +class PluginHandler extends Handler_Protected { + function csrf_ignore($method) { + return true; + } + + function catchall($method) { + global $pluginhost; + + $plugin = $pluginhost->get_plugin($_REQUEST["plugin"]); + + if (method_exists($plugin, $method)) { + $plugin->$method(); + } + } +} + +?> |