Subversion Repositories SvarDOS

Rev

Rev 1231 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1231 Rev 1242
Line 1... Line 1...
1
<?php
1
<?php
2
 
2
 
-
 
3
// Language of the UI interface. Leave empty for auto-detection.
-
 
4
// Supported languages: en pl pt
-
 
5
$LANG = '';
-
 
6
 
3
// ustaw na TRUE jeśli instalacja wspiera "ładne" adresy. Wymaga reguł MOD_REWRITE w .htaccess:
7
// Timezone to use for displaying timestamps. Server's system time zone is used
-
 
8
// if this field is left empty.
-
 
9
//
-
 
10
// Examples: UTC ; Europe/Paris ; America/Los_Angeles ; Australia/Perth
-
 
11
//
-
 
12
// See the manual of PHP's date_default_timezone_set() for more information.
-
 
13
$TZ = 'UTC';
-
 
14
 
-
 
15
// sets the format to display timestamps. See PHP's documentation for date()
-
 
16
// for more information. Example: 'd.m.Y, H:i:s'
-
 
17
$DATE_FORMAT = 'd.m.Y, H:i \U\T\C';
-
 
18
 
-
 
19
// Set this to TRUE for "nice" URLS, so instead of such URL:
-
 
20
//
-
 
21
//   http://myforum.example/?thread=12345678
-
 
22
//
-
 
23
// mateuszbb would use this kind of URLs:
-
 
24
//   http://myforum.example/12345678
-
 
25
//
-
 
26
// This requires the MOD_REWRITE extension to be enabled in your web server's
-
 
27
// configuration, and such rules to be placed in .htaccess:
-
 
28
//
4
// RewriteEngine On
29
// RewriteEngine On
5
// RewriteRule "^([0-9][0-9][0-9][0-9])/$" "?action=archiwum&y=$1" [PT]
30
// RewriteRule "^([0-9][0-9][0-9][0-9])/$" "?arch=$1" [PT]
6
// RewriteRule "^([0-9][0-9][0-9][0-9][0-9]+)" "?thread=$1" [PT]
31
// RewriteRule "^([0-9][0-9][0-9][0-9][0-9]+)" "?thread=$1" [PT]
7
$NICE_URLS = FALSE;
32
$NICE_URLS = FALSE;
8
 
33
 
9
// Data directory, ie the place where mateuszforum will store its sqlite db and
34
// Data directory, ie the place where mateuszbb will store its sqlite cache and
10
// forum threads. This directory must be writeable by the process running
35
// forum threads. This directory must be writeable by the process running
11
// mateuszforum.
36
// mateuszbb.
12
// This directory path can be empty, but if not then it MUST end with a path
37
// This directory path can be empty, but if it is not then it MUST end with a
13
// delimiter (typically, a slash)
38
// directory delimiter (typically a slash)
14
$DATADIR = '/srv/svardos-forumdata/';
39
$DATADIR = '/srv/svardos-forumdata/';
15
 
40
 
-
 
41
// the maximum number of threads to be displayed on the main page.
-
 
42
$MAINPAGE_MAXTHREADS = 30;
-
 
43
 
-
 
44
// the maximum number of inactivity days for threads displayed on the main page.
-
 
45
$MAINPAGE_MAXINACT = 600;
-
 
46
 
16
// year of first forum activity, used to generate a list of links to archives
47
// year of first forum activity, used to generate a list of links to archives
17
$INITYEAR = 2023;
48
$INITYEAR = 2023;
18
 
49
 
-
 
50
// Threads become "locked" after this many days without a post. A locked thread
-
 
51
// is still visible, but does not allow new messages to be posted in it.
-
 
52
// Set this to -1 for threads never to be locked.
-
 
53
$LOCK_DELAY = 365;
-
 
54
 
-
 
55
// Once a message is posted, it may be edited by its author during this many
-
 
56
// minutes or until the browser's session is closed, whichever comes first.
-
 
57
// For no time limit other than browser's session lifetime, set this to -1.
-
 
58
// This feature relies on cookie authentication, hence it will work only if the
-
 
59
// browser accepts cookies.
-
 
60
$EDIT_ALLOWED_MINUTES = 240;
-
 
61
 
19
// parametr solny dla funkcji crypt() - istotne tylko przy generowaniu tripkodów
62
// parametr solny dla funkcji crypt() - istotne tylko przy generowaniu tripkodów
20
$TRIP_SALT = trim(file_get_contents($DATADIR . 'tripsalt.txt'));
63
$TRIP_SALT = trim(file_get_contents($DATADIR . 'tripsalt.txt'));
21
 
64
 
-
 
65
// the maximum number of posts an IP address is allowed to submit within 24h
-
 
66
$MAXDAILYPOSTS = 10;
-
 
67
 
22
$SEARCH_API_URL = 'https://www.googleapis.com/customsearch/v1/siterestrict?key=AIzaSyCxLEZe7_LdeOBtPzs4LEbwXmr1bGERfDE&cx=8928515a857418bb5&q=';
68
$SEARCH_API_URL = 'https://www.googleapis.com/customsearch/v1/siterestrict?key=AIzaSyCxLEZe7_LdeOBtPzs4LEbwXmr1bGERfDE&cx=8928515a857418bb5&q=';
23
 
69
 
24
$RSS_TITLE = 'SvarDOS community forum';
70
$RSS_TITLE = 'SvarDOS community forum';
25
 
71
 
26
$SELFURL = 'http://svardos.org/?p=forum';
72
$SELFURL = 'http://svardos.org/?p=forum';