Index: branches/5.0.x/core/install/step_templates/security.tpl
===================================================================
diff -u -r12204 -r12277
--- branches/5.0.x/core/install/step_templates/security.tpl (.../security.tpl) (revision 12204)
+++ branches/5.0.x/core/install/step_templates/security.tpl (.../security.tpl) (revision 12277)
@@ -74,5 +74,27 @@
';
}
+ $output .= sprintf($heading_tpl, 'Webserver PHP Configuration', 'text');
+
+ $directive_check = true;
+ $ini_vars = Array ('register_globals' => false, 'open_basedir' => true, 'allow_url_fopen' => false);
+ foreach ($ini_vars as $var_name => $var_value) {
+ $current_value = ini_get($var_name);
+
+ if (($var_value && !$current_value) || (!$var_value && $current_value)) {
+ $directive_check = false;
+ $status_text = 'Vulnerable';
+ }
+ else {
+ $status_text = 'Secure';
+ }
+
+ $output .= sprintf($error_tpl, 'Directive: ' . $var_name . '', $status_text);
+ }
+
+ /*if (!$directive_check) {
+ // show additional warning about directives
+ }*/
+
echo $output;
?>
\ No newline at end of file