index.php 590 B

1234567891011121314151617181920212223
  1. <?php
  2. // Init
  3. error_reporting(NULL);
  4. session_start();
  5. $TAB = 'STATS';
  6. $_SESSION['back'] = $_SERVER['REQUEST_URI'];
  7. include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
  8. // Header
  9. include($_SERVER['DOCUMENT_ROOT'].'/templates/header.html');
  10. // Panel
  11. top_panel($user,$TAB);
  12. // Data
  13. exec (VESTA_CMD."v-list-user-stats $user json", $output, $return_var);
  14. $data = json_decode(implode('', $output), true);
  15. $data = array_reverse($data);
  16. unset($output);
  17. include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_stats.html');
  18. // Footer
  19. include($_SERVER['DOCUMENT_ROOT'].'/templates/footer.html');