无限星辰工作室-客户无限互联网动力之源
标题:
Discuz!x3.4 云平台插件删除程序(完整版)
[打印本页]
作者:
crx349
时间:
2019-11-13 20:50
标题:
Discuz!x3.4 云平台插件删除程序(完整版)
官版的云平台插件降级少了几个插件,导致部分插件还是无法卸载,现在分享个完整版
<?php
include_once('../source/class/class_core.php');
include_once('../source/function/function_core.php');
@set_time_limit(0);
$cachelist = array();
$discuz = C::app();
$discuz->cachelist = $cachelist;
$discuz->init_cron = false;
$discuz->init_setting = true;
$discuz->init_user = false;
$discuz->init_session = false;
$discuz->init_misc = false;
$discuz->init();
$_G['siteurl'] = preg_replace('/\/install\/$/i', '/', $_G['siteurl']);
$plugins = array('cloudstat', 'soso_smilies', 'security', 'pcmgr_url_safeguard', 'manyou', 'cloudcaptcha', 'cloudunion', 'qqgroup', 'xf_storage', 'cloudsearch');
foreach($plugins as $pluginid) {
$plugin = C::t('common_plugin')->fetch_by_identifier($pluginid);
if($plugin) {
$modules = unserialize($plugin['modules']);
$modules['system'] = 0;
$modules = serialize($modules);
C::t('common_plugin')->update($plugin['pluginid'], array('modules' => $modules));
}
}
echo "云平台插件已降为非系统级插件,请删除本工具";
?>
复制代码
保存为yundel.php 放到install目录下,浏览器执行下就可以了
欢迎光临 无限星辰工作室-客户无限互联网动力之源 (https://xmspace.net/)
Powered by Discuz! X3.4