index.php 466 B

12345678910111213141516171819202122
  1. <?php
  2. $TAB = 'FIREWALL';
  3. // Main include
  4. include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
  5. // Check user
  6. if ($_SESSION['userContext'] != 'admin') {
  7. header("Location: /list/user");
  8. exit;
  9. }
  10. // Data
  11. exec (HESTIA_CMD."v-list-firewall-ipset json", $output, $return_var);
  12. $data = json_decode(implode('', $output), true);
  13. ksort($data);
  14. // Render page
  15. render_page($user, $TAB, 'list_firewall_ipset');
  16. // Back uri
  17. $_SESSION['back'] = $_SERVER['REQUEST_URI'];