Home  >  Article  >  Backend Development  >  完整删除ecshop中获取店铺信息的API_php实例

完整删除ecshop中获取店铺信息的API_php实例

WBOY
WBOYOriginal
2016-06-07 17:14:40841browse

使用的版本是ECShop_V2.7.3_UTF8_release1106,按以下步骤可完整去除其中获取店铺信息的API接口。

一、 删除获取店铺信息的API

1. admin/index.php 搜索 "elseif ($_REQUEST['act'] == 'main_api')" ,删除,源文件 489 - 539 行。
此段功能是官方获取ecshop版本、语种、发布时间、PHP版本、数据库版本、编码、订单数量、商品数量、用户数量以及店铺主题、样式名称、店铺URL、补丁信息的api。

2. 打开admin/templates/start.htm,搜索"Ajax.call('index.php?is_ajax=1&act=main_api','', start_api, 'GET', 'TEXT','FLASE');"删除,同时将"start_api()"、"api_styel()"删除,源文件 234 - 293 行。

二、 删除获取并记录店铺地址的API

1. admin/templates/index.htm 搜索 "http://api.ecshop.com/record.php?mod=login&url={$shop_url}",删除这个隐藏的frameset,源文件25 - 27行。

三、 删除商店配置提交时,获取的店铺配置,包括:名称,标题,描述,关键字,国家,地址,QQ,邮箱,版本号,编码

1. admin/shop_config.php 搜索 "$spt = '

1. admin/templates/menu.htm 搜索"'",整行删除,源文件 143 行。

五、以下是删除安装文件中的API接口,如果你已经完成安装,则没必要进行这步了

1. install/includes/lib_auto_installer.php 找到 "get_spt_code()" 将它的返回值改为空(return '';)即可。
这段是获取店铺的访问URL,安装操作,版本,哈希值,编码,语种。

2. install/includes/lib_installer.php 同样是将"get_spt_code()"的返回值改为即可。

好了,已经全部搞定,有需要的小伙伴参照着处理吧

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn