314c311a |
1 | <?php |
2 | /** |
3 | * Fichier de configuration |
4 | * |
5 | * PHP versions 4 et 5 |
6 | * |
7 | * LODEL - Logiciel d'Edition ELectronique. |
8 | * |
9 | * Copyright (c) 2001-2002, Ghislain Picard, Marin Dacos |
10 | * Copyright (c) 2003, Ghislain Picard, Marin Dacos, Luc Santeramo, Nicolas Nutten, Anne Gentil-Beccot |
11 | * Copyright (c) 2004, Ghislain Picard, Marin Dacos, Luc Santeramo, Anne Gentil-Beccot, Bruno Cénou |
12 | * Copyright (c) 2005, Ghislain Picard, Marin Dacos, Luc Santeramo, Gautier Poupeau, Jean Lamy, Bruno Cénou |
13 | * Copyright (c) 2006, Marin Dacos, Luc Santeramo, Bruno Cénou, Jean Lamy, Mikaël Cixous, Sophie Malafosse |
14 | * Copyright (c) 2007, Marin Dacos, Bruno Cénou, Sophie Malafosse, Pierre-Alain Mignot |
15 | * Copyright (c) 2008, Marin Dacos, Bruno Cénou, Pierre-Alain Mignot, Inès Secondat de Montesquieu, Jean-François Rivière |
16 | * Copyright (c) 2009, Marin Dacos, Bruno Cénou, Pierre-Alain Mignot, Inès Secondat de Montesquieu, Jean-François Rivière |
17 | * |
18 | * Home page: http://www.lodel.org |
19 | * |
20 | * E-Mail: lodel@lodel.org |
21 | * |
22 | * All Rights Reserved |
23 | * |
24 | * This program is free software; you can redistribute it and/or modify |
25 | * it under the terms of the GNU General Public License as published by |
26 | * the Free Software Foundation; either version 2 of the License, or |
27 | * (at your option) any later version. |
28 | * |
29 | * This program is distributed in the hope that it will be useful, |
30 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
31 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
32 | * GNU General Public License for more details. |
33 | * |
34 | * You should have received a copy of the GNU General Public License |
35 | * along with this program; if not, write to the Free Software |
36 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
37 | * |
38 | * @author Ghislain Picard |
39 | * @author Jean Lamy |
40 | * @copyright 2001-2002, Ghislain Picard, Marin Dacos |
41 | * @copyright 2003, Ghislain Picard, Marin Dacos, Luc Santeramo, Nicolas Nutten, Anne Gentil-Beccot |
42 | * @copyright 2004, Ghislain Picard, Marin Dacos, Luc Santeramo, Anne Gentil-Beccot, Bruno Cénou |
43 | * @copyright 2005, Ghislain Picard, Marin Dacos, Luc Santeramo, Gautier Poupeau, Jean Lamy, Bruno Cénou |
44 | * @copyright 2006, Marin Dacos, Luc Santeramo, Bruno Cénou, Jean Lamy, Mikaël Cixous, Sophie Malafosse |
45 | * @copyright 2007, Marin Dacos, Bruno Cénou, Sophie Malafosse, Pierre-Alain Mignot |
46 | * @copyright 2008, Marin Dacos, Bruno Cénou, Pierre-Alain Mignot, Inès Secondat de Montesquieu, Jean-François Rivière |
47 | * @copyright 2009, Marin Dacos, Bruno Cénou, Pierre-Alain Mignot, Inès Secondat de Montesquieu, Jean-François Rivière |
48 | * @licence http://www.gnu.org/copyleft/gpl.html |
49 | * @version CVS:$Id: |
50 | * @package lodel/source |
51 | */ |
52 | |
53 | |
54 | require 'lodelconfig.php'; |
55 | |
56 | $cfg['site'] = "principal"; |
57 | |
58 | ########################################## |
59 | |
60 | $cfg['versionsuffix'] = "-".$cfg['version']; # versioning |
61 | |
62 | if (!defined("SITEROOT")) { |
63 | define("SITEROOT",""); |
64 | } |
65 | |
66 | $cfg['home'] = "lodel{$cfg['versionsuffix']}/scripts/"; |
67 | $home = $cfg['home']; |
68 | $cfg['sharedir'] = SITEROOT . $cfg['sharedir'].$cfg['versionsuffix']; |
69 | $cfg['shareurl'] .= $cfg['versionsuffix']; |
70 | |
71 | # recaptcha pour la partie signaler |
72 | # par défaut désactivé |
73 | $cfg['signaler_recaptcha'] = false; |
74 | $cfg['recaptcha_privatekey'] = ""; // clé privée recaptcha |
75 | $cfg['recaptcha_publickey'] = ""; // clé publique recaptcha |
76 | |
77 | $cfg['searchEngine'] = false; |
78 | |
79 | ini_set('include_path', SITEROOT. $cfg['home']. PATH_SEPARATOR. ini_get('include_path')); |
80 | // important here |
81 | // when this file is included, we are ALWAYS in the site root, so don't concat $home !! |
82 | require $cfg['home'].'context.php'; |
83 | |
84 | $cfg['home'] = SITEROOT. $cfg['home']; |
85 | C::setCfg($cfg); |
86 | require $home.'class.errors.php'; |
87 | $home=null; |
88 | ?> |