1
0
Code Issues Pull Requests Projects Releases Wiki Activity GitHub Gitee

尚未开发完成,暂时保存

This commit is contained in:
2022-01-26 02:24:31 +08:00
parent 86848dbde0
commit d1256be86a
7 changed files with 113 additions and 3 deletions

View File

@@ -0,0 +1,37 @@
main.php
├─ require '../../../zb_system/function/c_system_base.php';
├─ require '../../../zb_system/function/c_system_admin.php';
├─ $zbp->Load();
├─ $blogtitle = '控制中心';
├─ require $blogpath . 'zb_system/admin/admin_header.php';
├─ require $blogpath . 'zb_system/admin/admin_top.php';
├─ $PluginName当前用户打开的子插件
├─ $PluginTitle插件显示的子标题
├─ 定义全局变量 require $blogpath.'zb_users/plugin/zxd_ctrlcenter/config.php';
├─ $zbp->Config('zxd_ctrlcenter')->relativepath = 'zb_users/plugin/zxd_ctrlcenter/';
├─ $zbp->Config('zxd_ctrlcenter')->path = $blogpath.'zb_users/plugin/zxd_ctrlcenter/';
├─ $zbp->Config('zxd_ctrlcenter')->urlpath = $bloghost.'zb_users/plugin/zxd_ctrlcenter/';
├─ 插件页
├─ require $zbp->Config('zxd_ctrlcenter')->path.'plugin/'.$PluginName.'/status.php'; // 检查插件是否启用status.php【如果插件不存在这里会报错】
├─ require $zbp->Config('zxd_ctrlcenter')->path.'plugin/'.$PluginName.'/config.php'; // 插件config页config.php包含插件的名称$PluginTitle
├─ 以下两行包含:<span id="pluginName">
├─ require $zbp->Config('zxd_ctrlcenter')->path.'public/plugin-disbtn.php'; // 添加禁用插件按钮
├─ require $zbp->Config('zxd_ctrlcenter')->path.'public/plugin-enbbtn.php'; // 添加启用插件按钮
├─ $PluginTitle插件的名称
├─ 版权信息
├─ $copyrightfilepath = $zbp->Config('zxd_ctrlcenter')->relativepath; // 设置版权信息文件plugin.xml
├─ include $zbp->Config('zxd_ctrlcenter')->path.'public/copyright.php'; // 添加版权信息
├─
├─
├─
├─
├─
├─
├─
├─
├─