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(); } } } ?>