index.php 571 B

1234567891011121314151617181920212223
  1. <?php
  2. // Init
  3. error_reporting(NULL);
  4. session_start();
  5. $TAB = 'SERVICES';
  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-services json", $output, $return_var);
  14. $data = json_decode(implode('', $output), true);
  15. unset($output);
  16. include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_services.html');
  17. }
  18. // Footer
  19. include($_SERVER['DOCUMENT_ROOT'].'/templates/footer.html');