From: cajus Date: Fri, 27 Apr 2007 13:07:11 +0000 (+0000) Subject: Ported compatiblity check to trunk X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7c609320bfece1e82ed61360159e5b744b1feadb;p=gosa.git Ported compatiblity check to trunk git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6208 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/html/index.php b/html/index.php index 91ebe02ff..38c847ba9 100644 --- a/html/index.php +++ b/html/index.php @@ -275,6 +275,11 @@ if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['login'])){ $config->make_idepartments(); $_SESSION['config']= $config; + /* Take care about zend.ze1_compatiblity_mode */ + if (ini_get("zend.ze1_compatibility_mode") != 0){ + $_SESSION['PHP4COMPATIBLE']= TRUE; + } + /* are we using accountexpiration */ if((isset($config->data['MAIN']['ACCOUNT_EXPIRATION'])) && preg_match('/true/i', $config->data['MAIN']['ACCOUNT_EXPIRATION'])){ diff --git a/include/functions.inc b/include/functions.inc index 4acc2419e..835d6636e 100644 --- a/include/functions.inc +++ b/include/functions.inc @@ -2129,6 +2129,9 @@ function gosa_ldap_explode_dn($dn,$config = NULL,$verify_in_ldap=false) function is_php4() { + if (isset($_SESSION['PHP4COMPATIBLE'])){ + return true; + } return (preg_match('/^4/', phpversion())); }