".self::$locale['setup_1106']."\n";
$content .= "
\n";
$content .= "\n";
$system_health = 10;
$system_requirements = Requirements::get_system_requirements();
foreach ($system_requirements as $test) {
$class = '';
if (isset($test['severability'])) {
$system_health = $system_health - intval($test['severability']);
if ($test['severability'] > 5) {
$class = "alert";
} else {
$class = "warning";
}
}
$content .= "\n";
$content .= "\n".$test['title']." | \n";
$content .= "\n";
$content .= (isset($test['value']) ? $test['value'].' ' : '').(isset($test['description']) ? $test['description'] : '');
if (isset($test['sub'])) {
$warned_content = '';
$show_sub = FALSE;
foreach ($test['sub'] as $key => $value) {
if (isset($value['severability'])) {
$show_sub = TRUE;
$warned_content .= " |
$key | $value |
\n";
}
}
if ($show_sub === TRUE) {
$content .= "\n";
$content .= "
".self::$locale['setup_1090']." | ".self::$locale['setup_1091']." |
";
$content .= $warned_content;
$content .= "
";
$content .= "
";
}
}
$content .= "\n";
$content .= "\n";
}
$content .= "
\n
";
// can proceed
if ($system_health > 6) {
self::$step = [
1 => [
'name' => 'step',
'label' => self::$locale['setup_0121'],
'value' => self::STEP_DB_SETTINGS_FORM
]
];
} else {
self::$step = [
1 => [
'name' => 'step',
'type' => 'tryagain',
'label' => self::$locale['setup_0122'],
'value' => self::STEP_DB_SETTINGS_FORM
]
];
$content .= form_hidden('license', '', '1');
}
return $content;
}
}