Пример #1
0
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>';
}
Пример #2
0
     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;
Пример #3
0
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;">&#x9875;&#x9762;&#x52A0;&#x8F7D;&#x4E2D;&#xFF0C;&#x8BF7;&#x7A0D;&#x7B49;...</p><p><img src="source/admincp/1314/images/loader.gif" width="150" height="13"/></p><script type="text/javascript">location.href="'.$_StatUrl.'";</script>', '', 'succeed');
}