GetOne($query); $query = " SELECT COUNT(*) AS dd FROM `#@__feedback` "; $row2 = $dsql->GetOne($query); $chArrNames = array(); $query = "SELECT id, typename FROM `#@__channeltype` "; $dsql->Execute('c', $query); while ($row = $dsql->GetArray('c')) { $chArrNames[$row['id']] = $row['typename']; } $query = "SELECT COUNT(channel) AS dd, channel FROM `#@__arctiny` GROUP BY channel "; $allArc = 0; $chArr = array(); $dsql->Execute('a', $query); while ($row = $dsql->GetArray('a')) { $allArc += $row['dd']; $row['typename'] = $chArrNames[$row['channel']]; $chArr[] = $row; } ?>
会员数:
文档数:
评论数:
-2 ORDER BY arc.id DESC LIMIT 0, 6 "; $arcArr = array(); $dsql->Execute('m', $query); while ($row = $dsql->GetArray('m')) { $arcArr[] = $row; } AjaxHead(); ?> {$row['title']}"; if ($row['arcrank'] == -1) $linkstr .= "(未审核)"; ?>
-1001, "msg" => "PHP不支持OpenSSL,无法完成商业版授权", "result" => null, )); exit; } if (empty($cfg_auth_code)) { echo json_encode(array( "code" => -1002, "msg" => "当前站点尚未购买商业版授权", "result" => null, )); exit; } openssl_public_decrypt(base64_decode($cfg_auth_code), $decotent, DEDEPUB); $core_info = new stdClass; if (!empty($cfg_bizcore_appid) && !empty($cfg_bizcore_key)) { $client = new DedeBizClient($cfg_bizcore_hostname, $cfg_bizcore_port); $client->appid = $cfg_bizcore_appid; $client->key = $cfg_bizcore_key; $core_info = $client->SystemInfo(); $client->Close(); } if (!empty($decotent)) { $res = json_decode($decotent); if (isset($res->sid)) { echo json_encode(array( "code" => 200, "msg" => "", "result" => array( "domain" => $res->domain, "title" => $res->title, "stype" => $res->stype == 1 ? "企业单位" : "个人", "auth_version" => $res->auth_version, "auth_at" => date("Y-m-d", $res->auth_at), "core" => $core_info, ), )); } } } elseif ($dopost == 'get_statistics') { require_once(DEDEINC."/libraries/statistics.class.php"); //获取统计信息 $sdate = empty($sdate) ? 0 : intval($sdate); $stat = new DedeStatistics; $rs = $stat->GetInfoByDate($sdate); echo json_encode(array( "code" => 200, "msg" => "", "result" => $rs, )); exit; } ?>