Skip to content
Snippets Groups Projects
prerequisites_view.php 13.3 KiB
Newer Older
  • Learn to ignore specific revisions
  • Giovannoni Laurent's avatar
    Giovannoni Laurent committed
    <?php
    /*
    *   Copyright 2008-2012 Maarch
    *
    *   This file is part of Maarch Framework.
    *
    *   Maarch Framework is free software: you can redistribute it and/or modify
    *   it under the terms of the GNU General Public License as published by
    *   the Free Software Foundation, either version 3 of the License, or
    *   (at your option) any later version.
    *
    *   Maarch Framework is distributed in the hope that it will be useful,
    *   but WITHOUT ANY WARRANTY; without even the implied warranty of
    *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    *   GNU General Public License for more details.
    *
    *   You should have received a copy of the GNU General Public License
    *   along with Maarch Framework. If not, see <http://www.gnu.org/licenses/>.
    */
    
    /**
    * @brief class of install tools
    *
    * @file
    * @author Arnaud Veber
    * @date $date$
    * @version $Revision$
    * @ingroup install
    */
    ?>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
    <div class="blockWrapper">
        <div class="titleBlock">
            <h2 onClick="slide('prerequisites');" style="cursor: pointer;">
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                <?php echo _PREREQUISITES;?>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
            </h2>
        </div>
        <div class="contentBlock" id="prerequisites">
            <p>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                <h6>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                    <div id="titleLink"><?php echo _PREREQUISITES_EXP;?></div>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                    <br/>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                    <img src="img/green_light.png" width="10px"/><?php echo _ACTIVATED;?>
                    <img src="img/orange_light.png"  width="10px"/><?php echo _OPTIONNAL;?>
                    <img src="img/red_light.png"  width="10px"/><?php echo _NOT_ACTIVATED;?>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
    
                </h6>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                <table>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                    <tr>
    
    SNA's avatar
    SNA committed
                        <td colspan="2">
                            <h2>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                               <?php echo _GENERAL;?>
    
    SNA's avatar
    SNA committed
                            </h2>
                        </td>
                    </tr>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                    <tr>
                        <td class="voyantPrerequisites">
                            <?php echo $Class_Install->checkPrerequisites(
                                $Class_Install->isPhpVersion()
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                            );?>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                        </td>
                        <td>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                            <?php echo _PHP_VERSION . ' -> ' . PHP_VERSION;?>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                        </td>
                    </tr>
    
                    <tr>
                        <td class="voyantPrerequisites">
                            <?php echo $Class_Install->checkPrerequisites(
                                $Class_Install->isMaarchPathWritable()
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                            );?>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                            <?php echo _MAARCH_PATH_RIGHTS;?>
    
    Henri Queneau's avatar
    Henri Queneau committed
                    </tr>
                     <tr>
    
                        <td id="maarchDependenciesLight" class="voyantPrerequisites">
    
    Henri Queneau's avatar
    Henri Queneau committed
                            <?php echo $Class_Install->checkPrerequisites(
                                $Class_Install->isDependenciesExist()
                            );?>
                        </td>
    
                        <td id="maarchDependenciesContent" name="maarchDependenciesContent">
                            <?php if($Class_Install->isDependenciesExist()){
                            echo _MAARCH_DEPENDENCIES;
                            } else {
                            echo _MAARCH_DEPENDENCIES . '<br />'
                                . '<a style=\'color: #800000; font-family:verdana;\' href="#" onclick="downloadMaarchDependencies()">'
                                . _DEPENDENCIES_CLICK_HERE_TO_DOWNLOAD . '</a><br />'
                                . '<a style=\'color: #102155; font-family:verdana;\' href=\'http://wiki.maarch.org/Maarch_Courrier/1.5/fr/Install/Debian-Ubuntu/latest#T.C3.A9l.C3.A9chargement_et_installation_de_Maarch_Courrier_depuis_les_d.C3.A9p.C3.B4ts_GIT\' target=\"_blank\"> ' . _DEPENDENCIES_ON_WIKI  . '</a>';
                            }
                            ?>
                            <div align="center">
                                <img src="img/wait.gif" width="100" class="wait" style="display: none; background-color: rgba(0, 0, 0, 0.2);"/>
                            </div>
    
    Henri Queneau's avatar
    Henri Queneau committed
                        </td>
    
                    </tr>
                    <tr>
                        <td>&nbsp;
    
                        </td>
                        <td>&nbsp;
    
                        </td>
                    </tr>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                    <tr>
                        <td colspan="2">
                            <h2>
                                Libraires
                            </h2>
                        </td>
                    </tr>
                    <tr>
                        <td class="voyantPrerequisites">
                            <?php echo $Class_Install->checkPrerequisites(
                                $Class_Install->isPhpRequirements(
                                    'pgsql'
                                )
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                            );?>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                        </td>
                        <td>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                            <?php echo _PGSQL;?>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                        </td>
                    </tr>
                    <tr>
                        <td class="voyantPrerequisites">
                            <?php echo $Class_Install->checkPrerequisites(
                                $Class_Install->isPhpRequirements(
                                    'gd'
                                )
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                            );?>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                        </td>
                        <td>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                            <?php echo _GD;?>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                        </td>
                    </tr>
    
                    <tr>
                        <td class="voyantPrerequisites">
                            <?php echo $Class_Install->checkPrerequisites(
                                $Class_Install->isPhpRequirements(
                                    'imap'
                                ),
                                true
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                            );?>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                            <?php echo _IMAP;?>
    
                    <tr>
                        <td class="voyantPrerequisites">
                            <?php echo $Class_Install->checkPrerequisites(
                                $Class_Install->isPhpRequirements(
                                    'mbstring'
                                )
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                            );?>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                            <?php echo _MBSTRING;?>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                    <tr>
                        <td class="voyantPrerequisites">
                            <?php echo $Class_Install->checkPrerequisites(
                                $Class_Install->isPhpRequirements(
                                    'xsl'
                                )
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                            );?>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                        </td>
                        <td>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                            <?php echo _XSL;?>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                        </td>
                    </tr>
    
                        <td class="voyantPrerequisites">
                            <?php echo $Class_Install->checkPrerequisites(
                                $Class_Install->isPhpRequirements(
                                    'gettext'
                                ), true
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                            );?>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                            <?php echo _GETTEXT;?>
    
                    <tr>
                        <td class="voyantPrerequisites">
                            <?php echo $Class_Install->checkPrerequisites(
                                $Class_Install->isPhpRequirements(
                                    'xmlrpc'
                                ), true
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                            );?>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                            <?php echo _XMLRPC;?>
    
                    <!--<tr>
    
                        <td class="voyantPrerequisites">
                            <?php echo $Class_Install->checkPrerequisites(
                                $Class_Install->isPhpRequirements(
                                    'imagick'
                                ), false
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                            );?>
    
                        </td>
                        <td>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                            <?php echo _IMAGICK;?>
    
                        </td>
    
                    </tr>-->
    
                    <?php if (DIRECTORY_SEPARATOR != '/') { ?>
                        <tr>
                            <td class="voyantPrerequisites">
                                <?php echo $Class_Install->checkPrerequisites(
                                    $Class_Install->isPhpRequirements(
                                        'fileinfo'
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                                );?>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                                <?php echo _FILEINFO;?>
    
                            </td>
                        </tr>
                    <?php } ?>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                    <tr>
                        <td>&nbsp;
                        </td>
                        <td>&nbsp;
    
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <h2>
                                PEAR
                            </h2>
                        </td>
                    </tr>
                    <tr>
                        <td class="voyantPrerequisites">
                            <?php echo $Class_Install->checkPrerequisites(
                                $Class_Install->isPearRequirements(
                                    'System.php'
                                )
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                            );?>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                        </td>
                        <td>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                            <?php echo _PEAR;?>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                        </td>
                    </tr>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                    <!--tr>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                        <td class="voyantPrerequisites">
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                            <?php 
                            // echo $Class_Install->checkPrerequisites(
                            //     $Class_Install->isPearRequirements(
                            //         'MIME/Type.php'
                            //     )
                            // );
                            ?>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                        </td>
                        <td>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                            <?php //echo _MIMETYPE;?>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                        </td>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                    </tr-->
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                    <tr>
                        <td class="voyantPrerequisites">
                            <?php echo $Class_Install->checkPrerequisites(
                                $Class_Install->isPearRequirements(
                                    'Maarch_CLITools/FileHandler.php'
                                ),
                                true
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                            );?>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                        </td>
                        <td>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                            <?php echo _CLITOOLS;?>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                        </td>
                    </tr>
    
                    <tr>
                        <td class="voyantPrerequisites">
                            <?php echo $Class_Install->checkPrerequisites(
                                $Class_Install->isPearRequirements(
                                    'SOAP/Disco.php'
                                ),
                                true
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                            );?>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                            <?php echo 'SOAP';?>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                    <tr>
                        <td>&nbsp;
    
                        </td>
                        <td>&nbsp;
    
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <h2>
                                php.ini
                            </h2>
                        </td>
                    </tr>
                    <tr>
                        <td class="voyantPrerequisites">
                            <?php echo $Class_Install->checkPrerequisites(
                                $Class_Install->isIniErrorRepportingRequirements()
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                                , true);?>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                        </td>
                        <td>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                            <?php echo _ERROR_REPORTING;?>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                        </td>
                    </tr>
                    <tr>
                        <td class="voyantPrerequisites">
                            <?php echo $Class_Install->checkPrerequisites(
                                $Class_Install->isIniDisplayErrorRequirements()
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                            );?>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                        </td>
                        <td>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                            <?php echo _DISPLAY_ERRORS;?>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                        </td>
                    </tr>
                    <tr>
                        <td class="voyantPrerequisites">
                            <?php echo $Class_Install->checkPrerequisites(
                                $Class_Install->isIniShortOpenTagRequirements()
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                            );?>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                        </td>
                        <td>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                            <?php echo _SHORT_OPEN_TAGS;?>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                        </td>
                    </tr>
                </table>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
            </p>
        </div>
    </div>
    <br />
    <div class="blockWrapper">
        <div class="contentBlock" id="prerequisites">
            <p>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                <div id="buttons">
                    <div style="float: left;" class="previousButton" id="previous">
                        <a href="#" onClick="goTo('index.php?step=licence');">
    
                            <?php echo _PREVIOUS_INSTALL;?>
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                        </a>
                    </div>
                    <div style="float: right;" class="nextButton" id="next">
                        <?php
                            if (!$canContinue) {
                                echo _MUST_FIX;
                            } else {
                                echo '<a href="#" onClick="goTo(\'index.php?step=database\');">'
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
                                .'</a>';
                            }
                        ?>
                    </div>
                </div>
                <br />
                <br />
            </p>
        </div>
    </div>