35 lines
1.4 KiB
PHP
35 lines
1.4 KiB
PHP
<?php
|
|
|
|
/**
|
|
* This is NOT a freeware, use is subject to license terms
|
|
* 应用名称: 贴吧楼中楼回复 9.0
|
|
* 下载地址: https://addon.dismall.com/plugins/replyfloor.html
|
|
* 应用开发者: 乘凉
|
|
* 开发者QQ: 594433766
|
|
* 更新日期: 202505310549
|
|
* 授权域名: www.shitangsweet.com
|
|
* 授权码: 2025053105b89RrI3R9n
|
|
* 未经应用程序开发者/所有者的书面许可,不得进行反向工程、反向汇编、反向编译等,不得擅自复制、修改、链接、转载、汇编、发表、出版、发展与之有关的衍生产品、作品等
|
|
*/
|
|
|
|
|
|
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');
|
|
}
|
|
}
|
|
}
|
|
} |