summaryrefslogtreecommitdiff
path: root/classes/pluginhandler.php
blob: df7058dcd6d4f78241617e277b7aa481b262dd7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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();
		}
	}
}

?>