]> git.agnieray.net Git - galette.git/blob - galette/config/behavior.inc.php.dist
2c59ae4791a5db47ff0d412f12299883e1e04ced
[galette.git] / galette / config / behavior.inc.php.dist
1 <?php
2
3 /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
4
5 /**
6 * Behavior override file
7 *
8 * PHP version 5
9 *
10 * Copyright © 2017-2021 The Galette Team
11 *
12 * This file is part of Galette (https://galette.eu).
13 *
14 * Galette is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation, either version 3 of the License, or
17 * (at your option) any later version.
18 *
19 * Galette is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
23 *
24 * You should have received a copy of the GNU General Public License
25 * along with Galette. If not, see <http://www.gnu.org/licenses/>.
26 *
27 * @category Main
28 * @package Galette
29 *
30 * @author Johan Cwiklinski <johan@x-tnd.be>
31
32 * @copyright 2017-2021 The Galette Team
33 * @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version
34 * @link https://galette.eu
35 */
36
37 //change this *ONLY* for debug purposes!
38 //define('GALETTE_DISPLAY_ERRORS', true);
39
40 /* Uncomment and tune to read user IP addresses from the X-Forwarded-For header
41 *
42 * This is for applications sitting behind one or several proxies.
43 *
44 * Don't uncomment if the application doesn't sit behind a proxy, as it would
45 * allow potential attackers to replace their IP addresses with anything,
46 * increasing a bit their stealth (IP address don't mean that much anyway)
47 *
48 * Typically each proxy will append its client's IP address to this header
49 * The value is used the index of the IP address to consider, from the end
50 * of the header values, starting with 1.
51 *
52 * Hence the provided example is the simplest suitable for being behind
53 * a single reverse proxy
54 */
55 //define('GALETTE_X_FORWARDED_FOR_INDEX', 1);
56
57 /*
58 * Uncomment to enable the installer page even if galette is already installed and up to date
59 * @see https://bugs.galette.eu/issues/1574
60 */
61 //define('FORCE_INSTALLER', true);