Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 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 | |||||
8 | if (isset($_GET['id']) && is_numeric($_GET['id'])) { | ||||
9 | if ($details = mailbox('get', 'syncjob_details', intval($_GET['id']))) { | ||||
10 | echo (empty($details['log'])) ? '-' : $details['log']; | ||||
11 | } | ||||
12 | } | ||||
13 | |||||
14 | ?> |