尚未开发完成,暂时保存
This commit is contained in:
34
temporary file/BUYER NOTICE.htm
Normal file
34
temporary file/BUYER NOTICE.htm
Normal file
@@ -0,0 +1,34 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
购买须知:<span style="color: red; font-weight: bold;">请仔细阅读后再决定是否购买本插件!</span>
|
||||
</p>
|
||||
<ol type="1" start="1" style="color: red;">
|
||||
<li>本插件原则上不提供售后服务。您购买本插件不代表我们会提供一对一服务;也不代表我们会对您使用插件的后果承担责任。</li>
|
||||
<li>代码经过加密混淆,即使您购买,也无法获取源码。</li>
|
||||
<li>您购买本插件,需要遵守相关规则,只有在您购买的账户下可下载本插件。</li>
|
||||
<li>购买本插件,仅代表您有拥有插件的使用权,您无权将插件分享给他人,或通过技术手段对插件所包含任意文件(特别是插件的版权信息)进行修改或删除,或在应用商店中以“收费”插件的形式再次发布本插件相关代码(即您不可通过本插件代码获得任何收益)。</li>
|
||||
<li>本插件属于特殊商品,已经购买概不退货,您已知晓并理解。</li>
|
||||
</ol>
|
||||
<p>
|
||||
为什么不提供售后?
|
||||
</p>
|
||||
<p>
|
||||
说实话,做插件真的不赚钱!真的不赚钱!做插件所投入的时间成本远不止这一点钱可以换来的!设置收费只是希望下载的站长们能够善用这款插件。所以本插件原则上不提供售后服务,但在我能力范围内的问题,我有空时一般都会解答。
|
||||
</p>
|
||||
<p>
|
||||
购买后,支持本插件后续免费升级新版本(如果有)。如果您不愿意购买,请加张小弟之家粉丝群(可在https://only4.work/网站博客下方找到加群方式,点击“张小弟粉丝群”超链接即可加入)并私聊管理员,管理员将安装包单独发给你,但是不提供更新,想要使用新版本需要再次联系管理员。
|
||||
</p>
|
||||
<p>
|
||||
购买和不购买的区别:
|
||||
</p>
|
||||
<ul type="disc">
|
||||
<li>通过应用商店购买的版本原作者的版权可折叠,拍下即可立即下载使用,享受插件所有功能,插件代码严格按照官方开发文档开发,使用更加放心。</li>
|
||||
<li>通过管理员获取的版本原作者的版权不可折叠,不提供后续更新,插件重要功能可能被砍掉,随即删除部分安全代码,可能会留下未知后门。</li>
|
||||
</ul>
|
||||
<p>
|
||||
<br/>
|
||||
</p>
|
||||
</body>
|
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