Mercurial > hg > fapweb
annotate mconfig.inc.php.example @ 536:380cd0151890
Update example configuration.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 13 Dec 2013 18:26:03 +0200 |
parents | 3640f2311e1c |
children | dc37dab2a6d7 |
rev | line source |
---|---|
0 | 1 <? |
536
380cd0151890
Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents:
290
diff
changeset
|
2 // |
380cd0151890
Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents:
290
diff
changeset
|
3 // Site configuration, important settings that MUST be |
380cd0151890
Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents:
290
diff
changeset
|
4 // reviewed and set correctly before deployment. |
380cd0151890
Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents:
290
diff
changeset
|
5 // |
0 | 6 $siteSettings = array( |
536
380cd0151890
Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents:
290
diff
changeset
|
7 |
380cd0151890
Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents:
290
diff
changeset
|
8 // Admin interface password |
22
f2877f1b0b75
Update configuration template.
Matti Hamalainen <ccr@tnsp.org>
parents:
0
diff
changeset
|
9 // "admPassword" => "xxx", |
536
380cd0151890
Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents:
290
diff
changeset
|
10 |
380cd0151890
Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents:
290
diff
changeset
|
11 // SQL database PHP data source name, etc. Refer to |
380cd0151890
Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents:
290
diff
changeset
|
12 // http://www.php.net/manual/en/pdo.construct.php |
22
f2877f1b0b75
Update configuration template.
Matti Hamalainen <ccr@tnsp.org>
parents:
0
diff
changeset
|
13 "sqlDB" => "sqlite:fap.sqlite3", |
536
380cd0151890
Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents:
290
diff
changeset
|
14 // "sqlUsername" => "", |
380cd0151890
Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents:
290
diff
changeset
|
15 // "sqlUsername" => "", |
22
f2877f1b0b75
Update configuration template.
Matti Hamalainen <ccr@tnsp.org>
parents:
0
diff
changeset
|
16 |
536
380cd0151890
Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents:
290
diff
changeset
|
17 // Debug information in error log, also enables |
380cd0151890
Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents:
290
diff
changeset
|
18 // using GET requests for certain data that normally |
380cd0151890
Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents:
290
diff
changeset
|
19 // can only be used via POST. WARNING! Do NOT enable |
380cd0151890
Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents:
290
diff
changeset
|
20 // for production databases without a good reason. |
22
f2877f1b0b75
Update configuration template.
Matti Hamalainen <ccr@tnsp.org>
parents:
0
diff
changeset
|
21 "debug" => false, |
0 | 22 |
536
380cd0151890
Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents:
290
diff
changeset
|
23 // Default page |
123
5837b9333964
Add new "about" page, and setting for default page.
Matti Hamalainen <ccr@tnsp.org>
parents:
97
diff
changeset
|
24 "defaultPage" => "about", // Default page |
5837b9333964
Add new "about" page, and setting for default page.
Matti Hamalainen <ccr@tnsp.org>
parents:
97
diff
changeset
|
25 |
536
380cd0151890
Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents:
290
diff
changeset
|
26 // Vote key length in characters |
26
7be3f8cf1f7a
Lots of cleanups, preparing for adding entry submission support.
Matti Hamalainen <ccr@tnsp.org>
parents:
22
diff
changeset
|
27 "userKeyLength" => 8, |
536
380cd0151890
Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents:
290
diff
changeset
|
28 |
380cd0151890
Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents:
290
diff
changeset
|
29 // Voting settings |
22
f2877f1b0b75
Update configuration template.
Matti Hamalainen <ccr@tnsp.org>
parents:
0
diff
changeset
|
30 "voteMin" => -1, |
f2877f1b0b75
Update configuration template.
Matti Hamalainen <ccr@tnsp.org>
parents:
0
diff
changeset
|
31 "voteMax" => 2, |
536
380cd0151890
Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents:
290
diff
changeset
|
32 |
94
6edd7d623eab
Start adding votekey modes code.
Matti Hamalainen <ccr@tnsp.org>
parents:
51
diff
changeset
|
33 "voteKeyMode" => -1, // See msite.inc.php for VOTE_* |
6edd7d623eab
Start adding votekey modes code.
Matti Hamalainen <ccr@tnsp.org>
parents:
51
diff
changeset
|
34 |
290
3640f2311e1c
Fix wrong setting name in example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents:
180
diff
changeset
|
35 "userTimeout" => 120, |
22
f2877f1b0b75
Update configuration template.
Matti Hamalainen <ccr@tnsp.org>
parents:
0
diff
changeset
|
36 "admTimeout" => 15, |
0 | 37 ); |
38 | |
51 | 39 date_default_timezone_set("Europe/Helsinki"); |
0 | 40 |
41 $securePages = array( | |
180
a3f0f2a3551a
Split stylesheets into separate files for different platforms and also split
Matti Hamalainen <ccr@tnsp.org>
parents:
179
diff
changeset
|
42 "/fap2013/admin" => true, |
a3f0f2a3551a
Split stylesheets into separate files for different platforms and also split
Matti Hamalainen <ccr@tnsp.org>
parents:
179
diff
changeset
|
43 "/fap2013/register" => true, |
a3f0f2a3551a
Split stylesheets into separate files for different platforms and also split
Matti Hamalainen <ccr@tnsp.org>
parents:
179
diff
changeset
|
44 "/fap2013/vote" => false, |
0 | 45 ); |
46 | |
22
f2877f1b0b75
Update configuration template.
Matti Hamalainen <ccr@tnsp.org>
parents:
0
diff
changeset
|
47 |
180
a3f0f2a3551a
Split stylesheets into separate files for different platforms and also split
Matti Hamalainen <ccr@tnsp.org>
parents:
179
diff
changeset
|
48 $pageTitle = "Finnish Amiga Party 2013"; |
0 | 49 $pageCharset = "utf-8"; |
180
a3f0f2a3551a
Split stylesheets into separate files for different platforms and also split
Matti Hamalainen <ccr@tnsp.org>
parents:
179
diff
changeset
|
50 $pageCSS = array( |
a3f0f2a3551a
Split stylesheets into separate files for different platforms and also split
Matti Hamalainen <ccr@tnsp.org>
parents:
179
diff
changeset
|
51 "main.css" => "", |
a3f0f2a3551a
Split stylesheets into separate files for different platforms and also split
Matti Hamalainen <ccr@tnsp.org>
parents:
179
diff
changeset
|
52 "desktop.css" => "only screen and (min-width: 801px)", |
a3f0f2a3551a
Split stylesheets into separate files for different platforms and also split
Matti Hamalainen <ccr@tnsp.org>
parents:
179
diff
changeset
|
53 "mobile.css" => "only screen and (max-width: 799px), only screen and (max-device-width: 799px)" |
a3f0f2a3551a
Split stylesheets into separate files for different platforms and also split
Matti Hamalainen <ccr@tnsp.org>
parents:
179
diff
changeset
|
54 ); |
0 | 55 |
56 ?> |