Overview
Comment: | Vérifions les dépendances dans la mise à jour aussi, au cas où |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | dev |
Files: | files | file ages | folders |
SHA1: |
50f325e4d71cf699bf7c34a85d3ea42c |
User & Date: | bohwaz on 2018-10-17 11:14:58 |
Other Links: | branch diff | manifest | tags |
Context
2018-10-17
| ||
17:07 | Utilisation de FallbackResource plutôt que RewriteRule ! check-in: 87d466f80e user: bohwaz tags: dev | |
11:14 | Vérifions les dépendances dans la mise à jour aussi, au cas où check-in: 50f325e4d7 user: bohwaz tags: dev | |
11:07 | Corriger problème lié à conversion de string vide en entier, signalé par @Cédric check-in: a6ebca415e user: bohwaz tags: dev | |
Changes
Modified src/VERSION from [ef09549b08] to [f8bcdfe8a5].
|
| | | 1 | 0.9.0-rc4 |
Modified src/include/lib/Garradin/DB.php from [7fa1101431] to [69073dd36f].
︙ | ︙ | |||
22 23 24 25 26 27 28 29 30 31 32 33 34 35 | private function __clone() { // Désactiver le clonage, car on ne veut qu'une seule instance } public function __construct($create = false) { $flags = \SQLITE3_OPEN_READWRITE; if ($create) { $flags |= \SQLITE3_OPEN_CREATE; } | > > > > > | 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | private function __clone() { // Désactiver le clonage, car on ne veut qu'une seule instance } public function __construct($create = false) { if (!defined('\SQLITE3_OPEN_READWRITE')) { throw new \Exception('Module SQLite3 de PHP non présent. Merci de l\'installer.'); } $flags = \SQLITE3_OPEN_READWRITE; if ($create) { $flags |= \SQLITE3_OPEN_CREATE; } |
︙ | ︙ |
Added src/include/test_required.php version [69fc54870f].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | <?php /* * Tests : vérification que les conditions pour s'exécuter sont remplies */ function test_requis($condition, $message) { if ($condition) { return true; } if (PHP_SAPI != 'cli') { header('Content-Type: text/html; charset=utf-8'); echo "<!DOCTYPE html>\n<html>\n<head>\n<title>Erreur</title>\n<meta charset=\"utf-8\" />\n"; echo '<style type="text/css">body { font-family: sans-serif; } '; echo '.error { color: darkred; padding: .5em; margin: 1em; border: 3px double red; background: yellow; }</style>'; echo "\n</head>\n<body>\n<h2>Erreur</h2>\n<h3>Le problème suivant empêche Garradin de fonctionner :</h3>\n"; echo '<p class="error">' . htmlspecialchars($message, ENT_QUOTES, 'UTF-8') . '</p>'; echo '<hr /><p>Pour plus d\'informations consulter '; echo '<a href="http://dev.kd2.org/garradin/Probl%C3%A8mes%20fr%C3%A9quents">l\'aide sur les problèmes à l\'installation</a>.</p>'; echo "\n</body>\n</html>"; } else { echo "[ERREUR] Le problème suivant empêche Garradin de fonctionner :\n"; echo $message . "\n"; echo "Pour plus d'informations consulter http://dev.kd2.org/garradin/Probl%C3%A8mes%20fr%C3%A9quents\n"; } exit; } test_requis( version_compare(phpversion(), '5.6', '>='), 'PHP 5.6 ou supérieur requis. PHP version ' . phpversion() . ' installée.' ); test_requis( defined('CRYPT_BLOWFISH') && CRYPT_BLOWFISH, 'L\'algorithme de hashage de mot de passe Blowfish n\'est pas présent (pas installé ou pas compilé).' ); test_requis( class_exists('SQLite3'), 'Le module de base de données SQLite3 n\'est pas disponible.' ); $v = \SQLite3::version(); test_requis( version_compare($v['versionString'], '3.7.4', '>='), 'SQLite3 version 3.7.4 ou supérieur requise. Version installée : ' . $v['versionString'] ); test_requis( file_exists(__DIR__ . '/lib/KD2'), 'Librairie KD2 non disponible.' ); |
Modified src/www/admin/install.php from [0d0c1e0547] to [29602daaba].
1 2 3 | <?php namespace Garradin; | < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < > | 1 2 3 4 5 6 7 8 9 10 11 12 13 | <?php namespace Garradin; const INSTALL_PROCESS = true; require_once __DIR__ . '/../../include/test_required.php'; require_once __DIR__ . '/../../include/init.php'; Install::checkAndCreateDirectories(); if (!file_exists(DB_FILE)) { // Renommage du fichier sqlite à la version 0.5.0 |
︙ | ︙ |
Modified src/www/admin/upgrade.php from [0e78dfdda4] to [16f61c74de].
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | <?php namespace Garradin; use Garradin\Membres\Session; const UPGRADE_PROCESS = true; require_once __DIR__ . '/../../include/init.php'; $config = Config::getInstance(); $v = $config->getVersion(); if (version_compare($v, garradin_version(), '>=')) | > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | <?php namespace Garradin; use Garradin\Membres\Session; const UPGRADE_PROCESS = true; require_once __DIR__ . '/../../include/test_required.php'; require_once __DIR__ . '/../../include/init.php'; $config = Config::getInstance(); $v = $config->getVersion(); if (version_compare($v, garradin_version(), '>=')) |
︙ | ︙ |