annotate mconfig.inc.php.example @ 539:dc37dab2a6d7

Update example configuration.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 13 Dec 2013 18:50:57 +0200
parents 380cd0151890
children 559b50fd94a9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
8019b357cc03 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
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
8019b357cc03 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
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",
539
dc37dab2a6d7 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 536
diff changeset
14 // "sqlUsername" => "", // Leave unset if not needed
dc37dab2a6d7 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 536
diff changeset
15 // "sqlPassword" => "", // --""--
dc37dab2a6d7 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 536
diff changeset
16 // "sqlOptions" => array(),
22
f2877f1b0b75 Update configuration template.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
17
536
380cd0151890 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 290
diff changeset
18 // Debug information in error log, also enables
380cd0151890 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 290
diff changeset
19 // using GET requests for certain data that normally
380cd0151890 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 290
diff changeset
20 // can only be used via POST. WARNING! Do NOT enable
380cd0151890 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 290
diff changeset
21 // for production databases without a good reason.
22
f2877f1b0b75 Update configuration template.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
22 "debug" => false,
0
8019b357cc03 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
23
536
380cd0151890 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 290
diff changeset
24 // Default page
123
5837b9333964 Add new "about" page, and setting for default page.
Matti Hamalainen <ccr@tnsp.org>
parents: 97
diff changeset
25 "defaultPage" => "about", // Default page
5837b9333964 Add new "about" page, and setting for default page.
Matti Hamalainen <ccr@tnsp.org>
parents: 97
diff changeset
26
536
380cd0151890 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 290
diff changeset
27 // 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
28 "userKeyLength" => 8,
536
380cd0151890 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 290
diff changeset
29
380cd0151890 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 290
diff changeset
30 // Voting settings
22
f2877f1b0b75 Update configuration template.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
31 "voteMin" => -1,
f2877f1b0b75 Update configuration template.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
32 "voteMax" => 2,
536
380cd0151890 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 290
diff changeset
33
94
6edd7d623eab Start adding votekey modes code.
Matti Hamalainen <ccr@tnsp.org>
parents: 51
diff changeset
34 "voteKeyMode" => -1, // See msite.inc.php for VOTE_*
6edd7d623eab Start adding votekey modes code.
Matti Hamalainen <ccr@tnsp.org>
parents: 51
diff changeset
35
290
3640f2311e1c Fix wrong setting name in example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 180
diff changeset
36 "userTimeout" => 120,
22
f2877f1b0b75 Update configuration template.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
37 "admTimeout" => 15,
0
8019b357cc03 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
38 );
8019b357cc03 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
39
51
7bdf89601ba0 Work on session stuff.
Matti Hamalainen <ccr@tnsp.org>
parents: 35
diff changeset
40 date_default_timezone_set("Europe/Helsinki");
0
8019b357cc03 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
41
8019b357cc03 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
42 $securePages = array(
180
a3f0f2a3551a Split stylesheets into separate files for different platforms and also split
Matti Hamalainen <ccr@tnsp.org>
parents: 179
diff changeset
43 "/fap2013/admin" => true,
a3f0f2a3551a Split stylesheets into separate files for different platforms and also split
Matti Hamalainen <ccr@tnsp.org>
parents: 179
diff changeset
44 "/fap2013/register" => true,
a3f0f2a3551a Split stylesheets into separate files for different platforms and also split
Matti Hamalainen <ccr@tnsp.org>
parents: 179
diff changeset
45 "/fap2013/vote" => false,
0
8019b357cc03 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
46 );
8019b357cc03 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
47
22
f2877f1b0b75 Update configuration template.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
48
180
a3f0f2a3551a Split stylesheets into separate files for different platforms and also split
Matti Hamalainen <ccr@tnsp.org>
parents: 179
diff changeset
49 $pageTitle = "Finnish Amiga Party 2013";
0
8019b357cc03 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
50 $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
51 $pageCSS = array(
a3f0f2a3551a Split stylesheets into separate files for different platforms and also split
Matti Hamalainen <ccr@tnsp.org>
parents: 179
diff changeset
52 "main.css" => "",
a3f0f2a3551a Split stylesheets into separate files for different platforms and also split
Matti Hamalainen <ccr@tnsp.org>
parents: 179
diff changeset
53 "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
54 "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
55 );
0
8019b357cc03 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
56
8019b357cc03 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
57 ?>