index.php 694 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. error_reporting(NULL);
  3. $TAB = 'UPDATES';
  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-vesta-updates', ['json'], false, $output);
  13. $data = json_decode($output, true);
  14. v_exec('v-list-sys-vesta-autoupdate', ['plain'], false, $output);
  15. $autoupdate = strtok($output, "\n");
  16. include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_updates.html');
  17. }
  18. // Back uri
  19. $_SESSION['back'] = $_SERVER['REQUEST_URI'];
  20. // Footer
  21. include($_SERVER['DOCUMENT_ROOT'].'/templates/footer.html');