index.php 566 B

123456789101112131415161718192021222324
  1. <?php
  2. // Init
  3. error_reporting(NULL);
  4. session_start();
  5. $TAB = 'LOG';
  6. include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
  7. // Header
  8. include($_SERVER['DOCUMENT_ROOT'].'/templates/header.html');
  9. // Panel
  10. top_panel($user,$TAB);
  11. // Data
  12. exec (VESTA_CMD."v-list-user-log $user json", $output, $return_var);
  13. check_error($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_log.html');
  18. // Footer
  19. include($_SERVER['DOCUMENT_ROOT'].'/templates/footer.html');