]> git.p6c8.net - jirafeau.git/blob - lib/config.original.php
lib/lang: move translations to json based files
[jirafeau.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.
33 * Will take english if user's langage is not available.
34 */
35 $cfg['lang'] = 'auto';
36 /* Select your style :) See media folder */
37 $cfg['style'] = 'courgette';
38 /* Propose a preview link if file type is previewable. */
39 $cfg['preview'] = true;
40 /* Encryption feature. disable it by default.
41 * By enabling it, file-level deduplication won't work.
42 */
43 $cfg['enable_crypt'] = false;
44 /* Split length of link refenrece. */
45 $cfg['link_name_length'] = 8;
46 /* Upload password(s). Empty array disable password authentification.
47 * $cfg['upload_password'] = array(); // No password
48 * $cfg['upload_password'] = array('psw1'); // One password
49 * $cfg['upload_password'] = array('psw1', 'psw2'); // Two passwords
50 * ... and so on
51 */
52 $cfg['upload_password'] = array();
53 /* An empty admin password will disable the classic admin password
54 * authentication.
55 */
56 $cfg['admin_password'] = '';
57 /* If set, let's the user to be authenticated as administrator.
58 * The user provided here is the user authenticated by HTTP authentication.
59 * Note that Jirafeau does not manage the HTTP login part, it just check
60 * that the provided user is logged.
61 * If admin_password parameter is also set, admin_password is ignored.
62 */
63 $cfg['admin_http_auth_user'] = '';
64 /* Select different options for availability of uploaded files.
65 * Possible values in array:
66 * 'minute': file is available for one minute
67 * 'hour': file available for one hour
68 * 'day': file available for one day
69 * 'week': file available for one week
70 * 'month': file is available for one month
71 * 'year': file available for one year
72 * 'none': unlimited availability
73 */
74 $cfg['availabilities'] = array ('minute' => true,
75 'hour' => true,
76 'day' => true,
77 'week' => true,
78 'month' => true,
79 'year' => false,
80 'none' => false);
81 /* Set maximal upload size expressed in MB.
82 * 0 mean unlimited upload size.
83 */
84 $cfg['maximal_upload_size'] = 0;
85 /* Installation is done ? */
86 $cfg['installation_done'] = false;
87
88 /* Try to include user's local configuration. */
89 if ((basename (__FILE__) != 'config.local.php')
90 && file_exists (JIRAFEAU_ROOT.'lib/config.local.php'))
91 {
92 require (JIRAFEAU_ROOT.'lib/config.local.php');
93 }
94
95 ?>

patrick-canterino.de