37 lines
1.9 KiB
Plaintext
37 lines
1.9 KiB
Plaintext
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'; // 添加版权信息
|
||
├─
|
||
├─
|
||
├─
|
||
├─
|
||
├─
|
||
├─
|
||
├─
|
||
├─
|
||
├─ |