Mercurial > defr > DualBlog
comparison classes.php @ 13:a8710e973155
Définition du include_path en fonction du répertoire actuel.
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Fri, 26 Oct 2007 13:59:39 +0200 |
parents | ff57b45eda37 |
children | d0e0a216ad83 |
comparison
equal
deleted
inserted
replaced
12:a7e770abbfc6 | 13:a8710e973155 |
---|---|
1 <?php | 1 <?php |
2 /* | 2 /* |
3 WebLog : Classe globale & all | 3 WebLog : Classe globale & all |
4 */ | 4 */ |
5 | 5 |
6 $docRoot = $_SERVER['DOCUMENT_ROOT']; | 6 $docRoot = dirname(__FILE__); |
7 ini_set("include_path", "$docRoot/blog/includes/:$docRoot/blog/templates/"); | 7 ini_set("include_path", "$docRoot/includes:$docRoot/templates"); |
8 | 8 |
9 setlocale(LC_ALL, "fr_FR.utf8@euro", "fr_FR.utf8"); | 9 setlocale(LC_ALL, "fr_FR.utf8@euro", "fr_FR.utf8"); |
10 | 10 |
11 require_once("config.php"); | 11 require_once("config.php"); |
12 require_once("class.dataaccess.php"); | 12 require_once("class.dataaccess.php"); |