1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-25 08:31:29 +00:00

rework class system to use subdirectories

add placeholder plugin/hook system
This commit is contained in:
Andrew Dolgov
2012-08-17 14:20:55 +04:00
parent 3d2c9f5adf
commit 369dbc19d6
29 changed files with 131 additions and 22 deletions

View File

@@ -1,5 +1,5 @@
<?php
class RPC extends Protected_Handler {
class RPC extends Handler_Protected {
function csrf_ignore($method) {
$csrf_ignored = array("sanitycheck", "buttonplugin", "exportget");
@@ -766,7 +766,7 @@ class RPC extends Protected_Handler {
}
function buttonPlugin() {
$pclass = basename($_REQUEST['plugin']) . "_button";
$pclass = "button_" . basename($_REQUEST['plugin']);
$method = $_REQUEST['plugin_method'];
if (class_exists($pclass)) {