From 368c784490a264eb2625fd6abd26d6168f83e24c Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 27 Apr 2007 13:31:20 +0000 Subject: [PATCH] Added zend version compatibility warning git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6210 594d385d-05f5-0310-b6e9-bd551577e9d8 --- setup/class_setupStep_Checks.inc | 10 ++++++ setup/setup_checks.tpl | 58 ++------------------------------ 2 files changed, 12 insertions(+), 56 deletions(-) diff --git a/setup/class_setupStep_Checks.inc b/setup/class_setupStep_Checks.inc index 2da89f351..167fecdc8 100644 --- a/setup/class_setupStep_Checks.inc +++ b/setup/class_setupStep_Checks.inc @@ -246,6 +246,16 @@ class Step_Checks extends setup_step $M = TRUE; $this->config_checks[] = array("NAME" => $N , "DESC" => $D , "RESULT" => $R , "SOLUTION" => $S , "MUST" => $M ); + /* Emulating old stuff? */ + if (!preg_match('/^4/', phpversion())){ + $N = "zend.ze1_compatibility_mode = "._("Off").""; + $D = _("Increase your server performance by setting magic_quotes_gpc to 'off'."); + $S = _("Search for 'zend.ze1_compatibility_mode' in your php.ini and set it to 'Off'."); + $R = !ini_get('zend.ze1_compatibility_mode'); + $M = FALSE; + $this->config_checks[] = array("NAME" => $N , "DESC" => $D , "RESULT" => $R , "SOLUTION" => $S , "MUST" => $M ); + } + /* Configuration file */ diff --git a/setup/setup_checks.tpl b/setup/setup_checks.tpl index 559bda8f6..c636c1ae8 100644 --- a/setup/setup_checks.tpl +++ b/setup/setup_checks.tpl @@ -5,8 +5,6 @@
- {t}Show PHP information{/t} -

{t}PHP module and extension checks{/t}

{foreach from=$basic item=val key=key} @@ -68,7 +66,7 @@
-

{t}PHP setup configuration{/t}

+

{t}PHP setup configuration{/t} ({t}show information{/t})

{foreach from=$config item=val key=key} @@ -120,60 +118,8 @@ {/foreach} - -

{t}Configuration file writeable{/t}

- - {foreach from=$is_writeable item=val key=key} - - - {if $is_writeable[$key].SOLUTION != "" && !$is_writeable[$key].RESULT} - - -
- {else} - - -
- {/if} - - -
{$is_writeable[$key].NAME}
-
- {if $is_writeable[$key].RESULT} -
{t}Ok{/t}
- {else} - - {if $is_writeable[$key].MUST} -
{t}Error{/t}
- {else} -
{t}Warning{/t}
- {/if} - - {if $is_writeable[$key].SOLUTION != ""} - - -
- {if $is_writeable[$key].MUST} -
- {$is_writeable[$key].SOLUTION} - {t}GOsa will NOT run without fixing this.{/t} - {else} -
- {$is_writeable[$key].SOLUTION} - {t}GOsa will run without fixing this.{/t} - {/if} -
-
- {/if} - {/if} -
-
- {/foreach}
+ -- 2.30.2