index.php 601 B

1234567891011121314151617181920212223242526
  1. <?php
  2. error_reporting(NULL);
  3. $TAB = 'IP';
  4. // Main include
  5. include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
  6. // Header
  7. include($_SERVER['DOCUMENT_ROOT'].'/templates/header.html');
  8. // Panel
  9. top_panel($user,$TAB);
  10. // Data
  11. if ($_SESSION['user'] == 'admin') {
  12. v_exec('v-list-sys-ips', ['json'], false, $output);
  13. $data = json_decode($output, true);
  14. $data = array_reverse($data, true);
  15. include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_ip.html');
  16. }
  17. // Back uri
  18. $_SESSION['back'] = $_SERVER['REQUEST_URI'];
  19. // Footer
  20. include($_SERVER['DOCUMENT_ROOT'].'/templates/footer.html');