index.php 761 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. // Init
  3. error_reporting(NULL);
  4. session_start();
  5. $TAB = 'CRON';
  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. $lang = 'ru_RU.utf8';
  13. setlocale(LC_ALL, $lang);
  14. // Data
  15. exec (VESTA_CMD."v-list-cron-jobs $user json", $output, $return_var);
  16. $data = json_decode(implode('', $output), true);
  17. $data = array_reverse($data);
  18. unset($output);
  19. if ($_SESSION['user'] == 'admin') {
  20. include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_cron.html');
  21. } else {
  22. include($_SERVER['DOCUMENT_ROOT'].'/templates/user/list_cron.html');
  23. }
  24. // Footer
  25. include($_SERVER['DOCUMENT_ROOT'].'/templates/footer.html');