A api_php instance of obtaining store information in a complete deletion ecshop

Source: Internet
Author: User

The version you use is ecshop_v2.7.3_utf8_release1106, and the following steps are used to completely remove the API interface from which to get store information.

First, delete the access to the store information API

1. admin/index.php Search "elseif ($_request[' act '] = = ' Main_api ')", delete, source file 489-539 lines.
This feature is the official access to Ecshop version, language, release time, PHP version, database version, encoding, order quantity, number of items, number of users and shop theme, style name, shop URL, patch information API.

2. Open admin/templates/start.htm, search "Ajax.call" (' Index.php?is_ajax=1&act=main_api ', ', ', Start_api, ' get ', ' TEXT ', ' Flase '); " Delete, at the same time "Start_api ()", "Api_styel ()" deleted, the source file 234-293 lines.

Ii. Delete the API for obtaining and recording store addresses

1. Admin/templates/index.htm search "http://api.ecshop.com/record.php?mod=login&url={$shop _url}" to remove this hidden frameset, The source file is 25-27 lines.

Third, delete store configuration submission, get the store configuration, including: Name, title, description, keywords, country, address, QQ, mailbox, version number, code

1. admin/shop_config.php search "$SPT = ' <script type=" Text/javascript "src=" http://api.ecshop.com/record.php? '; ', will "$ SPT "This variable is deleted. The source file is 231-243 lines. And the following reference to "$SPT" where the "$SPT" deleted. Source file 245-254 Lines (delete only variables, not whole paragraphs).

Four, delete the store menu to get language and coding

1. Admin/templates/menu.htm search "' <script language=" JavaScript "src=" ' http://api.ecshop.com/menu_ext.php?charset= {$charset}&lang={$help _lang} "> ' </script>", whole row Delete, source file 143 lines.

The following is the removal of the API interface in the installation files, if you have completed the installation, there is no need to do this step

1. install/includes/lib_auto_installer.php find "Get_spt_code ()" To change its return value to null (returns "";).
This section is to obtain the store access URL, installation operation, version, hash value, encoding, language.

2. install/includes/lib_installer.php also changes the return value of "Get_spt_code ()" to be available.

All right, it's all done, there's a small partner in need.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.