<?php

require_once dirname(__FILE__) . '/../src/libs/Xiidea/Installer/Services/CixRequirements.php';
$cixRequirements = new CixRequirements();
$iniPath = $cixRequirements->getPhpIniConfigPath();
echo "********************************\n";
echo "*                              *\n";
echo "*    CIX requirements check    *\n";
echo "*                              *\n";
echo "********************************\n\n";
echo $iniPath ? sprintf("* Configuration file used by PHP: %s\n\n", $iniPath) : "* WARNING: No configuration file (php.ini) used by PHP!\n\n";
echo "** ATTENTION **\n";
echo "*  The PHP CLI can use a different php.ini file\n";
echo "*  than the one used with your web server.\n";
if ('\\' == DIRECTORY_SEPARATOR) {
    echo "*  (especially on the Windows platform)\n";
}
echo "*  To be on the safe side, please also launch the requirements check\n";
echo "*  from your web server using the web/check.php script.\n";
echo_title('Mandatory requirements');
$checkPassed = true;
foreach ($cixRequirements->getRequirements() as $req) {
    /** @var $req Requirement */
    echo_requirement($req);
    if (!$req->isFulfilled()) {
        $checkPassed = false;
    }
}
echo_title('Optional recommendations');
foreach ($cixRequirements->getRecommendations() as $req) {
    echo_requirement($req);
<?php

if (!isset($_SERVER['HTTP_HOST'])) {
    exit('This script cannot be run from the CLI. Run it from a browser.');
}
if (!in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1'))) {
    header('HTTP/1.0 403 Forbidden');
    exit('This script is only accessible from localhost.');
}
require_once dirname(__FILE__) . '/../src/libs/Xiidea/Installer/Services/CixRequirements.php';
$cixRequirements = new CixRequirements();
$majorProblems = $cixRequirements->getFailedRequirements();
$minorProblems = $cixRequirements->getFailedRecommendations();
?>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="robots" content="noindex,nofollow" />
        <title>CIX Installation Checker</title>
        <link rel="stylesheet" href="assets/css/mini.php?files=structure,body,install.css" media="all" />
    </head>
    <body>
        <div id="content">
            <div class="header clear-fix">
                <div class="header-logo">
                    <img src="assets/images/cix_logo.png" alt="CIX" /><span>Puts your development on fast track</span>
                </div>
            </div>

            <div class="sf-reset">