Add a brand new charming installation (for version 0.9) (#144)

* Add a brand new charming installation

* Fix alert position in setup requirements validation

* Add some missing definitions

* A distinction between bootstrap CSS classes and myaac classes

For CSS-styled messages

* Remove unused functions for messages

Co-authored-by: slawkens <slawkens@gmail.com>
This commit is contained in:
Fernando Matos
2020-12-22 03:47:47 -03:00
committed by GitHub
parent 3beedc1747
commit 6f42a60e59
19 changed files with 195 additions and 470 deletions

View File

@@ -26,11 +26,11 @@ $extensions_optional = [
function version_check($name, $ok, $info = '', $warning = false)
{
global $failed;
echo '<p class="' . ($ok ? 'success' : ($warning ? 'warning' : 'error')) . '">' . $name;
echo '<div class="alert alert-' . ($ok ? 'success' : ($warning ? 'warning' : 'danger')) . '">' . $name;
if(!empty($info))
echo ': <b>' . $info . '</b>';
echo '</p>';
echo '</div>';
if(!$ok && !$warning)
$failed = true;
}
@@ -67,11 +67,14 @@ foreach ($extensions_optional as $ext => $errorMsg) {
version_check(str_replace('$EXTENSION$', strtoupper($ext), $locale['step_requirements_extension']) , $loaded, $loaded ? $locale['loaded'] : $locale['not_loaded'] . '. ' . $errorMsg, true);
}
if($failed)
{
echo '<br/><b>' . $locale['step_requirements_failed'];
echo '<div class="text-center m-3">';
if($failed) {
echo '<div class="alert alert-warning"><span>' . $locale['step_requirements_failed'] . '</span></div>';
echo next_form(true, false);
}
else
}else {
echo next_form(true, true);
}
echo '</div>';
?>