function xwb_loadScript(file, charset){
var script = document.createElement('SCRIPT');
script.type = 'text/javascript'; script.charset = charset; script.src = file;
document.getElementsByTagName('HEAD')[0].appendChild(script);
}
var _xwb_cfg_data ={
tipsType: '$tipsType',site_uid: '$site_uid',sina_uid: '$sina_uid',
siteVer: '$siteVer',siteName: '$siteName',pName:'$pName',
regUrl: '$regUrl',
setUrl: '$setUrl',
bindUrl: '$bindUrl',
signerUrl: '$signerUrl',
authUrl: '$authUrl',
getTipsUrl: '$getTipsUrl',
attentionUrl: '$attentionUrl',
wbxUrl: '$wbxUrl',
tipGetCountUrl: '$tipGetCountUrl',
loadingImgUrl : '$xwb_loadingImg',
switchToStd: '$switch_to_xweibo',
baseurlToStd: '$baseurl_to_xweibo'
};
xwb_loadScript("$xwb_loadScript2", "UTF-8");
EOF;
if((int)XWB_plugin::pCfg('is_tgc_display')){
$tipTgcJS = XWB_plugin::getPluginUrl('images/xwb_tgc.js');
$return .= <<
xwb_loadScript("$tipTgcJS", "UTF-8");
EOF;
}
$sess = XWB_plugin::getUser();
$xwb_statInfo = $sess->getStat();
foreach( $xwb_statInfo as $k => $stat ){
$xwb_statType = isset($stat['xt']) ? (string)$stat['xt'] : 'unknown';
$return .= XWB_plugin::statUrl( $xwb_statType, $stat, true );
}
if( !empty($xwb_statInfo) ){
$sess->clearStat();
}
//评论回推前期运行(改在global footer运行)
if( XWB_plugin::pCfg('is_pushback_open') && rand(1,1000) <= 1 ){
$pushInstance = XWB_Plugin::O('pushbackDispatcher');
$pushInstance->prepare();
}
?>