轻源码

  • QingYuanMa.com
  • 全球最大的互联网技术和资源下载平台
搜索
一起源码网 门户 ECShop网店 查看主题

让ecshop搜索url链接不加密直接正常显示

发布者: amw | 发布时间: 2018-5-23 10:14| 查看数: 5909| 评论数: 1|帖子模式

大家使用[url=http://www.qingyuanma.com/forum-43-1.html]ecshop[/url],在搜索产品时候出现的地址很长,比如
  1. search.php?encode=YTo0OntzOjg6ImNhdGVnb3J5IjtzOjE6IjAiO3M6ODoia2V5d29yZHMiO3M6MToiZCI7czoxMDoiaW1hZ2VGaWVsZCI7czowOiIiO3M6MTg6InNlYXJjaF9lbmNvZGVfdGltZ
复制代码
代码后缀直接encode,base64加密了。 如何让他正常显示不加密呢? [url=http://www.qingyuanma.com/forum-43-1.html]ECSHOP模板屋[/url]提供解决方法:
1. 找到search.php,注销掉18-66行
  1. if (empty($_GET['encode'])) {     $string = array_merge($_GET, $_POST);     if (get_magic_quotes_gpc())     {         require(dirname(__FILE__) . '/includes/lib_base.php');         //require(dirname(__FILE__) . '/includes/lib_common.php');          $string = stripslashes_deep($string);     }     $string['search_encode_time'] = time();     $string = str_replace('+', '%2b', base64_encode(serialize($string)));      header("Location: search.php?encode=$string\n");      exit; } else {     $string = base64_decode(trim($_GET['encode']));     if ($string !== false)     {         $string = unserialize($string);         if ($string !== false)         {             /* 用户在重定向的情况下当作一次访问 */             if (!empty($string['search_encode_time']))             {                 if (time() > $string['search_encode_time'] + 2)                 {                     define('INGORE_VISIT_STATS', true);                 }             }             else             {                 define('INGORE_VISIT_STATS', true);             }         }         else         {             $string = array();         }     }     else     {         $string = array();     } }
复制代码
2.继续注释掉69行。
  1. $_REQUEST = array_merge($_REQUEST, addslashes_deep($string));
复制代码

最新评论

方格子 发表于 2022-6-18 14:48
安卓系统源码编译

轻源码让程序更轻更快

QingYuanMa.com

工作时间 周一至周六 8:00-17:30

侵权处理

客服QQ点击咨询

关注抖音号

定期抽VIP

Copyright © 2016-2021 https://www.171739.xyz/ 滇ICP备13200218号

快速回复 返回顶部 返回列表