国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
665B

  1. <?php
  2. /**
  3. * 统计程序
  4. *
  5. * @version $id:statistics.php$
  6. * @package DedeBIZ.Site
  7. * @copyright Copyright (c) 2022 DedeBIZ.COM
  8. * @license https://www.dedebiz.com/license
  9. * @link https://www.dedebiz.com
  10. */
  11. define('IS_DEDEAPI', TRUE);
  12. require_once(dirname(__FILE__)."/../system/common.inc.php");
  13. require_once(DEDEINC."/libraries/statistics.class.php");
  14. if (empty($dopost)) $dopost = '';
  15. $stat = new DedeStatistics;
  16. if ($dopost == "stat") {
  17. $rs = $stat->Record();
  18. $result = array(
  19. "code" => 200,
  20. "data" => "success",
  21. );
  22. echo json_encode($result);
  23. exit;
  24. }
  25. $v = $stat->GetStat();
  26. echo $v;
  27. ?>