index.php 590 B

1234567891011121314151617181920212223242526
  1. <?php
  2. // Init
  3. error_reporting(NULL);
  4. session_start();
  5. $TAB = 'IP';
  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. if ($_SESSION['user'] == 'admin') {
  13. exec (VESTA_CMD."v_list_sys_ips 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_ip.html');
  18. }
  19. // Footer
  20. include($_SERVER['DOCUMENT_ROOT'].'/templates/footer.html');