From 7c609320bfece1e82ed61360159e5b744b1feadb Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 27 Apr 2007 13:07:11 +0000 Subject: [PATCH] Ported compatiblity check to trunk git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6208 594d385d-05f5-0310-b6e9-bd551577e9d8 --- html/index.php | 5 +++++ include/functions.inc | 3 +++ 2 files changed, 8 insertions(+) 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())); } -- 2.30.2