Overview
Comment: | Amélioration de la gestion des configurations en sous-répertoire ou en alias (normalement) |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
ca9198db3f3251e4626532764d084f81 |
User & Date: | bohwaz on 2019-12-03 17:48:39 |
Other Links: | manifest | tags |
Context
2019-12-03
| ||
22:57 | Version 0.9.5 stable, et identifiant de cache différent pour chaque association check-in: abca58dc4e user: bohwaz tags: trunk, stable, 0.9.5 | |
17:48 | Amélioration de la gestion des configurations en sous-répertoire ou en alias (normalement) check-in: ca9198db3f user: bohwaz tags: trunk | |
17:46 | Limiter les appels directs à _route.php check-in: 681b1f235f user: bohwaz tags: trunk | |
Changes
Modified src/VERSION from [19e7436639] to [72f19f670a].
| 1 | - + |
|
Modified src/include/init.php from [c0092409a6] to [cef1ad8e13].
︙ | |||
59 60 61 62 63 64 65 66 67 68 69 70 71 72 | 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 | + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - - - - - - - + + + + + + + + + - - - - + | // Configuration par défaut, si les constantes ne sont pas définies dans config.local.php // (fallback) if (!defined('Garradin\ROOT')) { define('Garradin\ROOT', dirname(__DIR__)); } /** * Auto-chargement des dépendances */ class Loader { /** * Liste des classes déjà chargées * @var array */ static protected $loaded = []; /** * Inclure un fichier de classe depuis le nom de la classe * @param string $classname * @return void */ static public function load($classname) { $classname = ltrim($classname, '\\'); if (array_key_exists($classname, self::$loaded)) { return true; } // Plugins if (substr($classname, 0, 16) == 'Garradin\\Plugin\\') { $classname = substr($classname, 16); $plugin_name = substr($classname, 0, strpos($classname, '\\')); $filename = str_replace('\\', '/', substr($classname, strpos($classname, '\\')+1)); $path = Plugin::getPath(strtolower($plugin_name)) . '/lib/' . $filename . '.php'; } else { // PSR-0 autoload $filename = str_replace('\\', '/', $classname); $path = ROOT . '/include/lib/' . $filename . '.php'; } if (!file_exists($path)) { throw new \Exception('File '.$path.' doesn\'t exists'); } self::$loaded[$classname] = true; require $path; } } \spl_autoload_register(['Garradin\Loader', 'load'], true); if (!defined('Garradin\DATA_ROOT')) { define('Garradin\DATA_ROOT', ROOT); } if (!defined('Garradin\WWW_URI')) { $uri = \KD2\HTTP::getRootURI(ROOT); |
︙ | |||
148 149 150 151 152 153 154 | 202 203 204 205 206 207 208 209 210 211 212 213 214 215 | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | } else { ini_set('date.timezone', 'Europe/Paris'); } } |
︙ |
Deleted src/index.html version [bf3217f86f].
| - - - - - - - - - - |
|
Added src/index.php version [3633bc3928].
|
Added src/sous-domaine.html version [01c1184ede].
|