尚未开发完成,暂时保存
This commit is contained in:
@@ -68,8 +68,8 @@ $(function() {
|
||||
})
|
||||
});
|
||||
$("pre[id^='pre_']").each(function() {
|
||||
$(this).html($(this).html()/*' + <span style="position:absolute;left:-9999px;">\r\n\r\n代码来自:' + bloghost +
|
||||
"</span>"*/)
|
||||
$(this).html($(this).html() + '<span style="position:absolute;left:-9999px;">\r\n\r\n代码来自:' + bloghost +
|
||||
"</span>")
|
||||
});
|
||||
$(".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", {
|
||||
|
23
temporary file/change-plugin-status.php.bak
Normal file
23
temporary file/change-plugin-status.php.bak
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
switch ($_GET['action']) {
|
||||
case 'dis':
|
||||
$action = "dis";
|
||||
$infoMessage = "插件已启用,点击禁用插件";
|
||||
break;
|
||||
case 'enb':
|
||||
$action = "enb";
|
||||
$infoMessage = "插件已禁用,点击启用插件";
|
||||
break;
|
||||
default:
|
||||
exit();
|
||||
break;
|
||||
}
|
||||
?>
|
||||
|
||||
<script>
|
||||
function btnclick() {
|
||||
// myWindow是打开的窗口,myWindow.opener是当前窗口
|
||||
window.open().location = "<? echo $bloghost.'zb_users/plugin/zxd_ctrlcenter/plugin/'.$PluginName.'/status.php?action='.$action; ?>";
|
||||
}
|
||||
</script>
|
||||
<a onclick="btnclick();"><? echo $infoMessage; ?></a>
|
34
temporary file/notes.txt
Normal file
34
temporary file/notes.txt
Normal file
@@ -0,0 +1,34 @@
|
||||
|
||||
标签:免费应用推荐,控制中心,控制面板,Z-Blog PHP,张小弟之家
|
||||
|
||||
1.请打开开发模式检查main.php;
|
||||
检查完毕,已修正开发模式下报错的问题。
|
||||
|
||||
2.include.php中的$blogpath建议用ZBP_PATH常量代替;
|
||||
已修改。
|
||||
|
||||
3.不要用<? ?>,请使用<?php ?>;
|
||||
已修改。
|
||||
|
||||
4.在我本地还有一些奇怪的问题;
|
||||
这个问题我这里调试的时候没有发现,可能是由于上面几个问题引起,或者我个人是打开/关闭子插件的时候引起,所以修改了一下打开/关闭子插件的逻辑。
|
||||
|
||||
修改后在开发模式和正常模式下经测试均可使用;另外,修改了几处相对路径问题,可支持非根目录下安装的ZBlog
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
ZBlogException::SuspendErrorHook();
|
||||
/* 可能会产生错误的代码 */
|
||||
ZBlogException::ResumeErrorHook();
|
||||
|
||||
// require dirname(__FILE__) . DIRECTORY_SEPARATOR . 'config.php';
|
||||
|
||||
// include.php中的$blogpath建议用ZBP_PATH常量代替
|
||||
|
||||
┌
|
||||
├─
|
||||
│
|
||||
├─
|
||||
└
|
6
temporary file/sheng-ji-xu-yao-xiu-gai-de-di-fang.txt
Normal file
6
temporary file/sheng-ji-xu-yao-xiu-gai-de-di-fang.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
升级需要修改的地方
|
||||
|
||||
/plugin.xml (版本号,修改日期)
|
||||
/about/readme.html (更新日志,截图,版本号,现有功能)
|
||||
/include.php (版本号修改)
|
||||
InstallPlugin_zxd_ctrlcenter下面的zxd_ctrlcenter_version = 'xxx';
|
9
temporary file/test.php
Normal file
9
temporary file/test.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
echo "rewrite: ".$_GET["rewrite"];
|
||||
echo "<br>SERVER_PORT: ".$_SERVER["SERVER_PORT"];
|
||||
echo "<br>HTTP_HOST: ".$_SERVER["HTTP_HOST"];
|
||||
echo "<br>SERVER_NAME: ".$_SERVER["SERVER_NAME"];
|
||||
echo "<br>REQUEST_URI: ".$_SERVER["REQUEST_URI"];
|
||||
echo "<br>PHP_SELF: ".$_SERVER["PHP_SELF"];
|
||||
echo "<br>QUERY_STRING: ".$_SERVER["QUERY_STRING"];
|
||||
echo "<br>HTTP_REFERER: ".$_SERVER["HTTP_REFERER"];
|
37
temporary file/variable-list.txt
Normal file
37
temporary file/variable-list.txt
Normal 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'; // 添加版权信息
|
||||
├─
|
||||
├─
|
||||
├─
|
||||
├─
|
||||
├─
|
||||
├─
|
||||
├─
|
||||
├─
|
||||
├─
|
Reference in New Issue
Block a user