]> git.p6c8.net - jirafeau_mojo42.git/blob - lib/config.original.php
76d5870c760fe1f02ff3430c13d3811de78a3ec9
[jirafeau_mojo42.git] / lib / config.original.php
1 <?php
2 /*
3 * Jirafeau, your web file repository
4 * Copyright (C) 2008 Julien "axolotl" BERNARD <axolotl@magieeternelle.org>
5 * Copyright (C) 2015 Jerome Jutteau <j.jutteau@gmail.com>
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU Affero General Public License as
9 * published by the Free Software Foundation, either version 3 of the
10 * License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU Affero General Public License for more details.
16 *
17 * You should have received a copy of the GNU Affero General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21 /*
22 * default configuration
23 * if you want to change this, overwrite in a config.local.php file
24 */
25 global $cfg;
26
27 /* don't forget the ending '/' */
28 $cfg['web_root'] = '';
29 $cfg['var_root'] = '';
30
31 /* Lang choice between 'auto', 'en' and 'fr'.
32 'auto' mode will take the user's browser informations. Will take english if
33 user's langage is not available.
34 */
35 $cfg['lang'] = 'auto';
36 $cfg['style'] = 'modern';
37 $cfg['rewrite'] = false;
38 /* preview: false (will download file) or true (will preview in browser if
39 * possible) . */
40 $cfg['preview'] = true;
41 /* Download page:
42 * true: Will show a download page (with preview if permited and possible).
43 * false: Will directly download file or preview (if permited and possible). */
44 $cfg['download_page'] = false;
45 /* Encryption feature. disable it by default.
46 * By enabling it, file-level deduplication won't work. */
47 $cfg['enable_crypt'] = false;
48 /* Split lenght of link refenrece. */
49 $cfg['link_name_lenght'] = 8;
50 /* Upload password(s). Empty array disable password authentification.
51 * $cfg['upload_password'] = array(); // No password
52 * $cfg['upload_password'] = array('psw1'); // One password
53 * $cfg['upload_password'] = array('psw1', 'psw2'); // Two passwords
54 * ... and so on
55 */
56 $cfg['upload_password'] = array();
57 /* An empty admin password will disable the classic admin password
58 * authentication.
59 */
60 $cfg['admin_password'] = '';
61 /* If set, let's the user to be authenticated as administrator.
62 * The user provided here is the user authenticated by HTTP authentication.
63 * Note that Jirafeau does not manage the HTTP login part, it just check
64 * that the provided user is logged.
65 * If admin_password parameter is also set, admin_password is ignored.
66 */
67 $cfg['admin_http_auth_user'] = '';
68 /* Installation is done ? */
69 $cfg['installation_done'] = false;
70
71 /* Try to include user's local configuration. */
72 if ((basename (__FILE__) != 'config.local.php')
73 && file_exists (JIRAFEAU_ROOT.'lib/config.local.php'))
74 {
75 require (JIRAFEAU_ROOT.'lib/config.local.php');
76 }
77
78 ?>

patrick-canterino.de