Détection automatique de l'URL de base du site.

This commit is contained in:
Georges Dupéron 2010-07-02 18:30:55 +02:00
parent a8763e5c2f
commit 775483b678

View File

@ -2,7 +2,7 @@
require_once("util.php");
$config_url_base = "http://127.0.0.1/2010-moteur-site-simple/";
$config_url_base = "http://" . $_SERVER[HTTP_HOST] . $_SERVER[REQUEST_URI];
$config_chemin_base = dirname($_SERVER[SCRIPT_FILENAME]);
$config_chemin_modele = concaténer_chemin_fs($config_chemin_base, "/modele");