Watch 1 Star 6 Fork 0

LiuJiantao / Tieba_SignPHPGPL-3.0

Clone or download
plugin.php
Copy Edit Web IDE Raw Normal History
LiuJiantao   更新 2015-01-11
<?phpdefine('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.');}
PHP
1
https://gitee.com/liujiantao/Tieba_Sign.git
git@gitee.com:liujiantao/Tieba_Sign.git
liujiantao
Tieba_Sign
Tieba_Sign
master

Help Search