index.php 764 B

12345678910111213141516171819202122232425
  1. <?php
  2. require_once WORKERMAN_ROOT_DIR .'applications/Statistics/Web/_init.php';
  3. require_once WORKERMAN_ROOT_DIR .'applications/Statistics/Lib/functions.php';
  4. // fn = main/statistic/log/admin
  5. $func = isset($_GET['fn']) ? $_GET['fn'] : 'main';
  6. if(!function_exists($func))
  7. {
  8. foreach(glob(ST_ROOT . "/Modules/*") as $php_file)
  9. {
  10. require_once $php_file;
  11. }
  12. }
  13. if(!function_exists($func))
  14. {
  15. $func = 'main';
  16. }
  17. $module = isset($_GET['module']) ? $_GET['module'] : '';
  18. $interface = isset($_GET['interface']) ? $_GET['interface'] : '';
  19. $date = isset($_GET['date']) ? $_GET['date'] : date('Y-m-d');
  20. $start_time = isset($_GET['start_time']) ? $_GET['start_time'] : date('Y-m-d');
  21. $offset = isset($_GET['offset']) ? $_GET['offset'] : 0;
  22. echo $func();