No regular expressions were active.
1 |
|
<?php
|
|
1 |
|
<?php
|
2 |
|
/*********
**********
**********
**********
**********
**********
**********
******
|
|
2 |
|
/*********
**********
**********
**********
**********
**********
**********
******
|
3 |
|
*
O
rca Intera
ctive Foru
m Script
|
|
3 |
|
*
O
rca Intera
ctive Foru
m Script
|
4 |
|
*
---------
------
|
|
4 |
|
*
---------
------
|
5 |
|
* Star
ted
: Fr
Nov 10 20
06
|
|
5 |
|
* Star
ted
: Fr
Nov 10 20
06
|
6 |
|
* Copy
right
: (C) 2
007 BoonEx
Group
|
|
6 |
|
* Copy
right
: (C) 2
007 BoonEx
Group
|
7 |
|
* Webs
ite
: ht
tp://www.b
oonex.com
|
|
7 |
|
* Webs
ite
: ht
tp://www.b
oonex.com
|
8 |
|
* This fil
e is part
of Orca -
Interactiv
e Forum Sc
ript
|
|
8 |
|
* This fil
e is part
of Orca -
Interactiv
e Forum Sc
ript
|
9 |
|
*
|
|
9 |
|
*
|
10 |
|
* Orca is
free softw
are; you c
an redistr
ibute it a
nd/or modi
fy it unde
r
|
|
10 |
|
* Orca is
free softw
are; you c
an redistr
ibute it a
nd/or modi
fy it unde
r
|
11 |
|
* the term
s of the G
NU General
Public Li
cense as p
ublished b
y the
|
|
11 |
|
* the term
s of the G
NU General
Public Li
cense as p
ublished b
y the
|
12 |
|
* Free Sof
tware Foun
dation; ei
ther versi
on 2 of th
e
|
|
12 |
|
* Free Sof
tware Foun
dation; ei
ther versi
on 2 of th
e
|
13 |
|
* License,
or any la
ter versio
n.
|
|
13 |
|
* License,
or any la
ter versio
n.
|
14 |
|
*
|
|
14 |
|
*
|
15 |
|
* Orca is
distribute
d in the h
ope that i
t will be
useful, bu
t WITHOUT
ANY WARRAN
TY;
|
|
15 |
|
* Orca is
distribute
d in the h
ope that i
t will be
useful, bu
t WITHOUT
ANY WARRAN
TY;
|
16 |
|
* without
even the i
mplied war
ranty of
MERCHANTAB
ILITY or F
ITNESS FOR
A PARTICU
LAR PURPOS
E.
|
|
16 |
|
* without
even the i
mplied war
ranty of
MERCHANTAB
ILITY or F
ITNESS FOR
A PARTICU
LAR PURPOS
E.
|
17 |
|
* See the
GNU Genera
l Public L
icense for
more deta
ils.
|
|
17 |
|
* See the
GNU Genera
l Public L
icense for
more deta
ils.
|
18 |
|
* You shou
ld have re
ceived a c
opy of the
GNU Gener
al Public
License al
ong with O
rca,
|
|
18 |
|
* You shou
ld have re
ceived a c
opy of the
GNU Gener
al Public
License al
ong with O
rca,
|
19 |
|
* see lice
nse.txt fi
le; if not
, write to
marketing
@boonex.co
m
|
|
19 |
|
* see lice
nse.txt fi
le; if not
, write to
marketing
@boonex.co
m
|
20 |
|
*
|
|
20 |
|
*
|
21 |
|
**********
**********
**********
**********
**********
**********
**********
*****/
|
|
21 |
|
**********
**********
**********
**********
**********
**********
**********
*****/
|
22 |
|
|
|
22 |
|
|
23 |
|
$gConf['ve
r']
=
'Orca-v.2.
0.
1
';
|
|
23 |
|
$gConf['ve
r']
=
'Orca-v.2.
0.
2
';
|
24 |
|
$gConf['de
f_title']
= 'Orca ::
Interacti
ve Forum S
cript';
|
|
24 |
|
$gConf['de
f_title']
= 'Orca ::
Interacti
ve Forum S
cript';
|
25 |
|
$path = ''
; // path
to orca fi
les
|
|
25 |
|
$path = ''
; // path
to orca fi
les
|
26 |
|
|
|
26 |
|
|
27 |
|
|
|
27 |
|
|
28 |
|
/**
|
|
28 |
|
/**
|
29 |
|
* forum t
weaks
|
|
29 |
|
* forum t
weaks
|
30 |
|
*/
|
|
30 |
|
*/
|
31 |
|
$gConf['da
te_format'
] = '%b %d
, %Y %H:%i
'; // time
/date form
at
|
|
31 |
|
$gConf['da
te_format'
] = '%b %d
, %Y %H:%i
'; // time
/date form
at
|
32 |
|
$gConf['to
pics_per_p
age'] = 20
; // topic
s per page
|
|
32 |
|
$gConf['to
pics_per_p
age'] = 20
; // topic
s per page
|
33 |
|
$gConf['to
pics_desc_
len'] = 64
;
|
|
33 |
|
$gConf['to
pics_desc_
len'] = 64
;
|
34 |
|
$gConf['li
ve_tracker
_desc_len'
] = 128;
|
|
34 |
|
$gConf['li
ve_tracker
_desc_len'
] = 128;
|
35 |
|
|
|
35 |
|
|
36 |
|
$gConf['em
ail']['sen
der'] = ''
; // email
sender
|
|
36 |
|
$gConf['em
ail']['sen
der'] = ''
; // email
sender
|
37 |
|
|
|
37 |
|
|
38 |
|
$gConf['us
er']['admi
n'] = 'adm
in'; // ad
min user
|
|
38 |
|
$gConf['us
er']['admi
n'] = 'adm
in'; // ad
min user
|
39 |
|
|
|
39 |
|
|
40 |
|
$gConf['mi
n_point']
= -4; // m
in points
to hide po
st automat
ically
|
|
40 |
|
$gConf['mi
n_point']
= -4; // m
in points
to hide po
st automat
ically
|
41 |
|
|
|
41 |
|
|
42 |
|
$gConf['on
line'] = 7
2000; // o
nline user
timeout (
seconds) d
efault: 20
min
|
|
42 |
|
$gConf['on
line'] = 7
2000; // o
nline user
timeout (
seconds) d
efault: 20
min
|
43 |
|
|
|
43 |
|
|
44 |
|
$gConf['in
tegration'
] = 'file'
; // url -
read inte
gration se
tting from
url, file
- read in
tegration
settings f
rom file
|
|
44 |
|
$gConf['in
tegration'
] = 'file'
; // url -
read inte
gration se
tting from
url, file
- read in
tegration
settings f
rom file
|
45 |
|
|
|
45 |
|
|
46 |
|
$xsl_mode
= isset($_
GET['xsl_m
ode']) &&
$_GET['xsl
_mode'] ?
$_GET['xsl
_mode'] :
(isset($_C
OOKIE['xsl
_mode']) ?
$_COOKIE[
'xsl_mode'
] : '');
|
|
46 |
|
$xsl_mode
= isset($_
GET['xsl_m
ode']) &&
$_GET['xsl
_mode'] ?
$_GET['xsl
_mode'] :
(isset($_C
OOKIE['xsl
_mode']) ?
$_COOKIE[
'xsl_mode'
] : '');
|
47 |
|
if (preg_m
atch("/^\w
+$/",$xsl_
mode))
|
|
47 |
|
if (preg_m
atch("/^\w
+$/",$xsl_
mode))
|
48 |
|
{
|
|
48 |
|
{
|
49 |
|
$g
Conf['xsl_
mode'] = $
xsl_mode;
|
|
49 |
|
$g
Conf['xsl_
mode'] = $
xsl_mode;
|
50 |
|
se
tcookie ('
xsl_mode',
$xsl_mode
);
|
|
50 |
|
se
tcookie ('
xsl_mode',
$xsl_mode
);
|
51 |
|
}
|
|
51 |
|
}
|
52 |
|
else
|
|
52 |
|
else
|
53 |
|
{
|
|
53 |
|
{
|
54 |
|
$g
Conf['xsl_
mode'] = '
auto'; //
client, se
rver
|
|
54 |
|
$g
Conf['xsl_
mode'] = '
auto'; //
client, se
rver
|
55 |
|
}
|
|
55 |
|
}
|
56 |
|
|
|
56 |
|
|
57 |
|
// mod rew
rite confi
guration,
also make
changes in
layout/ba
se/xsl/rew
rite.xsl,
js/BxHisto
ry.js and
.htaccess
|
|
57 |
|
// mod rew
rite confi
guration,
also make
changes in
layout/ba
se/xsl/rew
rite.xsl,
js/BxHisto
ry.js and
.htaccess
|
58 |
|
$gConf['re
write']['c
at'] = 'gr
oup/%s.htm
';
|
|
58 |
|
$gConf['re
write']['c
at'] = 'gr
oup/%s.htm
';
|
59 |
|
$gConf['re
write']['f
orum'] = '
forum/%s-%
d.htm';
|
|
59 |
|
$gConf['re
write']['f
orum'] = '
forum/%s-%
d.htm';
|
60 |
|
$gConf['re
write']['t
opic'] = '
topic/%s.h
tm';
|
|
60 |
|
$gConf['re
write']['t
opic'] = '
topic/%s.h
tm';
|
61 |
|
$gConf['re
write']['u
ser'] = 'u
ser/%s.htm
';
|
|
61 |
|
$gConf['re
write']['u
ser'] = 'u
ser/%s.htm
';
|
62 |
|
$gConf['re
write']['r
ss_forum']
= 'rss/fo
rum/%s.htm
';
|
|
62 |
|
$gConf['re
write']['r
ss_forum']
= 'rss/fo
rum/%s.htm
';
|
63 |
|
$gConf['re
write']['r
ss_topic']
= 'rss/to
pic/%s.htm
';
|
|
63 |
|
$gConf['re
write']['r
ss_topic']
= 'rss/to
pic/%s.htm
';
|
64 |
|
$gConf['re
write']['r
ss_user']
= 'rss/use
r/%s.htm';
|
|
64 |
|
$gConf['re
write']['r
ss_user']
= 'rss/use
r/%s.htm';
|
65 |
|
$gConf['re
write']['r
ss_all'] =
'rss/all.
htm';
|
|
65 |
|
$gConf['re
write']['r
ss_all'] =
'rss/all.
htm';
|
66 |
|
|
|
66 |
|
|
67 |
|
require_on
ce ('./xml
/config.ph
p');
|
|
67 |
|
require_on
ce ('./xml
/config.ph
p');
|
68 |
|
|
|
68 |
|
|
69 |
|
?>
|
|
69 |
|
?>
|