PHP 5.3.2 required

This commit is contained in:
Roland Gruber 2015-03-01 10:30:24 +00:00
parent 4324843792
commit 7e41184e8f
3 changed files with 6 additions and 7 deletions

View File

@ -1,10 +1,13 @@
March 2015
- templates for server profiles
- Requires PHP 5.3.2 or higher
- Templates for server profiles
- Unix/Personal: support SASL as password hash type
- PDF export: added option to print primary group members
- Use HTTP_X_REAL_IP/HTTP_X_FORWARDED_FOR to log IP addresses (RFE 120)
- LAM Pro:
-> Personal: support image file size limit and cropping (requires php-imagick) in self service
- fixed bugs:
-> Self Service shows password reuse error after password change was required
16.12.2014 4.8

View File

@ -186,10 +186,6 @@ function pwd_hash($password, $enabled = true, $hashType = 'SSHA') {
* @return array hash types
*/
function getSupportedHashTypes() {
if (version_compare(phpversion(), '5.3.2') < 0) {
// CRYPT-SHA512 requires PHP 5.3.2 or higher
return array('CRYPT', 'SHA', 'SSHA', 'MD5', 'SMD5', 'PLAIN', 'SASL');
}
return array('CRYPT', 'CRYPT-SHA512', 'SHA', 'SSHA', 'MD5', 'SMD5', 'PLAIN', 'SASL');
}

View File

@ -3,7 +3,7 @@
$Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2010 - 2013 Roland Gruber
Copyright (C) 2010 - 2015 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
@ -37,7 +37,7 @@ include_once("../lib/status.inc");
include_once("../lib/config.inc");
// check if PHP >= 5.2.4
if (version_compare(phpversion(), '5.2.4') < 0) {
if (version_compare(phpversion(), '5.3.2') < 0) {
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n\n";
echo "<html>\n<head>\n";
echo "<meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\">\n";