syncjob_logs.php 380 B

123456789101112131415
  1. <?php
  2. require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/prerequisites.inc.php';
  3. header('Content-Type: text/plain');
  4. if (!isset($_SESSION['mailcow_cc_role'])) {
  5. exit();
  6. }
  7. if (isset($_GET['id']) && is_numeric($_GET['id'])) {
  8. if ($details = mailbox('get', 'syncjob_details', intval($_GET['id']))) {
  9. echo (empty($details['log'])) ? '-' : $details['log'];
  10. }
  11. }
  12. ?>