Mercurial > hg > fapweb
comparison mconfig.inc.php.example @ 1095:faa835271dfd
Update example config.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 27 Jan 2017 22:11:40 +0200 |
parents | 95b74632cfe2 |
children | bbc0a3d0b51e |
comparison
equal
deleted
inserted
replaced
1094:563fc90de965 | 1095:faa835271dfd |
---|---|
5 // | 5 // |
6 $siteSettings = array( | 6 $siteSettings = array( |
7 | 7 |
8 // Admin interface password | 8 // Admin interface password |
9 // "admPassword" => "xxx", | 9 // "admPassword" => "xxx", |
10 "admPassword" => false, | |
10 | 11 |
11 // SQL database PHP data source name, etc. Refer to | 12 // SQL database PHP data source name, etc. Refer to |
12 // http://www.php.net/manual/en/pdo.construct.php | 13 // http://www.php.net/manual/en/pdo.construct.php |
13 // Has been tested with SQLite3 and PostgreSQL backends. | 14 // Has been tested with SQLite3 and PostgreSQL backends. |
14 "sqlDB" => "sqlite:fap.sqlite3", | 15 "sqlDB" => "sqlite:fap.sqlite3", |
25 | 26 |
26 // Default page | 27 // Default page |
27 "defaultPage" => "about", // Default page | 28 "defaultPage" => "about", // Default page |
28 | 29 |
29 // User key/votekey settings | 30 // User key/votekey settings |
30 "userKeyMode" => -1, // See msite.inc.php for VOTE_* | 31 "userKeyMode" => 1, // See msite.inc.php for VOTE_* |
31 "userKeyLength" => 6, // Vote key length in characters | 32 "userKeyLength" => 6, // Vote key length in characters |
32 //"userKeyCase" => true, // If false, keys are case-INsensitive | 33 //"userKeyCase" => true, // If false, keys are case-INsensitive |
33 //"userKeyChars" => "abdefghjkmnpqrstwxyzABCDEFGHJKLMNPQRSTUVWXYZ23456789", // Characters to be used for key generation | 34 //"userKeyChars" => "abdefghjkmnpqrstwxyzABCDEFGHJKLMNPQRSTUVWXYZ23456789", // Characters to be used for key generation |
34 | 35 |
35 // Voting settings | 36 // Voting settings |
36 "voteMin" => -1, | 37 "voteMin" => -1, |
37 "voteMax" => 2, | 38 "voteMax" => 2, |
38 | 39 |
39 | 40 |
40 "userTimeout" => 120, // In minutes | |
41 "admTimeout" => 15, | 41 "admTimeout" => 15, |
42 | 42 |
43 "admTimeout" => 60, | |
43 | 44 |
44 // Entry file paths and URL prefixes | 45 // Entry file paths and URL prefixes |
45 "entryMaxSize" => 16 * 1024 * 1024, // max file size | 46 "entryMaxSize" => 16 * 1024 * 1024, // max file size |
46 "entryPath" => "/home/ccr/files/", // should be absolute path | 47 "entryPath" => "/home/ccr/files/", // should be absolute path |
47 "entryPathPerms" => 0755, | 48 "entryPathPerms" => 0755, |
48 "entryFilePerms" => 0644, | 49 "entryFilePerms" => 0644, |
49 | 50 |
50 "previewMaxSize" => 2 * 1024 * 1024, // max file size | |
51 "previewPath" => "/home/ccr/fapdev/previews/", // should be absolute path | 51 "previewPath" => "/home/ccr/fapdev/previews/", // should be absolute path |
52 "previewURL" => "http://localhost:8888/previews/", // can be relative (should point to same dir as previewPath) | 52 "previewURL" => "http://localhost:8888/previews/", // can be relative (should point to same dir as previewPath) |
53 "previewMaxSize" => 16 * 1024 * 1024, // max file size | |
53 "thumbnailSubDir" => "tn/", // relative subdir to previewPath and previewURL | 54 "thumbnailSubDir" => "tn/", // relative subdir to previewPath and previewURL |
54 "previewPathPerms" => 0711, | 55 "previewPathPerms" => 0711, |
55 "previewFilePerms" => 0644, | 56 "previewFilePerms" => 0644, |
56 | 57 |
57 // Generated sample files settings | 58 // Generated sample files settings |
61 "sampleDuration" => 30, // in seconds | 62 "sampleDuration" => 30, // in seconds |
62 | 63 |
63 //"avconv_exe" => "ffmpeg", // avconv/ffmpeg binary executable | 64 //"avconv_exe" => "ffmpeg", // avconv/ffmpeg binary executable |
64 //"gfxconv_exe" => "gfxconv", | 65 //"gfxconv_exe" => "gfxconv", |
65 //"openmpg123_exe" => "openmpt123", | 66 //"openmpg123_exe" => "openmpt123", |
66 | 67 "openmpt123_args" => "--filter 1", // Extra commandline arguments for openmpt123 |
67 "openmpt123_args" => "", // Extra commandline arguments for openmpt123 | |
68 | 68 |
69 // Samples to be generated, and their avconv settings | 69 // Samples to be generated, and their avconv settings |
70 "sampleTypes" => array( | 70 "sampleTypes" => array( |
71 "OggVorbis" => array("-f" => "ogg", "-c:a" => "libvorbis", "-q:a" => 5), | 71 "OggVorbis" => array("-f" => "ogg", "-c:a" => "libvorbis", "-q:a" => 5), |
72 "MP3" => array("-f" => "mp3", "-c:a" => "libmp3lame", "-b:a" => "96k"), | 72 "MP3" => array("-f" => "mp3", "-c:a" => "libmp3lame", "-b:a" => "96k"), |
85 | 85 |
86 | 86 |
87 date_default_timezone_set("Europe/Helsinki"); | 87 date_default_timezone_set("Europe/Helsinki"); |
88 | 88 |
89 $securePages = array( | 89 $securePages = array( |
90 "/fap2014/register" => true, | 90 "register" => true, |
91 "/fap2014/vote" => false, | 91 "vote" => true, |
92 ); | 92 ); |
93 | 93 |
94 | 94 |
95 $pageTitle = "Finnish Amiga Party 2014"; | 95 $pageTitle = "Finnish Amiga Party 2017"; |
96 $pageCharset = "utf-8"; | 96 $pageCharset = "utf-8"; |
97 $pageCSS = array( | 97 $pageCSS = array( |
98 "css/main.css" => FALSE, | 98 "css/main.css" => FALSE, |
99 "css/desktop.css" => "only screen and (min-width: 801px)", | 99 "css/desktop.css" => "only screen and (min-width: 800px)", |
100 "css/mobile.css" => "only screen and (max-width: 799px), only screen and (max-device-width: 799px)" | 100 "css/mobile.css" => "only screen and (max-width: 799px), only screen and (max-device-width: 799px)" |
101 ); | 101 ); |
102 | 102 |
103 ?> | 103 ?> |