You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
387 B
PHP
21 lines
387 B
PHP
<?php
|
|
class PluginHandler extends Handler_Protected {
|
|
function csrf_ignore($method) {
|
|
return true;
|
|
}
|
|
|
|
function catchall($method) {
|
|
$plugin = PluginHost::getInstance()->get_plugin(clean($_REQUEST["plugin"]));
|
|
|
|
if ($plugin) {
|
|
if (method_exists($plugin, $method)) {
|
|
$plugin->$method();
|
|
} else {
|
|
print error_json(13);
|
|
}
|
|
} else {
|
|
print error_json(14);
|
|
}
|
|
}
|
|
}
|