Simple code analysis of the webmaster statistics function integrated in shopex

Source: Internet
Author: User
Shopex integrates the one-click enable webmaster statistics function without having to register with CNZZ. similar functions are also available in phpcms and phpwind. The following is a simple analysis of this function, you can also use it on your website in the future. The code is as follows:
// Our domain name, which is not unique here
$ Domain = 'localhost ';
// This should be the encryption key authorized by CNZZ to shopex. if it is incorrect, you cannot quickly apply for an account.
$ Encodestr = 'a34dfwff ';
// This is the URL of the quick application account authorized by CNZZ to shopex.
$ Url = 'http: // wss.cnzz.com/user/companion/shopex.php? Domain = '. $ domain.' & key = '. md5 ($ domain. $ encodestr );
// Obtain the webpage content to obtain such a string: 80772914 @ 3780692425
$ Res = file_get_contents ($ url );
// The Site id for CNZZ statistics on the left and the password on the right
$ Res = explode ('@', $ res );
// Log on to the CNZZ Statistics URL and copy the following address to the address bar to see the effect.
// Http://wss.cnzz.com/user/companion/shopex_login.php? Site_id = 80772914 & password = 3780692425
// Will automatically jump to the http://wss.cnzz.com/v1/main.php? Siteid = 80772914 & s = main_stat
$ Login = 'http: // wss.cnzz.com/user/companion/shopex_login.php? Site_id = '. $ res [0].' & password = '. $ res [1];
Header ("Location: $ login ");
Related Article

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.