欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

shopex中集成的站長(zhǎng)統(tǒng)計(jì)功能的代碼簡(jiǎn)單分析

 更新時(shí)間:2011年08月11日 00:38:03   作者:  
shopex中集成了一鍵開(kāi)啟站長(zhǎng)統(tǒng)計(jì)功能,而無(wú)需去CNZZ注冊(cè),在phpcms,phpwind等中也都有類(lèi)似的功能,下面是對(duì)這個(gè)功能的簡(jiǎn)單分析,以后也可以偷偷用在自己的網(wǎng)站中,呵呵。
復(fù)制代碼 代碼如下:

<?php
//我們的域名,這里可以不唯一的
$domain = 'localhost';
//這個(gè)應(yīng)該是CNZZ授權(quán)給shopex的加密密鑰,如果錯(cuò)了就不能快捷申請(qǐng)賬號(hào)
$encodestr = 'A34dfwfF';
//這個(gè)就是CNZZ授權(quán)給shopex的快捷申請(qǐng)賬號(hào)的URL地址
$url = 'http://wss.#/user/companion/shopex.php?domain='.$domain.'&key='.md5($domain.$encodestr);
//獲取網(wǎng)頁(yè)內(nèi)容得到這樣的一個(gè)字符串 80772914@3780692425
$res = file_get_contents($url);
//左邊是CNZZ統(tǒng)計(jì)的站點(diǎn)id,右邊是密碼
$res = explode('@',$res);
//登錄到CNZZ統(tǒng)計(jì)的URL,把下面的地址復(fù)制到地址欄就可以看到效果了
//http://wss.#/user/companion/shopex_login.php?site_id=80772914&password=3780692425
//會(huì)自動(dòng)跳轉(zhuǎn)到 http://wss.#/v1/main.php?siteid=80772914&s=main_stat
$login = 'http://wss.#/user/companion/shopex_login.php?site_id='.$res[0].'&password='.$res[1];
header("Location:$login");

相關(guān)文章

最新評(píng)論