diff --git a/lam/lib/checkEnvironment.inc b/lam/lib/checkEnvironment.inc index 9cfdd53c..fac91333 100644 --- a/lam/lib/checkEnvironment.inc +++ b/lam/lib/checkEnvironment.inc @@ -36,8 +36,8 @@ include_once("../lib/status.inc"); /** config */ include_once("../lib/config.inc"); -// check if PHP >= 5.2.4 -if (version_compare(phpversion(), '5.4.26') < 0) { +// check if PHP >= 5.3.2 +if (version_compare(phpversion(), '5.3.2') < 0) { echo "\n\n"; echo "\n\n"; echo "\n"; @@ -46,7 +46,7 @@ if (version_compare(phpversion(), '5.4.26') < 0) { echo "\n"; echo "LDAP Account Manager\n"; echo "\n"; - StatusMessage("ERROR", "LAM needs a PHP 5 version which is greater or equal than 5.4.26.", "Please upgrade your PHP installation. The found version is " . phpversion()); + StatusMessage("ERROR", "LAM needs a PHP 5 version which is greater or equal than 5.3.2.", "Please upgrade your PHP installation. The found version is " . phpversion()); echo "

"; echo ""; exit(); diff --git a/lam/lib/modules/posixAccount.inc b/lam/lib/modules/posixAccount.inc index a09c7820..2b9c50bf 100644 --- a/lam/lib/modules/posixAccount.inc +++ b/lam/lib/modules/posixAccount.inc @@ -194,8 +194,10 @@ class posixAccount extends baseModule implements passwordService { $loginShellsHelp = new htmlHelpLink('loginShells', get_class($this)); $loginShellsHelp->alignment = htmlElement::ALIGN_TOP; $selfServiceContainer->addElement($loginShellsHelp, true); - $selfServiceContainer->addElement(new htmlTableExtendedInputCheckbox('posixAccount_useOldPwd', false, _('Password change with old password'))); - $selfServiceContainer->addElement(new htmlHelpLink('useOldPwd', get_class($this)), true); + if (version_compare(phpversion(), '5.4.26') >= 0) { + $selfServiceContainer->addElement(new htmlTableExtendedInputCheckbox('posixAccount_useOldPwd', false, _('Password change with old password'))); + $selfServiceContainer->addElement(new htmlHelpLink('useOldPwd', get_class($this)), true); + } $return['selfServiceSettings'] = $selfServiceContainer; } // profile checks