index.php 601 B

123456789101112131415161718192021222324
  1. <?php
  2. // Init
  3. error_reporting(NULL);
  4. session_start();
  5. $TAB = 'RRD';
  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. if ($_SESSION['user'] == 'admin') {
  14. exec (VESTA_CMD."v_list_sys_rrd json", $output, $return_var);
  15. $data = json_decode(implode('', $output), true);
  16. unset($output);
  17. include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_rrd.html');
  18. }
  19. // Footer
  20. include($_SERVER['DOCUMENT_ROOT'].'/templates/footer.html');