Code

Ported compatiblity check to trunk
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 27 Apr 2007 13:07:11 +0000 (13:07 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 27 Apr 2007 13:07:11 +0000 (13:07 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6208 594d385d-05f5-0310-b6e9-bd551577e9d8

html/index.php
include/functions.inc

index 91ebe02ffc66d899fb2db20a49bed4d20070071f..38c847ba9cb5f2d444674c30645c87f016d13e2b 100644 (file)
@@ -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'])){
index 4acc2419e139f5e12f46570541bdad03092454fd..835d6636ea1847c7f49b7d5688bd294a86e86069 100644 (file)
@@ -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()));
 }