22 rivejä
384 B
PHP
22 rivejä
384 B
PHP
<?php
|
|
class PluginHandler extends Handler_Protected {
|
|
function csrf_ignore($method) {
|
|
return true;
|
|
}
|
|
|
|
function catchall($method) {
|
|
$plugin = PluginHost::getInstance()->get_plugin($_REQUEST["plugin"]);
|
|
|
|
if ($plugin) {
|
|
if (method_exists($plugin, $method)) {
|
|
$plugin->$method();
|
|
} else {
|
|
print error_json(13);
|
|
}
|
|
} else {
|
|
print error_json(14);
|
|
}
|
|
}
|
|
}
|
|
|
|
?>
|