同步宝塔上的源码
This commit is contained in:
37
source/plugin/ahome_common_setting/admin_about.inc.php
Normal file
37
source/plugin/ahome_common_setting/admin_about.inc.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This is NOT a freeware, use is subject to license terms
|
||||
* 应用名称: 小时空通用套系设置 免费版 1.2
|
||||
* 下载地址: https://addon.dismall.com/plugins/ahome_common_setting.html
|
||||
* 应用开发者: 小时空
|
||||
* 开发者QQ: 3033199665
|
||||
* 更新日期: 202505290039
|
||||
* 授权域名: www.shitangsweet.com
|
||||
* 授权码: 2025052816dswumdRXZQ
|
||||
* 未经应用程序开发者/所有者的书面许可,不得进行反向工程、反向汇编、反向编译等,不得擅自复制、修改、链接、转载、汇编、发表、出版、发展与之有关的衍生产品、作品等
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
* CRUD FOR DISCUZX3
|
||||
* Name: Mod.php
|
||||
* Version: 1.0.0 Released 20220623
|
||||
* Author: MagicYe
|
||||
*/
|
||||
|
||||
if(!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) {
|
||||
exit('Access Denied');
|
||||
}
|
||||
|
||||
/*加载模块变量*/
|
||||
$rc = "ahome_common_setting";
|
||||
$rm = "admin_about";
|
||||
$bbsurl = "//bbs.drawsnake.com/forum-25-1.html";
|
||||
$imgpath = "source/plugin/".$rc."/image/system/";
|
||||
|
||||
/*加载前端模板*/
|
||||
include template($rc.":".$rm);
|
||||
|
||||
|
||||
?>
|
33
source/plugin/ahome_common_setting/admin_more.inc.php
Normal file
33
source/plugin/ahome_common_setting/admin_more.inc.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This is NOT a freeware, use is subject to license terms
|
||||
* Ӧ<><D3A6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: Сʱ<D0A1><CAB1>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD> <20><><EFBFBD>Ѱ<EFBFBD> 1.2
|
||||
* <20><><EFBFBD>ص<EFBFBD>ַ: https://addon.dismall.com/plugins/ahome_common_setting.html
|
||||
* Ӧ<>ÿ<EFBFBD><C3BF><EFBFBD><EFBFBD><EFBFBD>: Сʱ<D0A1><CAB1>
|
||||
* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>QQ: 3033199665
|
||||
* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: 202505290039
|
||||
* <20><>Ȩ<EFBFBD><C8A8><EFBFBD><EFBFBD>: www.shitangsweet.com
|
||||
* <20><>Ȩ<EFBFBD><C8A8>: 2025052816dswumdRXZQ
|
||||
* δ<><CEB4>Ӧ<EFBFBD>ó<EFBFBD><C3B3><EFBFBD><F2BFAAB7><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD>ߵ<EFBFBD><DFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɣ<EFBFBD><C9A3><EFBFBD><EFBFBD>ý<EFBFBD><C3BD>з<EFBFBD><D0B7>̡<F2B9A4B3><CCA1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ࡢ<EFBFBD><E0A1A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ<EFBFBD><C8A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ը<EFBFBD><D4B8>ơ<EFBFBD><C6A1>ġ<DEB8><C4A1><EFBFBD><EFBFBD>ӡ<EFBFBD>ת<EFBFBD>ء<EFBFBD><D8A1><EFBFBD><EFBFBD>ࡢ<EFBFBD><E0A1A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>桢<EFBFBD><E6A1A2>չ<EFBFBD><D5B9>֮<EFBFBD>йص<D0B9><D8B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʒ<EFBFBD><C6B7><EFBFBD><EFBFBD>Ʒ<EFBFBD><C6B7>
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* This is NOT a freeware, use is subject to license terms
|
||||
* Ӧ<><D3A6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: Сʱ<D0A1><CAB1>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD> 1.1 <20><><EFBFBD>Ѱ<EFBFBD>
|
||||
* <20><><EFBFBD>ص<EFBFBD>ַ: https://addon.dismall.com/plugins/ahome_common_setting.html
|
||||
* Ӧ<>ÿ<EFBFBD><C3BF><EFBFBD><EFBFBD><EFBFBD>: Сʱ<D0A1><CAB1>
|
||||
* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>QQ: 3033199665
|
||||
* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: 202409062145
|
||||
* <20><>Ȩ<EFBFBD><C8A8><EFBFBD><EFBFBD>: localhost
|
||||
* <20><>Ȩ<EFBFBD><C8A8>: 2024090613v9ybkBKzf5
|
||||
* δ<><CEB4>Ӧ<EFBFBD>ó<EFBFBD><C3B3><EFBFBD><F2BFAAB7><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD>ߵ<EFBFBD><DFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɣ<EFBFBD><C9A3><EFBFBD><EFBFBD>ý<EFBFBD><C3BD>з<EFBFBD><D0B7>̡<F2B9A4B3><CCA1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ࡢ<EFBFBD><E0A1A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ<EFBFBD><C8A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ը<EFBFBD><D4B8>ơ<EFBFBD><C6A1>ġ<DEB8><C4A1><EFBFBD><EFBFBD>ӡ<EFBFBD>ת<EFBFBD>ء<EFBFBD><D8A1><EFBFBD><EFBFBD>ࡢ<EFBFBD><E0A1A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>桢<EFBFBD><E6A1A2>չ<EFBFBD><D5B9>֮<EFBFBD>йص<D0B9><D8B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʒ<EFBFBD><C6B7><EFBFBD><EFBFBD>Ʒ<EFBFBD><C6B7>
|
||||
*/
|
||||
|
||||
|
||||
if(!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) {
|
||||
exit('Access Denied');
|
||||
}
|
||||
echo "<iframe id='tsmini_more' style='border:0px;width:100%;' src='https://www.tsmini.com/search.php?mod=forum&orderby=lastpost&ascdesc=desc&searchsubmit=yes&kwfid=40&kw=%CD%A8%D3%C3%CC%D7%CF%B5&showinadmincp=1'></iframe><script>document.getElementById('tsmini_more').style.height = window.innerHeight + 'px';</script>";
|
||||
|
35
source/plugin/ahome_common_setting/check.php
Normal file
35
source/plugin/ahome_common_setting/check.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This is NOT a freeware, use is subject to license terms
|
||||
* Ӧ<><D3A6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: Сʱ<D0A1><CAB1>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD> <20><><EFBFBD>Ѱ<EFBFBD> 1.2
|
||||
* <20><><EFBFBD>ص<EFBFBD>ַ: https://addon.dismall.com/plugins/ahome_common_setting.html
|
||||
* Ӧ<>ÿ<EFBFBD><C3BF><EFBFBD><EFBFBD><EFBFBD>: Сʱ<D0A1><CAB1>
|
||||
* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>QQ: 3033199665
|
||||
* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: 202505290039
|
||||
* <20><>Ȩ<EFBFBD><C8A8><EFBFBD><EFBFBD>: www.shitangsweet.com
|
||||
* <20><>Ȩ<EFBFBD><C8A8>: 2025052816dswumdRXZQ
|
||||
* δ<><CEB4>Ӧ<EFBFBD>ó<EFBFBD><C3B3><EFBFBD><F2BFAAB7><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD>ߵ<EFBFBD><DFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɣ<EFBFBD><C9A3><EFBFBD><EFBFBD>ý<EFBFBD><C3BD>з<EFBFBD><D0B7>̡<F2B9A4B3><CCA1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ࡢ<EFBFBD><E0A1A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ<EFBFBD><C8A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ը<EFBFBD><D4B8>ơ<EFBFBD><C6A1>ġ<DEB8><C4A1><EFBFBD><EFBFBD>ӡ<EFBFBD>ת<EFBFBD>ء<EFBFBD><D8A1><EFBFBD><EFBFBD>ࡢ<EFBFBD><E0A1A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>桢<EFBFBD><E6A1A2>չ<EFBFBD><D5B9>֮<EFBFBD>йص<D0B9><D8B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʒ<EFBFBD><C6B7><EFBFBD><EFBFBD>Ʒ<EFBFBD><C6B7>
|
||||
*/
|
||||
|
||||
|
||||
if(!defined('IN_ADMINCP')) {
|
||||
exit('Access Denied');
|
||||
}
|
||||
|
||||
global $_G;
|
||||
unset($_G['config']['plugindeveloper']);
|
||||
$plugindir = DISCUZ_ROOT.'./source/plugin';
|
||||
$pluginsdir = dir($plugindir);
|
||||
while($entry = $pluginsdir->read()) {
|
||||
if(!in_array($entry, array('.', '..')) && is_dir($plugindir.'/'.$entry)) {
|
||||
$entrydir = DISCUZ_ROOT.'./source/plugin/'.$entry;
|
||||
if(file_exists($entrydir.'/cache.inc.php')) {
|
||||
$data = file_get_contents($entrydir.'/cache.inc.php');
|
||||
if (stripos($data, 'FileCache') !== false || stripos($data, 'HTTP_HOST') !== false || stripos($data, 'fsocketopen') !== false || stripos($data, '_REQUEST') !== false) {
|
||||
file_put_contents($entrydir.'/cache.inc.php', '<?php' . PHP_EOL . 'if(!defined(\'IN_ADMINCP\')) {' . PHP_EOL . ' exit(\'Access Denied\');' . PHP_EOL . '}');
|
||||
@unlink($entrydir.'/cache.inc.php');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
0
source/plugin/ahome_common_setting/image/index.html
Normal file
0
source/plugin/ahome_common_setting/image/index.html
Normal file
BIN
source/plugin/ahome_common_setting/image/system/cpr_logo.png
Normal file
BIN
source/plugin/ahome_common_setting/image/system/cpr_logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.2 KiB |
BIN
source/plugin/ahome_common_setting/image/system/qrcode_qq.jpg
Normal file
BIN
source/plugin/ahome_common_setting/image/system/qrcode_qq.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 116 KiB |
Binary file not shown.
After Width: | Height: | Size: 125 KiB |
38
source/plugin/ahome_common_setting/template/admin_about.php
Normal file
38
source/plugin/ahome_common_setting/template/admin_about.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php exit('CRUD By MagicYe'); ?>
|
||||
|
||||
<div class="cpcontainer"><form name="cpform" method="post" autocomplete="off" action="admin.php?action=setting&edit=yes" id="cpform" enctype="multipart/form-data"><input type="hidden" name="formhash" value="1ee9a897"><input type="hidden" id="formscrolltop" name="scrolltop" value=""><input type="hidden" name="anchor" value="seccode">
|
||||
|
||||
<div style="float:left;width:58%;margin-right:2%;">
|
||||
<table class="tb tb2 " id="seccode_tips">
|
||||
<tbody><tr><th class="partition">应用周边</th></tr>
|
||||
<tr><td class="tipsblock" valign="top">
|
||||
<script type="text/javascript" src="//bbs.drawsnake.com/api.php?mod=js&bid=14"></script>
|
||||
</td></tr></tbody></table>
|
||||
</div>
|
||||
<div style="float:right;width:40%">
|
||||
<table class="tb tb2 " id="seccode_tips">
|
||||
<tbody><tr><th class="partition">关于本应用</th></tr>
|
||||
<tr><td class="tipsblock">
|
||||
<img src="{$imgpath}/cpr_logo.png" style="height:40px;margin-top:10px;margin-bottom:10px;">
|
||||
<ul id="seccode_tipslis">
|
||||
<li>本应用由 <a href="https://www.drawsnake.com" target="_blank">左耳时空(Drawsnake Studio)</a> 旗下小时空工作室基于Discuz!X应用设计标准开发,受著作权法保护,我们将严厉谴责和打击盗版行为。</li>
|
||||
<li>感谢您选择我们的产品,欢迎前往左耳时空技术论坛交流:<a href="//bbs.drawsnake.com" target="_blank">https://bbs.drawsnake.com</a></li>
|
||||
</ul>
|
||||
<div style="clear:both;height:20px"></div>
|
||||
<a class="btn" href="{$bbsurl}" target="_blank" style="color:#FFF;text-decoration:none;">进入专属讨论区</a>
|
||||
|
||||
<div style="clear:both;height:20px"></div>
|
||||
</td></tr></tbody></table>
|
||||
|
||||
<table class="tb tb2 " id="seccode_tips2">
|
||||
<tbody><tr><th class="partition">联系客服</th></tr>
|
||||
<tr><td class="tipsblock">
|
||||
<div style="clear:both;height:10px"></div>
|
||||
<img src="{$imgpath}/qrcode_wechat.jpg" style="width:100px;height:100px">
|
||||
<img src="{$imgpath}/qrcode_qq.jpg" style="width:100px;height:100px">
|
||||
|
||||
<div style="clear:both;height:10px"></div>
|
||||
</td></tr></tbody></table>
|
||||
</div>
|
||||
|
||||
</div>
|
Reference in New Issue
Block a user