From 8ee96c56d2b4ee3aa27941bed93e8fcf15a8b517 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Mon, 13 Jan 2020 20:19:57 +0100 Subject: [PATCH] fixed error messages --- lam/lib/checkEnvironment.inc | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/lam/lib/checkEnvironment.inc b/lam/lib/checkEnvironment.inc index b8c9f11a..3dfeaf5a 100644 --- a/lam/lib/checkEnvironment.inc +++ b/lam/lib/checkEnvironment.inc @@ -2,7 +2,7 @@ /* This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) - Copyright (C) 2010 - 2019 Roland Gruber + Copyright (C) 2010 - 2020 Roland Gruber This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -41,12 +41,9 @@ if (version_compare(phpversion(), '7.0.0') < 0) { echo "\n\n"; echo "\n"; echo "\n \n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "LDAP Account Manager\n"; + printHeaderContents('LDAP Account Manager', '..'); echo "\n"; - StatusMessage("ERROR", "LAM needs a PHP 5 version which is greater or equal than 7.0.0.", "Please upgrade your PHP installation. The found version is " . phpversion()); + StatusMessage("ERROR", "LAM needs a PHP version which is greater or equal than 7.0.0.", "Please upgrade your PHP installation. The found version is " . phpversion()); echo "

"; echo ""; exit(); @@ -134,10 +131,7 @@ if (sizeof($criticalErrors) > 0) { echo "\n\n"; echo "\n"; echo "\n \n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "LDAP Account Manager\n"; + printHeaderContents('LDAP Account Manager', '..'); echo "\n"; for ($i = 0; $i < sizeof($criticalErrors); $i++) { call_user_func_array("StatusMessage", $criticalErrors[$i]);