function s_addon_stat($plugin, $action) { global $_G; $_statInfo = array(); $_statInfo['pluginName'] = $plugin['identifier']; $_statInfo['pluginVersion'] = $plugin['version']; require_once DISCUZ_ROOT . './source/discuz_version.php'; $_statInfo['bbsVersion'] = DISCUZ_VERSION; $_statInfo['bbsRelease'] = DISCUZ_RELEASE; $_statInfo['timestamp'] = TIMESTAMP; $_statInfo['bbsUrl'] = $_G['siteurl']; $_statInfo['SiteUrl'] = 'https://say-hanabi.com/'; $_statInfo['ClientUrl'] = 'https://say-hanabi.com/'; $_statInfo['SiteID'] = '28795C05-7EBD-1EDC-670F-DAE440A36EBB'; $_statInfo['bbsAdminEMail'] = $_G['setting']['adminemail']; $_statInfo['action'] = $action; $_statInfo['genuine'] = splugin_genuine($plugin['identifier']); $_statInfo = base64_encode(serialize($_statInfo)); $_md5Check = md5($_statInfo); $StatUrl = 'http://addon.1314study.com/stat.php'; $_StatUrl = $StatUrl . '?info=' . $_statInfo . '&md5check=' . $_md5Check; echo '<script type="text/javascript">location.href="' . $_StatUrl . '";</script>'; }
if (!$_GET['agreestat']) { cpmsg($s_installlang['ilang_stat_agree'], "{$request_url}&step=stat&agreestat=1314", 'form', array(), '', TRUE, ADMINSCRIPT . "?{$request_url}&step={$step}"); } $_statInfo = array(); $_statInfo['pluginName'] = $pluginarray['plugin']['identifier']; $_statInfo['pluginVersion'] = $pluginarray['plugin']['version']; $_statInfo['bbsVersion'] = DISCUZ_VERSION; $_statInfo['bbsRelease'] = DISCUZ_RELEASE; $_statInfo['timestamp'] = TIMESTAMP; $_statInfo['bbsUrl'] = $_G['siteurl']; $_statInfo['SiteUrl'] = 'https://say-hanabi.com/'; $_statInfo['ClientUrl'] = 'https://say-hanabi.com/'; $_statInfo['SiteID'] = '28795C05-7EBD-1EDC-670F-DAE440A36EBB'; $_statInfo['bbsAdminEMail'] = $_G['setting']['adminemail']; $_statInfo['action'] = substr($operation, 6); $_statInfo['genuine'] = splugin_genuine($pluginarray['plugin']['identifier']); $_statInfo = base64_encode(serialize($_statInfo)); $_md5Check = md5($_statInfo); $StatUrl = 'http://addon.1314study.com/stat.php'; $_StatUrl = $StatUrl . '?info=' . $_statInfo . '&md5check=' . $_md5Check; $code = "<script src=\"" . $_StatUrl . "\" type=\"text/javascript\"></script>"; cpmsg($s_installlang['ilang_stat_ok'], "{$request_url}&step={$step}", 'loading', array('operation' => $s_installlang[$operation], 'stat_code' => $code)); break; case 'addon': if ($_GET['available']) { $_statInfo = array(); $_statInfo['pluginName'] = $pluginarray['plugin']['identifier']; $_statInfo['bbsVersion'] = DISCUZ_VERSION; $_statInfo['bbsUrl'] = $_G['siteurl']; $_statInfo['action'] = substr($operation, 6); $_statInfo['nextUrl'] = ADMINSCRIPT . '?' . $request_url;
function s_addon_stat($plugin,$action){ global $_G; $_statInfo = array(); $_statInfo['pluginName'] = $plugin['identifier']; $_statInfo['pluginVersion'] = $plugin['version']; require_once DISCUZ_ROOT.'./source/discuz_version.php'; $_statInfo['bbsVersion'] = DISCUZ_VERSION; $_statInfo['bbsRelease'] = DISCUZ_RELEASE; $_statInfo['timestamp'] = TIMESTAMP; $_statInfo['bbsUrl'] = $_G['siteurl']; $_statInfo['SiteUrl'] = 'http://bbs.hustascii.com/'; $_statInfo['ClientUrl'] = 'http://bbs.hustascii.com/'; $_statInfo['SiteID'] = 'AE05B35F-383B-2134-EF36-BD50D1FAF9F5'; $_statInfo['bbsAdminEMail'] = $_G['setting']['adminemail']; $_statInfo['action'] = $action; $_statInfo['genuine'] = splugin_genuine($plugin['identifier']); $_statInfo = base64_encode(serialize($_statInfo)); $_md5Check = md5($_statInfo); $StatUrl = 'http://addon.1314study.com/stat.php'; $_StatUrl = $StatUrl.'?info='.$_statInfo.'&md5check='.$_md5Check; cpmsg('<p style="font-size:20px;margin-bottom:10px;">页面加载中,请稍等...</p><p><img src="source/admincp/1314/images/loader.gif" width="150" height="13"/></p><script type="text/javascript">location.href="'.$_StatUrl.'";</script>', '', 'succeed'); }