?> %"> </div> </div> </div> </div> <h4>Mail queue</h4> <pre> <?php echo_sys_info("mailq"); ?> </pre> <h4>Pflogsumm</h4> <textarea rows="20" style="font-family:monospace;font-size:9pt;width:100%;"> <?php echo_sys_info("pflog"); ?> </textarea> <form method="post"> <div class="form-group"> <input type="hidden" name="pflog_renew" value="1"> <button type="submit" class="btn btn-default">Renew Pflogsumm</button> </div> </form> </div> </div> </div> <?php } elseif (isset($_SESSION['mailcow_cc_loggedin']) && $_SESSION['mailcow_cc_loggedin'] == "yes" && $_SESSION['mailcow_cc_role'] == "domainadmin") { header('Location: mailbox.php');
?> </textarea> <p>Last refresh: <?php echo round(abs(date('U') - filemtime($PFLOG)) / 60, 0) . " minutes ago"; ?> </p> <form method="post"> <div class="form-group"> <input type="hidden" name="pflog_renew" value="1"> <button type="submit" class="btn btn-default">Refresh Pflogsumm log</button> </div> </form> <h4>Mailgraph</h4> <?php echo_sys_info("mailgraph"); ?> </div> </div> </div> <?php } elseif (isset($_SESSION['mailcow_cc_loggedin']) && $_SESSION['mailcow_cc_loggedin'] == "yes" && $_SESSION['mailcow_cc_role'] == "domainadmin") { header('Location: mailbox.php'); die("Permission denied"); } elseif (isset($_SESSION['mailcow_cc_loggedin']) && $_SESSION['mailcow_cc_loggedin'] == "yes" && $_SESSION['mailcow_cc_role'] == "user") { header('Location: user.php'); die("Permission denied"); } else { if (!function_exists('exec') || !function_exists('shell_exec')) { ?>
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="<?php echo_sys_info("ram"); ?> " aria-valuemin="0" aria-valuemax="100" style="width:<?php echo_sys_info("ram"); ?> %"> </div> </div> </div> </div> <h4>Mail queue</h4> <pre> <?php echo_sys_info("mailq"); ?> </pre> </div> </div> <?php } elseif (isset($_SESSION['mailcow_cc_loggedin']) && $_SESSION['mailcow_cc_loggedin'] == "yes" && $_SESSION['mailcow_cc_role'] == "domainadmin") { header('Location: mailbox.php'); die("Permission denied"); } elseif (isset($_SESSION['mailcow_cc_loggedin']) && $_SESSION['mailcow_cc_loggedin'] == "yes" && $_SESSION['mailcow_cc_role'] == "user") { header('Location: user.php'); die("Permission denied"); } else { ?> <div class="panel panel-default">