清理 ecshop 的自动上报代码

更新日期: 2016-11-26 阅读次数: 9274 分类: ecshop

修改 ecshop 的 admin 后台时,发现一处自动上报的地方,在 admin/templates/index.htm 底部

<frame src="http://api.ecshop.com/record.php?mod=login&url={$shop_url}" id="hidd-frame" name="hidd-frame" frameborder="no" scrolling="no">

目的应该是收集使用 ecshop 的网站地址,没有采用服务器后台上报,而是在浏览器端上报,也的确花了点心思。。。

原本想在服务器 hosts 中插入一条

127.0.0.1 api.ecshop.com

看来是不行了,只能清理代码。

grep api.ecshop.com -r ./                                                                                                                                                            
./admin/shop_config.php:    $spt = '<script type="text/javascript" src="http://api.ecshop.com/record.php?';
./admin/templates/menu.htm:  <script language="JavaScript" src="http://api.ecshop.com/menu_ext.php?charset={$charset}&lang={$help_lang}"></script>
./admin/templates/index.htm:  <frame src="http://api.ecshop.com/record.php?mod=login&url={$shop_url}" id="hidd-frame" name="hidd-frame" frameborder="no" scrolling="no">
Binary file ./admin/templates/.index.htm.swp matches
./admin/index.php:        $api_comment = $t->request('http://api.ecshop.com/checkver.php', $apiget);

事情还没有结束

grep bbs.ecshop.com -r ./
./admin/templates/start.htm: <!-- <script type="text/javascript" src="http://bbs.ecshop.com/notice.php?v=1&n=8&f=ul"></script>-->
./admin/templates/about_us.htm:    <td class="first-cell" width="20%">{$lang.support_forum}</td><td><a href="http://bbs.ecshop.com" target="_blank">http://bbs.ecshop.com</a></td>

参考

关于作者 🌱

我是来自山东烟台的一名开发者,有敢兴趣的话题,或者软件开发需求,欢迎加微信 zhongwei 聊聊, 查看更多联系方式