国内流行的内容管理系统(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.

25 lines
636B

  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. require_once(dirname(__FILE__)."/../system/common.inc.php");
  12. require_once(DEDEINC."/libraries/statistics.class.php");
  13. if (empty($dopost)) $dopost = '';
  14. $stat = new DedeStatistics;
  15. if ($dopost == "stat") {
  16. $rs = $stat->Record();
  17. $result = array(
  18. "code" => 200,
  19. "data" => "success",
  20. );
  21. echo json_encode($result);
  22. exit;
  23. }
  24. $v = $stat->GetStat();
  25. echo $v;