Overview
Comment: | Fix URL pour les installations sans vhost |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | dev |
Files: | files | file ages | folders |
SHA1: |
8f762fb30bc457231a7f1dcdeb1dc523 |
User & Date: | bohwaz on 2017-10-14 07:22:49 |
Other Links: | branch diff | manifest | tags |
Context
2017-10-14
| ||
07:30 | Correction: cet onglet ne devrait pas exister check-in: a42fcdd8c5 user: bohwaz tags: dev | |
07:22 | Fix URL pour les installations sans vhost check-in: 8f762fb30b user: bohwaz tags: dev | |
2017-10-13
| ||
03:05 | Corrections modification projet check-in: e706fa5292 user: bohwaz tags: dev | |
Changes
Modified src/include/init.php from [dacb3a407d] to [0bbca1fd0e].
︙ | ︙ | |||
73 74 75 76 77 78 79 | // Automagic URL discover $path = str_replace(ROOT . '/www', '', getcwd()); $path = str_replace($path, '', dirname($_SERVER['SCRIPT_NAME'])); $path = (!empty($path[0]) && $path[0] != '/') ? '/' . $path : $path; $path = (substr($path, -1) != '/') ? $path . '/' : $path; // Pour installations sans vhost | | | 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | // Automagic URL discover $path = str_replace(ROOT . '/www', '', getcwd()); $path = str_replace($path, '', dirname($_SERVER['SCRIPT_NAME'])); $path = (!empty($path[0]) && $path[0] != '/') ? '/' . $path : $path; $path = (substr($path, -1) != '/') ? $path . '/' : $path; // Pour installations sans vhost $path = str_replace('/www', '', $path); define('Garradin\WWW_URI', $path); } if (!defined('Garradin\WWW_URL')) { $host = isset($_SERVER['HTTP_HOST']) |
︙ | ︙ |