portal.mkgtu.ru/backend/views/settings/requirements.php

26 lines
890 B
PHP
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
use yii\bootstrap4\Alert;
$this->title = 'Необходимые расширения PHP';
$system_requirements_dir = Yii::getAlias('@frontend')
. DIRECTORY_SEPARATOR . 'web' . DIRECTORY_SEPARATOR . 'install' . DIRECTORY_SEPARATOR . 'src'
. DIRECTORY_SEPARATOR . 'steps' . DIRECTORY_SEPARATOR . 'system_requirements';
$checker_dir = $system_requirements_dir . DIRECTORY_SEPARATOR . 'requirements';
if (!is_dir($checker_dir)) {
echo Alert::widget([
'body' => 'Не найден скрипт проверки системных требований.',
'options' => ['class' => 'alert-danger']
]);
} else {
require_once($system_requirements_dir . DIRECTORY_SEPARATOR . 'customs_requirements.php');
$phppath = 'php';
$requirementsChecker = getRequirementChecker($checker_dir, $phppath);
$requirementsChecker->render();
}
?>