From 6aac46c4ef2dc22873641de8ee6248e17a1ee6cd Mon Sep 17 00:00:00 2001 From: Yoann Date: Fri, 4 Nov 2016 17:33:24 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20d=20une=20constante=20pour=20d=C3=A9fin?= =?UTF-8?q?ition=20de=20la=20racine=20http=20en=20cas=20de=20vhost?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mvc/constants.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mvc/constants.php b/mvc/constants.php index 576455d..40c179c 100755 --- a/mvc/constants.php +++ b/mvc/constants.php @@ -5,7 +5,8 @@ //On définit les chemins define('PWD', '/var/www/RaspiSMS/'); //On défini le chemin de base du site - define('HTTP_PWD', (isset($_SERVER['HTTPS']) ? 'https' : 'http') . '://' . (isset($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : 'localhost') . '/RaspiSMS/'); //On défini l'adresse url du site + define('HTTP_ROOT', '/RaspiSMS/'); //On défini la racine d'accès (selon nore vhost) + define('HTTP_PWD', (isset($_SERVER['HTTPS']) ? 'https' : 'http') . '://' . (isset($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : 'localhost') . HTTP_ROOT); //On défini l'adresse url du site define('PWD_IMG', PWD . 'img/'); //Chemin dossier des images define('HTTP_PWD_IMG', HTTP_PWD . 'img/'); //URL dossier des images