查看: 877|回复: 0

微擎禁止安装盗版应用的破解方法

[复制链接]

748

主题

39

回帖

3907

积分

管理员

总舵主

积分
3907
QQ
发表于 2024-5-26 13:13:13 | 显示全部楼层 |阅读模式
/web/source/module/manage-system.ctrl.php
1、禁止安装盗版应用的部分在353-356行:
  1. if (is_error($result)) {
  2.                         //itoast($result['message'], referer(), 'error');
  3.                 }
复制代码
按照上面注释即可。
2、禁止检查更新的部分在132-140行:
  1. if ('check_upgrade' == $do) {
  2.         $module_upgrade = module_upgrade_info();
  3.         if (is_error($module_upgrade)) {
  4.                 iajax(-1, $module_upgrade['message']);
  5.         }
  6.         cache_build_uninstalled_module();

  7.         iajax(0, $module_upgrade);
  8. }
复制代码
将该段代码完全删除或者注释掉即可。
3、禁止修改应用模块信息的部分在103-130行:
  1. if ('get_upgrade_info' == $do) {
  2.         $module_name = safe_gpc_string($_GPC['name']);
  3.         $module = module_fetch($module_name);
  4.         if (empty($module)) {
  5.                 iajax(1, '模块不存在!');
  6.         }
  7.         if (APPLICATION_TYPE_TEMPLATES == $module['application_type']) {
  8.                 $manifest_cloud = cloud_t_upgradeinfo($module_name);
  9.         } else {
  10.                 $manifest_cloud = cloud_m_upgradeinfo($module_name);
  11.         }
  12.         if (is_error($manifest_cloud)) {
  13.                 iajax(1, $manifest_cloud['message']);
  14.         }
  15.         $result = array(
  16.                 'name' => $module_name,
  17.                 'upgrade' => $manifest_cloud['upgrade'],
  18.                 'site_branch' => $manifest_cloud['site_branch'],
  19.                 'new_branch' => $manifest_cloud['new_branch'],
  20.                 'branches' => !empty($manifest_cloud['branches']) ? $manifest_cloud['branches'] : '',
  21.                 'from' => 'cloud',
  22.                 'id' => $manifest_cloud['id'],
  23.                 'system_shutdown' => $manifest_cloud['system_shutdown'],
  24.                 'system_shutdown_delay_time' => date('Y-m-d', $manifest_cloud['system_shutdown_delay_time']),
  25.                 'can_update' => isset($manifest_cloud['can_update']) ? $manifest_cloud['can_update'] : -1,
  26.         );
  27.         iajax(0, $result);
  28. }
复制代码
直接删除或者注释即可。

道不同,不相为谋!理想要有,万一实现了呢?
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关注公众号

相关侵权、举报、投诉及建议等,请发 E-mail:2513533699@qq.com

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.|鲁ICP备19000917号|鲁公网安备37078302000320号

在本版发帖
关注公众号
QQ客服返回顶部