<commit_before><?php
 
define('APP_DIR', 'app');
define('DS', DIRECTORY_SEPARATOR);
define('ROOT', dirname(__FILE__));
define('WEBROOT_DIR', 'webroot');
define('WWW_ROOT', ROOT . DS . APP_DIR . DS . WEBROOT_DIR . DS);

class Alert {
    public function danger($message) {
        return '<div class="ui negative message"><p>'.$message.'</p></div>';
    }

    public function success($message) {
        return '<div class="ui success message"><p>'.$message.'</p></div>';
    }
}
$alert = new Alert();

?>
<html>
<head>
    <meta charset="UTF-8">
    <title>Installation de ExtazCMS 1.14</title>
    <!-- Style -->
    <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.1.4/semantic.min.css">
    <script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
    <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.1.4/semantic.min.js"></script>
    <style type="text/css">
        body {
            background-color: #FFFFFF;
        }
        .ui.menu .item img.logo {
            margin-right: 1.5em;
        }
        .main.container {
            margin-top: 7em;
        }
        .wireframe {
            margin-top: 2em;
        }
        .ui.footer.segment {
            margin: 5em 0em 0em;
            padding: 5em 0em;
        }
        #bg {
            position: fixed;
            top: 0;
            left: 0;
            z-index: -1;

            /* Preserve ratio */
            min-width: 100%;
            min-height: 100%;
        }
    </style>
</head>
<body>
<img src="background.jpg" id="bg" alt="">
<div class="ui fixed inverted menu">
    <div class="ui container">
        <div href="#" class="header item">
            ExtazCMS 1.14
        </div>
    </div>
</div>

<div class="ui main text container" style="background-color: white;padding:25px;border-radius:5px;">
    <h1 class="ui header" style="text-align:center;">ExtazCMS &raquo; Installation</h1>
    <?php $error = false; ?>
    <table class="ui celled table">
        <thead>
            <tr>
                <th>Config</th>
                <th>Statut</th>
            </tr>
        </thead>
            <tbody>
            <tr>
                <td>Fichier app/Config en CHMOD 755</td>
                <?php
					$permConfig = substr(sprintf('%o', fileperms("../app/Config") ), -3);
                    if( $permConfig == "755" ) {
                        echo "<td class='positive'>Approuvé</td>";
                    } else {
                        echo "<td class='negative'>Désapprouvé (CHMOD ".$permConfig.")</td>";
                        $error = true;
                    }
                ?>
            </tr>
            <tr>
                <td>Fichier app/tmp en CHMOD 755</td>
                <?php
				$permTmp = substr(sprintf('%o', fileperms("../app/tmp") ), -3);
                    if( $permTmp == "755") {
                        echo "<td class='positive'>Approuvé</td>";
                    } else {
                        echo "<td class='negative'>Désapprouvé (CHMOD ".$permTmp.")</td>";
                        $error = true;
                    }
                ?>
            </tr>
            <tr>
                <td>Version PHP > 5.5.0</td>
                <?php
                    if(version_compare(PHP_VERSION, "5.5.0", ">")) {
                        echo "<td class='positive'>Approuvé</td>";
                    } else {
                        echo "<td class='negative'>Désapprouvé (PHP ".PHP_VERSION.")</td>";
                        $error = true;
                    }
                ?>

            </tr>
            <tr>
                <td>MySQL PDO</td>
                <?php
                    if(extension_loaded("PDO")) {
                        echo "<td class='positive'>Approuvé</td>";<commit_msg>Small correction on PHP version checking<commit_after><?php
 
define('APP_DIR', 'app');
define('DS', DIRECTORY_SEPARATOR);
define('ROOT', dirname(__FILE__));
define('WEBROOT_DIR', 'webroot');
define('WWW_ROOT', ROOT . DS . APP_DIR . DS . WEBROOT_DIR . DS);

class Alert {
    public function danger($message) {
        return '<div class="ui negative message"><p>'.$message.'</p></div>';
    }

    public function success($message) {
        return '<div class="ui success message"><p>'.$message.'</p></div>';
    }
}
$alert = new Alert();

?>
<html>
<head>
    <meta charset="UTF-8">
    <title>Installation de ExtazCMS 1.14</title>
    <!-- Style -->
    <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.1.4/semantic.min.css">
    <script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
    <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.1.4/semantic.min.js"></script>
    <style type="text/css">
        body {
            background-color: #FFFFFF;
        }
        .ui.menu .item img.logo {
            margin-right: 1.5em;
        }
        .main.container {
            margin-top: 7em;
        }
        .wireframe {
            margin-top: 2em;
        }
        .ui.footer.segment {
            margin: 5em 0em 0em;
            padding: 5em 0em;
        }
        #bg {
            position: fixed;
            top: 0;
            left: 0;
            z-index: -1;

            /* Preserve ratio */
            min-width: 100%;
            min-height: 100%;
        }
    </style>
</head>
<body>
<img src="background.jpg" id="bg" alt="">
<div class="ui fixed inverted menu">
    <div class="ui container">
        <div href="#" class="header item">
            ExtazCMS 1.14
        </div>
    </div>
</div>

<div class="ui main text container" style="background-color: white;padding:25px;border-radius:5px;">
    <h1 class="ui header" style="text-align:center;">ExtazCMS &raquo; Installation</h1>
    <?php $error = false; ?>
    <table class="ui celled table">
        <thead>
            <tr>
                <th>Config</th>
                <th>Statut</th>
            </tr>
        </thead>
            <tbody>
            <tr>
                <td>Fichier app/Config en CHMOD 755</td>
                <?php
					$permConfig = substr(sprintf('%o', fileperms("../app/Config") ), -3);
                    if( $permConfig == "755" ) {
                        echo "<td class='positive'>Approuvé</td>";
                    } else {
                        echo "<td class='negative'>Désapprouvé (CHMOD ".$permConfig.")</td>";
                        $error = true;
                    }
                ?>
            </tr>
            <tr>
                <td>Fichier app/tmp en CHMOD 755</td>
                <?php
				$permTmp = substr(sprintf('%o', fileperms("../app/tmp") ), -3);
                    if( $permTmp == "755") {
                        echo "<td class='positive'>Approuvé</td>";
                    } else {
                        echo "<td class='negative'>Désapprouvé (CHMOD ".$permTmp.")</td>";
                        $error = true;
                    }
                ?>
            </tr>
            <tr>
                <td>Version PHP > 5.5.0 ET < 7.0.0 </td>
                <?php
                    if(version_compare(PHP_VERSION, "5.5.0", ">") && version_compare(PHP_VERSION, "7.0.0", "<")) {
                        echo "<td class='positive'>Approuvé</td>";
                    } else {
                        echo "<td class='negative'>Désapprouvé (PHP ".PHP_VERSION.")</td>";
                        $error = true;
                    }
                ?>

            </tr>
            <tr>
                <td>MySQL PDO</td>
                <?php
                    if(extension_loaded("PDO")) {
                        echo "<td class='positive'>Approuvé</td>";
{'fraction_non_alphanumeric': 0.16761184625078765, 'fraction_numerical': 0.01638311279143037, 'mean_word_length': 1.4615384615384615, 'pattern_counts': {'":': 0, '<': 163, '<?xml version=': 0, '>': 163, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '184709', 'n_tokens_mistral': 2581, 'n_tokens_neox': 2388, 'n_words': 461}