mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2024-12-25 02:29:32 +02:00
15 lines
380 B
PHP
15 lines
380 B
PHP
|
<?php
|
||
|
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/prerequisites.inc.php';
|
||
|
header('Content-Type: text/plain');
|
||
|
if (!isset($_SESSION['mailcow_cc_role'])) {
|
||
|
exit();
|
||
|
}
|
||
|
|
||
|
if (isset($_GET['id']) && is_numeric($_GET['id'])) {
|
||
|
if ($details = mailbox('get', 'syncjob_details', intval($_GET['id']))) {
|
||
|
echo (empty($details['log'])) ? '-' : $details['log'];
|
||
|
}
|
||
|
}
|
||
|
|
||
|
?>
|