ecshop中广告位的ID是在哪里查看?

更新时间:2012-04-14 点击量:1367

大家使用ecshop,在搜索产品时候出现的地址很长,比如

search.php?encode=YTo0OntzOjg6ImNhdGVnb3J5IjtzOjE6IjAiO3M6ODoia2V5d29yZHMiO3M6MToiZCI7czoxMDoiaW1hZ2VGaWVsZCI7czowOiIiO3M6MTg6InNlYXJjaF9lbmNvZGVfdGltZ 代码后缀直接encode,base64加密了。 如何让他正常显示不加密呢? 优易软件提供解决方法:

1. 找到search.php,注销掉18-66行

 

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行。

 

$_REQUEST = array_merge($_REQUEST, addslashes_deep($string));

支付宝扫码打赏 微信打赏

如果文章对您有帮助,就打赏一个吧

在线客服

客户服务

热线电话:

13128985956 服务时间:

周一到周六:9:00-18:00

在线QQ客服

在线微信客服

关于我们 常见问题

支付方式 加盟合作

提交需求
优惠红包 购物车0 反馈留言 返回顶部