index.php 687 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. error_reporting(NULL);
  3. $TAB = 'CRON';
  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. v_exec('v-list-cron-jobs', [$user, 'json'], false, $output);
  12. $data = json_decode($output, true);
  13. $data = array_reverse($data, true);
  14. if ($_SESSION['user'] == 'admin') {
  15. include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_cron.html');
  16. } else {
  17. include($_SERVER['DOCUMENT_ROOT'].'/templates/user/list_cron.html');
  18. }
  19. // Back uri
  20. $_SESSION['back'] = $_SERVER['REQUEST_URI'];
  21. // Footer
  22. include($_SERVER['DOCUMENT_ROOT'].'/templates/footer.html');