Automated build for v0.01
This commit is contained in:
commit
791b998489
2771 changed files with 222096 additions and 0 deletions
20
classes/pluginhandler.php
Normal file
20
classes/pluginhandler.php
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue