Home > Backend Development > PHP Tutorial > Simple code analysis of the webmaster statistics function integrated in shopex_PHP tutorial

Simple code analysis of the webmaster statistics function integrated in shopex_PHP tutorial

WBOY
Release: 2016-07-21 15:25:05
Original
992 people have browsed it

Copy the code The code is as follows:

//Our domain name can be non-unique here
$domain = 'localhost';
//This should be the encryption key authorized by CNZZ to shopex. If it is wrong, you cannot quickly apply for an account
$encodestr = 'A34dfwfF';
//This is CNZZ The URL address of the quick application account authorized to shopex
$url = 'http://wss.cnzz.com/user/companion/shopex.php?domain='.$domain.'&key='.md5($ domain.$encodestr);
//Get the web page content and get a string like this 80772914@3780692425
$res = file_get_contents($url);
//The left side is the site id counted by CNZZ, and the right side is Password
$res = explode('@',$res);
//Log in to the URL of CNZZ statistics, copy the following address into the address bar to see the effect
//http: //wss.cnzz.com/user/companion/shopex_login.php?site_id=80772914&password=3780692425
//It will automatically jump to 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");

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/324175.htmlTechArticleCopy the code as follows: ?php //Our domain name, here can be non-unique $domain = 'localhost' ; //This should be the encryption key authorized by CNZZ to shopex. If it is wrong, you cannot apply quickly...
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template