summaryrefslogtreecommitdiff
path: root/classes/pluginhandler.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-12-23 14:52:18 +0400
committerAndrew Dolgov <[email protected]>2012-12-23 14:52:18 +0400
commit19c7350770788edf3ae0bb1fd6d95876667adbf6 (patch)
treee539d53acd796375d7feba1efd66d3850fd14db1 /classes/pluginhandler.php
parent83e6e313be6de7d6e3f155a13c821ab82da12575 (diff)
experimental new plugin system
Diffstat (limited to 'classes/pluginhandler.php')
-rw-r--r--classes/pluginhandler.php18
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();
+ }
+ }
+}
+
+?>