-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.sample.php
47 lines (41 loc) · 1.27 KB
/
config.sample.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
define('GALLERY_BASE_DIR', __DIR__);
/** Your filesystem encoding.
*
* UTF-8 is typical for modern *NIX,
* CP1251 is Russian Windows ANSI codepage.
*/
define('GALLERY_FS_ENCODING', 'UTF-8');
//define('GALLERY_FS_ENCODING', 'CP1251');
/** Enable files' descriptions support.
*
* Otherwise - use direct directory listing by mask.
* Files.bbs/Descript.ion is a popular file description list formats.
*/
//define('GALLERY_DESC_FILE', 'Files.bbs');
//define('GALLERY_DESC_FILE', 'Descript.ion');
/** Specify gallery descriptions encoding.
*
* Only used with GALLERY_DESC_FILE
*
* CP866 for cyrillic descriptions is common.
* UTF-8 is a sane default suitable for drop-in gallery.
*/
//define('GALLERY_DESC_ENCODING', 'CP866');
//define('GALLERY_DESC_ENCODING', 'UTF-8');
/** Define general gallery layout
*/
define('GALLERY_PREVIEW_X', 160);
define('GALLERY_PREVIEW_Y', 120);
define('GALLERY_PREVIEW_WIDTH_FACTOR', 2);
define('GALLERY_COLUMNS', 3);
/** Allow X-SendFile/X-Accel-Redirect
*
* Uncomment one of the following defines, if you know what you are doing.
*
* NB: SERVER CONFIGURATION IS REQUIRED BEFORE ACTIVATING THIS FEATURE!
*/
// Lighttpd, Apache mod_xsendfile
//define('GALLERY_SENDFILE_HEADER', 'X-SendFile');
// nginx
//define('GALLERY_SENDFILE_HEADER', 'X-Accel-Redirect');