3 /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
10 * Copyright © 2013-2023 The Galette Team
12 * This file is part of Galette (http://galette.tuxfamily.org).
14 * Galette is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation, either version 3 of the License, or
17 * (at your option) any later version.
19 * Galette is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with Galette. If not, see <http://www.gnu.org/licenses/>.
30 * @author Johan Cwiklinski <johan@x-tnd.be>
31 * @copyright 2013-2023 The Galette Team
32 * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version
33 * @link http://galette.tuxfamily.org
34 * @since Available since 0.7.4dev - 2013-02-03
37 define('GALETTE_ROOT', __DIR__
. '/../');
38 require_once GALETTE_ROOT
. 'config/versions.inc.php';
39 require_once GALETTE_ROOT
. 'config/paths.inc.php';
41 $phpok = !version_compare(PHP_VERSION
, GALETTE_PHP_MIN
, '<');
42 $php_message = PHP_VERSION
;
44 $php_message .= sprintf(' (%s minimum required)', GALETTE_PHP_MIN
);
46 require_once GALETTE_ROOT
. '/vendor/autoload.php';
47 $cm = new Galette\Core\
CheckModules(false);
48 $cm->doCheck(false); //do not load with translations!
53 <title
>Galette compatibility tests
</title
>
54 <link rel
="stylesheet" type
="text/css" href
="./assets/css/galette-main.bundle.min.css" />
55 <link rel
="stylesheet" type
="text/css" href
="./themes/default/ui/semantic.min.css" />
56 <link rel
="shortcut icon" href
="./themes/default/images/favicon.png" />
58 <body
class="pushable">
60 <div id
="main" class="ui container">
61 <div
class="ui basic segment">
62 <div
class="ui basic center aligned fitted segment">
63 <img
class="icon" alt
="[ Galette ]" src
="./themes/default/images/galette.png"/>
65 <h1
class="ui block center aligned header">Compatibility tests
</h1
>
66 <div
class="ui segment">
67 <div id
="main" class="text ui container">
73 echo '<p class="ui red center aligned message">Something is wrong :(</p>';
75 echo '<p class="ui green center aligned message">Everything is OK :)</p>';
80 <span
>PHP
<strong
class="<?php echo ($phpok) ? 'Ok' : 'Missing'; ?>"><?php
echo $php_message; ?
></strong
></span
>
81 <span
><i
class="ui <?php echo ($phpok) ? 'green check' : 'red times'; ?> icon"></i
></span
>
85 echo $cm->toHtml(false);
90 if ($phpok && isset($cm) && $cm->isValid()) {
91 echo '<p class="ui center aligned message">You can now <a href="./installer.php">install Galette</a></p>';