<!--安装失败的信息:给出提示信息-->
		<div class="mainTxt">
			<hr />
            		<div class="con red"><p><strong>安装失败,安装数据已全部回退。</strong></p></div>
			<div class="con red"><p>如果您能将“初始化程序以及数据”提示信息,以及论坛地址、论坛版本和论坛字符编码等信息反馈给我们(比如<a href="http://bbs.x.weibo.com/forum/forumdisplay.php?fid=9" target="_blank">官方论坛</a>),将有助于我们的产品改进,感谢您的支持!</p></div>
			<div class="con red"><p>联系邮箱:<a href="mailto:xweibo@vip.sina.com">mailto:xweibo@vip.sina.com</a>&nbsp;|&nbsp;技术支持:<a href="http://x.weibo.com/" target="_blank">Xweibo官网</a></p></div>
		</div>
		<div class="clear"></div>
		
		<?php 
}
?>
		
		<div class="footer">Copyright &copy; 1996-2010 SINA</div>
		</div>
</div>

<?php 
//统计上报[安装]
$xwb_statType = 'in';
$xwb_statArgs = array();
$xwb_statArgs['akey'] = $appkey;
$xwb_statArgs['uid'] = 0;
$xwb_statArgs['domain'] = str_replace(array('http://', 'https://'), '', XWB_plugin::baseUrl());
$xwb_statArgs['qq'] = $qq;
echo XWB_plugin::statUrl($xwb_statType, $xwb_statArgs, true);
?>

</body>
</html>
                </div>
                <?php 
}
?>
                
            </div>
            

            
            
            
            
            
        </div>
        <b class="bg_regBot">&nbsp;</b>
    </div>
</div>
<?php 
$xwb_sess = XWB_plugin::getUser();
$xwb_statInfo = $xwb_sess->getStat();
foreach ($xwb_statInfo as $k => $stat) {
    $xwb_statType = isset($stat['xt']) ? (string) $stat['xt'] : 'unknown';
    echo XWB_plugin::statUrl($xwb_statType, $stat, true);
}
if (!empty($xwb_statInfo)) {
    $xwb_sess->clearStat();
}
?>
</body>
</html>
Beispiel #3
0
 /**
  * 统计上报(通过服务器进行上报)
  * @param string $type stat类型
  * @param array $args stat参数
  * @return bool
  */
 function statReport($type, $args = array())
 {
     if (defined('XWB_P_STAT_DISABLE')) {
         return false;
     }
     $statUrl = XWB_plugin::statUrl($type, $args);
     if ('' == $statUrl) {
         return false;
     }
     if (!class_exists('fsockopenHttp')) {
         require_once "fsockopenHttp.class.php";
     }
     $httpObj = new fsockopenHttp();
     $httpObj->setUrl($statUrl);
     $httpObj->max_retries = 0;
     $httpObj->request();
     return true;
 }