diff --git a/plugin/code/z_codeplus.js b/plugin/code/z_codeplus.js
index a81047b..c667825 100644
--- a/plugin/code/z_codeplus.js
+++ b/plugin/code/z_codeplus.js
@@ -68,8 +68,8 @@ $(function() {
})
});
$("pre[id^='pre_']").each(function() {
- $(this).html($(this).html()/*' + \r\n\r\n代码来自:' + bloghost +
- ""*/)
+ $(this).html($(this).html() + '\r\n\r\n代码来自:' + bloghost +
+ "")
});
$(".z_codeplus").click(function() {
if ($(this).parent().parent().next().next("textarea").is(":visible")) {
@@ -78,7 +78,8 @@ $(function() {
cdMode = 0
}
if (cdMode == 1) {
- $(this).parent().parent().next().next("textarea").val($(this).parent().parent().next().next("textarea").val() /* + "\r\n\r代码来自:" + bloghost */ )
+ $(this).parent().parent().next().next("textarea").val($(this).parent().parent().next().next("textarea").val() +
+ "\r\n\r代码来自:" + bloghost)
}
});
var a = new ClipboardJS(".z_codeplus", {
diff --git a/about/BUYER NOTICE.htm b/temporary file/BUYER NOTICE.htm
similarity index 100%
rename from about/BUYER NOTICE.htm
rename to temporary file/BUYER NOTICE.htm
diff --git a/temporary file/change-plugin-status.php.bak b/temporary file/change-plugin-status.php.bak
new file mode 100644
index 0000000..f729037
--- /dev/null
+++ b/temporary file/change-plugin-status.php.bak
@@ -0,0 +1,23 @@
+
+
+
+ echo $infoMessage; ?>
\ No newline at end of file
diff --git a/temporary file/notes.txt b/temporary file/notes.txt
new file mode 100644
index 0000000..1f82f44
--- /dev/null
+++ b/temporary file/notes.txt
@@ -0,0 +1,34 @@
+
+标签:免费应用推荐,控制中心,控制面板,Z-Blog PHP,张小弟之家
+
+1.请打开开发模式检查main.php;
+检查完毕,已修正开发模式下报错的问题。
+
+2.include.php中的$blogpath建议用ZBP_PATH常量代替;
+已修改。
+
+3.不要用 ?>,请使用;
+已修改。
+
+4.在我本地还有一些奇怪的问题;
+这个问题我这里调试的时候没有发现,可能是由于上面几个问题引起,或者我个人是打开/关闭子插件的时候引起,所以修改了一下打开/关闭子插件的逻辑。
+
+修改后在开发模式和正常模式下经测试均可使用;另外,修改了几处相对路径问题,可支持非根目录下安装的ZBlog
+
+
+
+
+
+ZBlogException::SuspendErrorHook();
+/* 可能会产生错误的代码 */
+ZBlogException::ResumeErrorHook();
+
+// require dirname(__FILE__) . DIRECTORY_SEPARATOR . 'config.php';
+
+// include.php中的$blogpath建议用ZBP_PATH常量代替
+
+┌
+├─
+│
+├─
+└
\ No newline at end of file
diff --git a/temporary file/sheng-ji-xu-yao-xiu-gai-de-di-fang.txt b/temporary file/sheng-ji-xu-yao-xiu-gai-de-di-fang.txt
new file mode 100644
index 0000000..5c017df
--- /dev/null
+++ b/temporary file/sheng-ji-xu-yao-xiu-gai-de-di-fang.txt
@@ -0,0 +1,6 @@
+升级需要修改的地方
+
+/plugin.xml (版本号,修改日期)
+/about/readme.html (更新日志,截图,版本号,现有功能)
+/include.php (版本号修改)
+InstallPlugin_zxd_ctrlcenter下面的zxd_ctrlcenter_version = 'xxx';
\ No newline at end of file
diff --git a/temporary file/test.php b/temporary file/test.php
new file mode 100644
index 0000000..90f34fe
--- /dev/null
+++ b/temporary file/test.php
@@ -0,0 +1,9 @@
+SERVER_PORT: ".$_SERVER["SERVER_PORT"];
+echo "
HTTP_HOST: ".$_SERVER["HTTP_HOST"];
+echo "
SERVER_NAME: ".$_SERVER["SERVER_NAME"];
+echo "
REQUEST_URI: ".$_SERVER["REQUEST_URI"];
+echo "
PHP_SELF: ".$_SERVER["PHP_SELF"];
+echo "
QUERY_STRING: ".$_SERVER["QUERY_STRING"];
+echo "
HTTP_REFERER: ".$_SERVER["HTTP_REFERER"];
\ No newline at end of file
diff --git a/temporary file/variable-list.txt b/temporary file/variable-list.txt
new file mode 100644
index 0000000..7c1ce19
--- /dev/null
+++ b/temporary file/variable-list.txt
@@ -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)
+
+ ├─ 以下两行包含:
+ ├─ 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'; // 添加版权信息
+ ├─
+ ├─
+ ├─
+ ├─
+ ├─
+ ├─
+ ├─
+ ├─
+ ├─
\ No newline at end of file