summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b81f51c)
raw | patch | inline | side by side (parent: b81f51c)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 27 Apr 2007 13:07:11 +0000 (13:07 +0000) | ||
committer | cajus <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 | patch | blob | history | |
include/functions.inc | patch | blob | history |
diff --git a/html/index.php b/html/index.php
index 91ebe02ffc66d899fb2db20a49bed4d20070071f..38c847ba9cb5f2d444674c30645c87f016d13e2b 100644 (file)
--- a/html/index.php
+++ b/html/index.php
$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 4acc2419e139f5e12f46570541bdad03092454fd..835d6636ea1847c7f49b7d5688bd294a86e86069 100644 (file)
--- a/include/functions.inc
+++ b/include/functions.inc
function is_php4()
{
+ if (isset($_SESSION['PHP4COMPATIBLE'])){
+ return true;
+ }
return (preg_match('/^4/', phpversion()));
}