PHP 5.6 and IE 11
This commit is contained in:
parent
29d3e2560f
commit
c8d36eadd7
|
@ -1,3 +1,7 @@
|
|||
December 2017
|
||||
- PHP 5.6 and Internet Explorer 11 or later required
|
||||
|
||||
|
||||
September 2017 6.1
|
||||
- Automatically trim input fields to avoid trailing/leading spaces
|
||||
- LAM Pro:
|
||||
|
|
|
@ -15,7 +15,7 @@ LAM - Readme
|
|||
|
||||
https://www.ldap-account-manager.org/
|
||||
|
||||
Copyright (C) 2003 - 2016 Roland Gruber <post@rolandgruber.de>
|
||||
Copyright (C) 2003 - 2017 Roland Gruber <post@rolandgruber.de>
|
||||
|
||||
Installation and documentation:
|
||||
Please see the LAM manual in docs/manual/index.html.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
This software is copyright (c) 2003 - 2016 by Roland Gruber
|
||||
This software is copyright (c) 2003 - 2017 by Roland Gruber
|
||||
|
||||
If you purchased a copy of LDAP Account Manager Pro then the following
|
||||
files are licensed under the conditions which you accepted at purchase
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>Apache/Nginx webserver (SSL recommended) with PHP module (PHP
|
||||
(>= 5.4.0) with ldap, gettext, xml, openssl and optional
|
||||
(>= 5.6.0) with ldap, gettext, xml, openssl and optional
|
||||
OpenSSL)</para>
|
||||
</listitem>
|
||||
|
||||
|
@ -44,7 +44,7 @@
|
|||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>Internet Explorer 9 <emphasis role="bold">(compatibility
|
||||
<para>Internet Explorer 11 <emphasis role="bold">(compatibility
|
||||
mode turned off)</emphasis></para>
|
||||
</listitem>
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@
|
|||
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>PHP (>= 5.4.0)</para>
|
||||
<para>PHP (>= 5.6.0)</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
|
@ -85,7 +85,7 @@
|
|||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>Internet Explorer 9<emphasis role="bold"> (compatibility mode
|
||||
<para>Internet Explorer 11<emphasis role="bold"> (compatibility mode
|
||||
turned off)</emphasis></para>
|
||||
</listitem>
|
||||
|
||||
|
|
|
@ -460,10 +460,6 @@ function get_preg($argument, $regexp) {
|
|||
$language = $_SESSION['language'];
|
||||
$language2 = explode ('.', $language);
|
||||
setlocale(LC_ALL, $language2[0]);
|
||||
// workaround for buggy PHP with Turkish
|
||||
if (($language == 'tr_TR.utf8') && (version_compare(phpversion(), '5.5') < 0)) {
|
||||
setlocale(LC_CTYPE, 'en_GB');
|
||||
}
|
||||
// First we check "positive" cases
|
||||
$pregexpr = '';
|
||||
switch ($regexp) {
|
||||
|
@ -592,10 +588,6 @@ function get_preg($argument, $regexp) {
|
|||
if (preg_match($pregexpr, $argument)) {
|
||||
/* Bug in php preg_match doesn't work correct with utf8 */
|
||||
setlocale(LC_ALL, $language);
|
||||
// workaround for buggy PHP with Turkish
|
||||
if (($language == 'tr_TR.utf8') && (version_compare(phpversion(), '5.5') < 0)) {
|
||||
setlocale(LC_CTYPE, 'en_GB');
|
||||
}
|
||||
return true;
|
||||
}
|
||||
// Now we check "negative" cases, characters which are not allowed
|
||||
|
@ -615,18 +607,10 @@ function get_preg($argument, $regexp) {
|
|||
if (!preg_match($pregexpr, $argument)) {
|
||||
/* Bug in php preg_match doesn't work correct with utf8 */
|
||||
setlocale(LC_ALL, $language);
|
||||
// workaround for buggy PHP with Turkish
|
||||
if (($language == 'tr_TR.utf8') && (version_compare(phpversion(), '5.5') < 0)) {
|
||||
setlocale(LC_CTYPE, 'en_GB');
|
||||
}
|
||||
return true;
|
||||
}
|
||||
/* Bug in php preg_match doesn't work correct with utf8 */
|
||||
setlocale(LC_ALL, $language);
|
||||
// workaround for buggy PHP with Turkish
|
||||
if (($language == 'tr_TR.utf8') && (version_compare(phpversion(), '5.5') < 0)) {
|
||||
setlocale(LC_CTYPE, 'en_GB');
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -36,8 +36,8 @@ include_once("../lib/status.inc");
|
|||
/** config */
|
||||
include_once("../lib/config.inc");
|
||||
|
||||
// check if PHP >= 5.4.0
|
||||
if (version_compare(phpversion(), '5.4.0') < 0) {
|
||||
// check if PHP >= 5.6.0
|
||||
if (version_compare(phpversion(), '5.6.0') < 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";
|
||||
|
@ -47,7 +47,7 @@ if (version_compare(phpversion(), '5.4.0') < 0) {
|
|||
echo "<link rel=\"icon\" href=\"../graphics/logo136.png\">\n";
|
||||
echo "<title>LDAP Account Manager</title>\n";
|
||||
echo "</head><body>\n";
|
||||
StatusMessage("ERROR", "LAM needs a PHP 5 version which is greater or equal than 5.4.0.", "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.6.0.", "Please upgrade your PHP installation. The found version is " . phpversion());
|
||||
echo "<br><br>";
|
||||
echo "</body></html>";
|
||||
exit();
|
||||
|
|
|
@ -73,10 +73,6 @@ function setlanguage() {
|
|||
}
|
||||
putenv("LANG=" . $code); // e.g. LANG=de_DE
|
||||
setlocale(LC_ALL, $code); // set LC_ALL
|
||||
// workaround for buggy PHP with Turkish
|
||||
if (($code == 'tr_TR.utf8') && (version_compare(phpversion(), '5.5') < 0)) {
|
||||
setlocale(LC_CTYPE, 'en_GB');
|
||||
}
|
||||
$locdir = substr(__FILE__, 0, strlen(__FILE__) - 15) . "/locale"; // set path to translations
|
||||
bindtextdomain("messages", $locdir);
|
||||
bind_textdomain_codeset("messages", $encoding);
|
||||
|
|
|
@ -186,10 +186,8 @@ class posixAccount extends baseModule implements passwordService {
|
|||
$loginShellsHelp = new htmlHelpLink('loginShells', get_class($this));
|
||||
$loginShellsHelp->alignment = htmlElement::ALIGN_TOP;
|
||||
$selfServiceContainer->addElement($loginShellsHelp, 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);
|
||||
}
|
||||
$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
|
||||
|
|
Loading…
Reference in New Issue