From 21746f17dbd12499f794b1f2822b50e9e6c5d494 Mon Sep 17 00:00:00 2001 From: polo Date: Sun, 23 Apr 2023 23:39:10 +0200 Subject: bouton partager --- controller/config.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'controller') diff --git a/controller/config.php b/controller/config.php index 47b85f9..067d89b 100644 --- a/controller/config.php +++ b/controller/config.php @@ -15,8 +15,9 @@ $storage = 'files'; // Racine du site (inutile pour l'instant) //$root = getcwd(); -// nom de domaine (inutile pour l'instant) -//$host = $_SERVER['HTTP_HOST']; +// nom de domaine (utilisé pour créer des liens absolus) +// depuis une fonction, faire un: 'global $host;' +$host = 'http://' . $_SERVER['HTTP_HOST']; // bibliothèque utilisée pour créer les miniatures if(extension_loaded("imagick")) // on préfère imagemagick -- cgit v1.2.3