Administrator(7); $this->header(); } public function __destruct() { $this->footer(); } function index() { ?>
nav3(); ?>
插件列表
where('in_type', '>', 0)->order('in_id desc')->select(); $count = db('plugin')->where('in_type', '>', 0)->count(); if ($count == 0) { ?>
暂无插件


作者:

卸载  
扩展列表
where('in_type', '<', 1)->order('in_addtime desc')->select(); $count = db('plugin')->where('in_type', '<', 1)->count(); if ($count == 0) { ?>
暂无扩展


作者:

卸载  
del_plugin($_GET['id'], $_GET['dir']); } function del_plugin($id, $dir) { if (@(include_once 'source/plugin/' . $dir . '/function.php')) { plugin_uninstall(); } if (db('plugin')->where('in_id', $id)->delete()) { echo ""; destroyDir('source/plugin/' . $dir . '/'); $this->ShowMessage("恭喜您,应用卸载成功!", "?c=module", "infotitle2", 3000, 1); } } }