Overview
SHA1:8f762fb30bc457231a7f1dcdeb1dc523905177f2
Date: 2017-10-14 07:22:49
User: bohwaz
Comment:Fix URL pour les installations sans vhost
Timelines: family | ancestors | descendants | both | dev
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2017-10-14
07:30
[a42fcdd8c5] Correction: cet onglet ne devrait pas exister (user: bohwaz, tags: dev)
07:22
[8f762fb30b] Fix URL pour les installations sans vhost (user: bohwaz, tags: dev)
2017-10-13
03:05
[e706fa5292] Corrections modification projet (user: bohwaz, tags: dev)
Changes

Modified src/include/init.php from [dacb3a407d] to [0bbca1fd0e].

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']) 







|







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'])