mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 12:35:56 +00:00
experimental new plugin system
This commit is contained in:
18
classes/pluginhandler.php
Normal file
18
classes/pluginhandler.php
Normal file
@@ -0,0 +1,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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user