diff --git a/data/web/debug.php b/data/web/debug.php index dae0c192..863e3527 100644 --- a/data/web/debug.php +++ b/data/web/debug.php @@ -4,12 +4,8 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/prerequisites.inc.php'; if (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == "admin") { require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/header.inc.php'; $_SESSION['return_to'] = $_SERVER['REQUEST_URI']; -if (strtolower(getenv('SKIP_SOLR')) == 'n') { - $solr_status = solr_status(); -} -else { - $solr_status = false; -} +$solr_status = (preg_match("/^([yY][eE][sS]|[yY])+$/", $_ENV["SKIP_SOLR"]) === false) ? solr_status() : false; +$clamd_status = (preg_match("/^([yY][eE][sS]|[yY])+$/", $_ENV["SKIP_CLAMD"]) === false) ? true : false; ?>