Subversion Repositories SvarDOS

Rev

Rev 1231 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1223 mateusz.vi 1
<?php
2
 
1242 mateusz.vi 3
// Language of the UI interface. Leave empty for auto-detection.
4
// Supported languages: en pl pt
5
$LANG = '';
6
 
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
//
1223 mateusz.vi 29
// RewriteEngine On
1242 mateusz.vi 30
// RewriteRule "^([0-9][0-9][0-9][0-9])/$" "?arch=$1" [PT]
1223 mateusz.vi 31
// RewriteRule "^([0-9][0-9][0-9][0-9][0-9]+)" "?thread=$1" [PT]
32
$NICE_URLS = FALSE;
33
 
1242 mateusz.vi 34
// Data directory, ie the place where mateuszbb will store its sqlite cache and
1223 mateusz.vi 35
// forum threads. This directory must be writeable by the process running
1242 mateusz.vi 36
// mateuszbb.
37
// This directory path can be empty, but if it is not then it MUST end with a
38
// directory delimiter (typically a slash)
1223 mateusz.vi 39
$DATADIR = '/srv/svardos-forumdata/';
40
 
1242 mateusz.vi 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
 
1223 mateusz.vi 47
// year of first forum activity, used to generate a list of links to archives
48
$INITYEAR = 2023;
49
 
1242 mateusz.vi 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
 
1223 mateusz.vi 62
// parametr solny dla funkcji crypt() - istotne tylko przy generowaniu tripkodów
63
$TRIP_SALT = trim(file_get_contents($DATADIR . 'tripsalt.txt'));
64
 
1242 mateusz.vi 65
// the maximum number of posts an IP address is allowed to submit within 24h
66
$MAXDAILYPOSTS = 10;
67
 
1228 mateusz.vi 68
$SEARCH_API_URL = 'https://www.googleapis.com/customsearch/v1/siterestrict?key=AIzaSyCxLEZe7_LdeOBtPzs4LEbwXmr1bGERfDE&cx=8928515a857418bb5&q=';
1223 mateusz.vi 69
 
1228 mateusz.vi 70
$RSS_TITLE = 'SvarDOS community forum';
71
 
1231 mateusz.vi 72
$SELFURL = 'http://svardos.org/?p=forum';
1223 mateusz.vi 73
 
74
?>