Subversion Repositories SvarDOS

Rev

Rev 1228 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1228 Rev 1231
1
<?php
1
<?php
2
 
2
 
3
// ustaw na TRUE jeśli instalacja wspiera "ładne" adresy. Wymaga reguł MOD_REWRITE w .htaccess:
3
// ustaw na TRUE jeśli instalacja wspiera "ładne" adresy. Wymaga reguł MOD_REWRITE w .htaccess:
4
// RewriteEngine On
4
// RewriteEngine On
5
// RewriteRule "^([0-9][0-9][0-9][0-9])/$" "?action=archiwum&y=$1" [PT]
5
// RewriteRule "^([0-9][0-9][0-9][0-9])/$" "?action=archiwum&y=$1" [PT]
6
// RewriteRule "^([0-9][0-9][0-9][0-9][0-9]+)" "?thread=$1" [PT]
6
// RewriteRule "^([0-9][0-9][0-9][0-9][0-9]+)" "?thread=$1" [PT]
7
$NICE_URLS = FALSE;
7
$NICE_URLS = FALSE;
8
 
8
 
9
// Data directory, ie the place where mateuszforum will store its sqlite db and
9
// Data directory, ie the place where mateuszforum will store its sqlite db and
10
// forum threads. This directory must be writeable by the process running
10
// forum threads. This directory must be writeable by the process running
11
// mateuszforum.
11
// mateuszforum.
12
// This directory path can be empty, but if not then it MUST end with a path
12
// This directory path can be empty, but if not then it MUST end with a path
13
// delimiter (typically, a slash)
13
// delimiter (typically, a slash)
14
$DATADIR = '/srv/svardos-forumdata/';
14
$DATADIR = '/srv/svardos-forumdata/';
15
 
15
 
16
// year of first forum activity, used to generate a list of links to archives
16
// year of first forum activity, used to generate a list of links to archives
17
$INITYEAR = 2023;
17
$INITYEAR = 2023;
18
 
18
 
19
// parametr solny dla funkcji crypt() - istotne tylko przy generowaniu tripkodów
19
// parametr solny dla funkcji crypt() - istotne tylko przy generowaniu tripkodów
20
$TRIP_SALT = trim(file_get_contents($DATADIR . 'tripsalt.txt'));
20
$TRIP_SALT = trim(file_get_contents($DATADIR . 'tripsalt.txt'));
21
 
21
 
22
$SEARCH_API_URL = 'https://www.googleapis.com/customsearch/v1/siterestrict?key=AIzaSyCxLEZe7_LdeOBtPzs4LEbwXmr1bGERfDE&cx=8928515a857418bb5&q=';
22
$SEARCH_API_URL = 'https://www.googleapis.com/customsearch/v1/siterestrict?key=AIzaSyCxLEZe7_LdeOBtPzs4LEbwXmr1bGERfDE&cx=8928515a857418bb5&q=';
23
 
23
 
24
$RSS_TITLE = 'SvarDOS community forum';
24
$RSS_TITLE = 'SvarDOS community forum';
25
 
25
 
26
function selfurl($params = '') {
-
 
27
  $r = 'http://svardos.org/?p=forum';
26
$SELFURL = 'http://svardos.org/?p=forum';
28
  if (!empty($params)) $r .= '&' . $params;
-
 
29
  return($r);
-
 
30
}
-
 
31
 
-
 
32
 
27
 
33
?>
28
?>
34
 
29