* The interactive user interfaces in modified source and object code versions
 * of this program must display Appropriate Legal Notices, as required under
 * Section 5 of the GNU Affero General Public License version 3.
 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
 * these Appropriate Legal Notices must retain the display of the "Powered by
 * RUDRA SOFTECH" logo. If the display of the logo is not reasonably feasible for
 * technical reasons, the Appropriate Legal Notices must display the words
 * "Powered by RUDRA SOFTECH".
 *****************************************************************************************/
/**
 * Requirement checker for edusec and yii2 application script.
 */
$chekerPath = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'components';
$chkDbFile = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'db.php';
require_once $chekerPath . DIRECTORY_SEPARATOR . 'EdusecRequirementChecker.php';
$requirementsChecker = new EdusecRequirementChecker();
$resultsData = $requirementsChecker->getResult();
$summary = $resultsData['summary'];
$requiredData = $resultsData['requirements'];
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8"/>
    <title>EduSec Application Requirement Checker</title>
    <link rel="shortcut icon" href="images/rudrasoftech_favicon.png" type="image/x-icon" />
    <link rel="stylesheet" type="text/css" href="vendor/bower/bootstrap/dist/css/bootstrap.min.css">
</head>
<body>
<div class="container">
Example #2
0
 * Section 5 of the GNU Affero General Public License version 3.
 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
 * these Appropriate Legal Notices must retain the display of the "Powered by
 * RUDRA SOFTECH" logo. If the display of the logo is not reasonably feasible for
 * technical reasons, the Appropriate Legal Notices must display the words
 * "Powered by RUDRA SOFTECH".
 *****************************************************************************************/
/**
 * Edusec installation application script.
 */
if (file_exists(__DIR__ . '/config/db.php')) {
    header('Location: index.php');
    die;
}
$chekerPath = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'components';
require_once $chekerPath . DIRECTORY_SEPARATOR . 'EdusecRequirementChecker.php';
$requirementsChecker = new EdusecRequirementChecker();
$resultsData = $requirementsChecker->getResult();
$summary = $resultsData['summary'];
if ($summary['errors'] > 0) {
    header('Location: edusec-requirements.php');
    die;
}
defined('YII_DEBUG') or define('YII_DEBUG', true);
require __DIR__ . '/vendor/autoload.php';
require __DIR__ . '/vendor/yiisoft/yii2/Yii.php';
$config = (require __DIR__ . '/config/install-config.php');
(new yii\web\Application($config))->run();
?>