Exemple #1
0
        }
        updateForumset($updateArray);
        adminmsg('operate_success', "{$basename}&action=forumcredit");
    }
} elseif ($action == 'static' || $action == 'smsbuy') {
    L::loadClass('client', 'utility/platformapisdk', false);
    $platformApiClient = new PlatformApiClient($db_sitehash, $db_siteownerid);
    switch ($action) {
        case 'smsbuy':
            $method = 'credit.pay.index';
            break;
        default:
            $method = 'credit.statistics.show';
            break;
    }
    $appurl = $platformApiClient->buildPageUrl(0, $method, array('wind_version' => $wind_version));
} elseif ($action == 'certificateauth') {
    S::gp(array('page', 'state', 'step'), 'GP', 2);
    $authService = L::loadClass('Authentication', 'user');
    $states = $authService->getCertificateStates();
    if (empty($step)) {
        $total = $authService->countCertificateInfo($state);
        $pageSize = $db_perpage;
        $certificateInfo = array();
        if ($total) {
            $pages = ceil($total / $pageSize);
            if ($page > $pages || $page < 1) {
                $page = 1;
            }
            $start = ($page - 1) * $pageSize;
            $certificateInfo = $authService->getCertificateInfo($start, $pageSize, $state);