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
|
September 2017 6.1
|
||||||
- Automatically trim input fields to avoid trailing/leading spaces
|
- Automatically trim input fields to avoid trailing/leading spaces
|
||||||
- LAM Pro:
|
- LAM Pro:
|
||||||
|
|
|
@ -15,7 +15,7 @@ LAM - Readme
|
||||||
|
|
||||||
https://www.ldap-account-manager.org/
|
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:
|
Installation and documentation:
|
||||||
Please see the LAM manual in docs/manual/index.html.
|
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
|
If you purchased a copy of LDAP Account Manager Pro then the following
|
||||||
files are licensed under the conditions which you accepted at purchase
|
files are licensed under the conditions which you accepted at purchase
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>Apache/Nginx webserver (SSL recommended) with PHP module (PHP
|
<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>
|
OpenSSL)</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>Internet Explorer 9 <emphasis role="bold">(compatibility
|
<para>Internet Explorer 11 <emphasis role="bold">(compatibility
|
||||||
mode turned off)</emphasis></para>
|
mode turned off)</emphasis></para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
|
|
|
@ -63,7 +63,7 @@
|
||||||
|
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>PHP (>= 5.4.0)</para>
|
<para>PHP (>= 5.6.0)</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
|
@ -85,7 +85,7 @@
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>Internet Explorer 9<emphasis role="bold"> (compatibility mode
|
<para>Internet Explorer 11<emphasis role="bold"> (compatibility mode
|
||||||
turned off)</emphasis></para>
|
turned off)</emphasis></para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
|
|
|
@ -460,10 +460,6 @@ function get_preg($argument, $regexp) {
|
||||||
$language = $_SESSION['language'];
|
$language = $_SESSION['language'];
|
||||||
$language2 = explode ('.', $language);
|
$language2 = explode ('.', $language);
|
||||||
setlocale(LC_ALL, $language2[0]);
|
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
|
// First we check "positive" cases
|
||||||
$pregexpr = '';
|
$pregexpr = '';
|
||||||
switch ($regexp) {
|
switch ($regexp) {
|
||||||
|
@ -592,10 +588,6 @@ function get_preg($argument, $regexp) {
|
||||||
if (preg_match($pregexpr, $argument)) {
|
if (preg_match($pregexpr, $argument)) {
|
||||||
/* Bug in php preg_match doesn't work correct with utf8 */
|
/* Bug in php preg_match doesn't work correct with utf8 */
|
||||||
setlocale(LC_ALL, $language);
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
// Now we check "negative" cases, characters which are not allowed
|
// Now we check "negative" cases, characters which are not allowed
|
||||||
|
@ -615,18 +607,10 @@ function get_preg($argument, $regexp) {
|
||||||
if (!preg_match($pregexpr, $argument)) {
|
if (!preg_match($pregexpr, $argument)) {
|
||||||
/* Bug in php preg_match doesn't work correct with utf8 */
|
/* Bug in php preg_match doesn't work correct with utf8 */
|
||||||
setlocale(LC_ALL, $language);
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
/* Bug in php preg_match doesn't work correct with utf8 */
|
/* Bug in php preg_match doesn't work correct with utf8 */
|
||||||
setlocale(LC_ALL, $language);
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -36,8 +36,8 @@ include_once("../lib/status.inc");
|
||||||
/** config */
|
/** config */
|
||||||
include_once("../lib/config.inc");
|
include_once("../lib/config.inc");
|
||||||
|
|
||||||
// check if PHP >= 5.4.0
|
// check if PHP >= 5.6.0
|
||||||
if (version_compare(phpversion(), '5.4.0') < 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 "<!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 "<html>\n<head>\n";
|
||||||
echo "<meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\">\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 "<link rel=\"icon\" href=\"../graphics/logo136.png\">\n";
|
||||||
echo "<title>LDAP Account Manager</title>\n";
|
echo "<title>LDAP Account Manager</title>\n";
|
||||||
echo "</head><body>\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 "<br><br>";
|
||||||
echo "</body></html>";
|
echo "</body></html>";
|
||||||
exit();
|
exit();
|
||||||
|
|
|
@ -73,10 +73,6 @@ function setlanguage() {
|
||||||
}
|
}
|
||||||
putenv("LANG=" . $code); // e.g. LANG=de_DE
|
putenv("LANG=" . $code); // e.g. LANG=de_DE
|
||||||
setlocale(LC_ALL, $code); // set LC_ALL
|
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
|
$locdir = substr(__FILE__, 0, strlen(__FILE__) - 15) . "/locale"; // set path to translations
|
||||||
bindtextdomain("messages", $locdir);
|
bindtextdomain("messages", $locdir);
|
||||||
bind_textdomain_codeset("messages", $encoding);
|
bind_textdomain_codeset("messages", $encoding);
|
||||||
|
|
|
@ -186,10 +186,8 @@ class posixAccount extends baseModule implements passwordService {
|
||||||
$loginShellsHelp = new htmlHelpLink('loginShells', get_class($this));
|
$loginShellsHelp = new htmlHelpLink('loginShells', get_class($this));
|
||||||
$loginShellsHelp->alignment = htmlElement::ALIGN_TOP;
|
$loginShellsHelp->alignment = htmlElement::ALIGN_TOP;
|
||||||
$selfServiceContainer->addElement($loginShellsHelp, true);
|
$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 htmlTableExtendedInputCheckbox('posixAccount_useOldPwd', false, _('Password change with old password')));
|
$selfServiceContainer->addElement(new htmlHelpLink('useOldPwd', get_class($this)), true);
|
||||||
$selfServiceContainer->addElement(new htmlHelpLink('useOldPwd', get_class($this)), true);
|
|
||||||
}
|
|
||||||
$return['selfServiceSettings'] = $selfServiceContainer;
|
$return['selfServiceSettings'] = $selfServiceContainer;
|
||||||
}
|
}
|
||||||
// profile checks
|
// profile checks
|
||||||
|
|
Loading…
Reference in New Issue