Watch 1 Star 6 Fork 0

LiuJiantao / Tieba_SignPHPGPL-3.0

Join us
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
百度贴吧签到助手 spread retract

Clone or download
plugin.php 530 Bytes
Copy Edit Web IDE Raw Blame History
LiuJiantao authored 2015-01-11 11:40 . 更新
<?php
define('IN_ADMINCP', true);
define('DISABLE_PLUGIN', true);
require_once './system/common.inc.php';
$plugin_id = htmlspecialchars($_GET['id']);
$plugins = CACHE::get('plugins');
foreach($plugins as $plugin){
if($plugin['id'] == $plugin_id) {
$exists = true;
break;
}
}
if(!isset($exists)) throw new Exception("Unknown plugin '{$plugin_id}'");
$obj = HOOK::getPlugin($plugin_id);
if($obj instanceof Plugin){
$obj->handleAction();
} else {
throw new Exception('This plugin doesn\'t support to be called directly.');
}

Comment ( 0 )

Sign in for post a comment

PHP
1
https://gitee.com/liujiantao/Tieba_Sign.git
git@gitee.com:liujiantao/Tieba_Sign.git
liujiantao
Tieba_Sign
Tieba_Sign
master

Help Search

205735 778617b6 1899542 205747 347fc4a1 1899542