summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e213a0a)
raw | patch | inline | side by side (parent: e213a0a)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 27 Apr 2007 13:31:20 +0000 (13:31 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 27 Apr 2007 13:31:20 +0000 (13:31 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6210 594d385d-05f5-0310-b6e9-bd551577e9d8
setup/class_setupStep_Checks.inc | patch | blob | history | |
setup/setup_checks.tpl | patch | blob | history |
index 2da89f35102dec5a80e13bcf86f14ea182cc46cd..167fecdc8fb169895387e7de09853266a7e45723 100644 (file)
$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 = <b>"._("Off")."</b>";
+ $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 559bda8f6a8094a42325d99a2a1e640002dbaf25..c636c1ae851be3885c19239e7b607403706b1589 100644 (file)
--- a/setup/setup_checks.tpl
+++ b/setup/setup_checks.tpl
<!-- Set content styles -->
<div class='default' style='margin:10px;'>
- <a href='?info' target='_blank'>{t}Show PHP information{/t}</a>
-
<!-- Beginning PHP module check output -->
<h2 class='step2_container_title'>{t}PHP module and extension checks{/t}</h2>
{foreach from=$basic item=val key=key}
<div class='default' style='margin:10px;'>
<!-- Beginning PHP config check output -->
- <h2 class='step2_container_title'>{t}PHP setup configuration{/t}</h2>
+ <h2 class='step2_container_title'>{t}PHP setup configuration{/t} (<a style='text-decoration:underline' href='?info' target='_blank'>{t}show information{/t})</a></h2>
{foreach from=$config item=val key=key}
{/foreach}
-<!--
- Beginning PHP config check output
--->
- <h2 class='step2_container_title'>{t}Configuration file writeable{/t}</h2>
-
- {foreach from=$is_writeable item=val key=key}
-
- <!-- Entry {$key} -->
- {if $is_writeable[$key].SOLUTION != "" && !$is_writeable[$key].RESULT}
-
- <!-- Add ability to display info popup -->
- <div class='step2_entry_container_info'
- onMouseOver="javascript: display_solution('sol_is_writeable{$key}');"
- onMouseOut="javascript: hide_solution('sol_is_writeable{$key}');" >
- {else}
-
- <!-- Normal entry everything is fine -->
- <div class='step2_entry_container'>
- {/if}
-
-
- <div class='step2_entry_name'>{$is_writeable[$key].NAME}</div>
- <div class='step2_entry_status'>
- {if $is_writeable[$key].RESULT}
- <div class='step2_successful'>{t}Ok{/t}</div>
- {else}
-
- {if $is_writeable[$key].MUST}
- <div class='step2_failed'>{t}Error{/t}</div>
- {else}
- <div class='step2_warning'>{t}Warning{/t}</div>
- {/if}
-
- {if $is_writeable[$key].SOLUTION != ""}
-
- <!-- Inforamtion popup -->
- <div class='solution_visible' id='sol_is_writeable{$key}'>
- {if $is_writeable[$key].MUST}
- <div class='step2_failed_text' style="background-image: url('images/small_error.png')">
- {$is_writeable[$key].SOLUTION}
- <b>{t}GOsa will NOT run without fixing this.{/t}</b>
- {else}
- <div class='step2_warning_text' style="background-image: url('images/small_warning.png')">
- {$is_writeable[$key].SOLUTION}
- <b>{t}GOsa will run without fixing this.{/t}</b>
- {/if}
- </div>
- </div>
- {/if}
- {/if}
- </div>
- </div>
- {/foreach}
</div>
</div>
<div style="clear:both"></div>
+