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 |
|
*
|
|
|
21 |
|
* AUTOMATI
CALLY GENE
RATED BY I
NSTALLATIO
N SCRIPT
|
|
|
22 |
|
*
|
20 |
|
**********
**********
**********
**********
**********
**********
**********
*****/
|
|
23 |
|
**********
**********
**********
**********
**********
**********
**********
*****/
|
21 |
|
|
|
24 |
|
|
22 |
|
|
|
25 |
|
|
23 |
|
$gConf['ve
r']
=
'Orca-v.
1.
2
b
6
';
|
|
26 |
|
$gConf['ve
r']
=
'Orca-v.
2
.0
b
2
';
|
24 |
|
$gConf['de
f_title']
= 'Orca ::
Interacti
ve Forum S
cript';
|
|
27 |
|
$gConf['de
f_title']
= 'Orca ::
Interacti
ve Forum S
cript';
|
25 |
|
|
|
|
26 |
|
/**
|
|
|
27 |
|
* directo
ries confi
guration
|
|
|
28 |
|
*/
|
|
|
29 |
|
$path = ''
; // path
to orca fi
les
|
|
28 |
|
$path = ''
; // path
to orca fi
les
|
30 |
|
$gConf['di
r']['error
_log'] = $
path .'log
/orca.erro
r.log'; //
error log
file path
|
|
|
31 |
|
$gConf['di
r']['class
es'] = $
path . 'cl
asses/'; /
/ classes
directiry
path
|
|
|
32 |
|
$gConf['di
r']['inc']
= $
path . 'in
c/'; //
include f
iles path
|
|
|
33 |
|
$gConf['di
r']['xmlca
che'] = $
path . 'xm
l/'; // no
t used
|
|
|
34 |
|
$gConf['di
r']['xml']
= $path .
'xml/'; /
/ path to
integratio
m director
y
|
|
|
35 |
|
$gConf['di
r']['base'
] = $path;
// base
dir
|
|
|
36 |
|
$gConf['di
r']['cache
'] = $path
. 'cachej
s/'; // js
files cac
he
|
|
|
37 |
|
$gConf['di
r']['confi
g'] = $pat
h . 'conf/
params.con
f'; // con
fig
|
|
|
38 |
|
|
|
29 |
|
|
39 |
|
/**
|
|
|
40 |
|
* urls co
nfiguratio
n
|
|
|
41 |
|
*/
|
|
|
42 |
|
$gConf['ur
l']['base'
] = ''; //
base url
|
|
|
43 |
|
$gConf['ur
l']['xml']
= $gConf
['url']['b
ase'] . 'x
ml/orca.ph
p'; // xml
integrati
on file ur
l
|
|
|
44 |
|
|
|
|
45 |
|
/**
|
|
|
46 |
|
* skin co
nfiguratio
n
|
|
|
47 |
|
*/
|
|
|
48 |
|
$skin = is
set($_GET[
'skin']) &
& $_GET['s
kin'] ? $_
GET['skin'
] : (isset
($_COOKIE[
'skin']) ?
$_COOKIE[
'skin'] :
'');
|
|
|
49 |
|
if (preg_m
atch("/^\w
+$/",$skin
) && file_
exists($pa
th . 'layo
ut/' . $sk
in))
|
|
|
50 |
|
{
|
|
|
51 |
|
$gConf
['skin'] =
$skin;
|
|
|
52 |
|
setcoo
kie ('skin
', $skin);
|
|
|
53 |
|
}
|
|
|
54 |
|
else
|
|
|
55 |
|
{
|
|
|
56 |
|
$gConf
['skin'] =
'default'
;
|
|
|
57 |
|
}
|
|
|
58 |
|
|
|
|
59 |
|
$gConf['di
r']['xsl']
= $path
. 'layout
/' . $gCon
f['skin']
. '/xsl/';
// xsl d
ir
|
|
|
60 |
|
$gConf['di
r']['smile
'] = $path
. 'layout
/' . $gCon
f['skin']
. '/smiles
/'; // s
miles dir
|
|
|
61 |
|
|
|
|
62 |
|
$gConf['ur
l']['icon'
] = $gCon
f['url']['
base'] . '
layout/' .
$gConf['s
kin'] . '/
icons/';
// icons
url
|
|
|
63 |
|
$gConf['ur
l']['img']
= $gCon
f['url']['
base'] . '
layout/' .
$gConf['s
kin'] . '/
img/'; //
img url
|
|
|
64 |
|
$gConf['ur
l']['css']
= $gCon
f['url']['
base'] . '
layout/' .
$gConf['s
kin'] . '/
css/'; //
css url
|
|
|
65 |
|
$gConf['ur
l']['smile
'] = $gCon
f['url']['
base'] . '
layout/' .
$gConf['s
kin'] . '/
smiles/';
// smile
s url
|
|
|
66 |
|
$gConf['ur
l']['xsl']
= $gCon
f['url']['
base'] . '
layout/' .
$gConf['s
kin'] . '/
xsl/'; //
xsl url
|
|
|
67 |
|
|
|
|
68 |
|
|
|
|
69 |
|
/**
|
|
|
70 |
|
* databas
e configur
ation
|
|
|
71 |
|
*/
|
|
|
72 |
|
$gConf['db
']['host']
= 'localh
ost';
// hostnam
e
|
|
|
73 |
|
$gConf['db
']['db'] =
''; // da
tabase nam
e
|
|
|
74 |
|
$gConf['db
']['user']
= ''; //
database u
sername
|
|
|
75 |
|
$gConf['db
']['pwd']
= ''; // d
atabase pa
ssword
|
|
|
76 |
|
$gConf['db
']['port']
= '';
|
|
|
77 |
|
$gConf['db
']['sock']
= '';
|
|
|
78 |
|
$gConf['db
']['prefix
'] = 'pre_
'; // tabl
es names p
refix
|
|
|
79 |
|
|
|
30 |
|
|
80 |
|
/**
|
|
31 |
|
/**
|
81 |
|
* forum t
weaks
|
|
32 |
|
* forum t
weaks
|
82 |
|
*/
|
|
33 |
|
*/
|
83 |
|
$gConf['da
te_format'
] = '%
b %d, %Y %
H:%i'; //
time/date
format
|
|
34 |
|
$gConf['da
te_format'
] = '%b %d
, %Y %H:%i
'; // time
/date form
at
|
84 |
|
$gConf['to
pics_per_p
age'] = 20
; // topic
s per page
|
|
35 |
|
$gConf['to
pics_per_p
age'] = 20
; // topic
s per page
|
85 |
|
$gConf['to
pics_desc_
len'] = 64
;
|
|
36 |
|
$gConf['to
pics_desc_
len'] = 64
;
|
86 |
|
$gConf['li
ve_tracker
_desc_len'
] = 128;
|
|
37 |
|
$gConf['li
ve_tracker
_desc_len'
] = 128;
|
87 |
|
|
|
38 |
|
|
88 |
|
$gConf['em
ail']['sen
der']
=
'no
-reply
@
e
xample
.
com
';
//
email
sender
|
|
39 |
|
$gConf['em
ail']['sen
der']
=
'no
@
d
e
v
.
s
';
//
email
sender
|
89 |
|
|
|
40 |
|
|
90 |
|
$gConf['us
er']['admi
n'] = 'adm
in'; // ad
min user
|
|
41 |
|
$gConf['us
er']['admi
n'] = 'adm
in'; // ad
min user
|
91 |
|
|
|
42 |
|
|
92 |
|
$gConf['mi
n_point']
= -4
; // min p
oints to h
ide post a
utomatical
ly
|
|
43 |
|
$gConf['mi
n_point']
= -4; // m
in points
to hide po
st automat
ically
|
93 |
|
|
|
44 |
|
|
94 |
|
$gConf['on
line']
= 72
000; // on
line user
timeout (s
econds) de
fault: 20
min
|
|
45 |
|
$gConf['on
line'] = 7
2000; // o
nline user
timeout (
seconds) d
efault: 20
min
|
95 |
|
|
|
46 |
|
|
|
|
47 |
|
$gConf['in
tegration'
] = 'file'
; // url -
read inte
gration se
tting from
url, file
- read in
tegration
settings f
rom file
|
|
|
48 |
|
|
96 |
|
$xsl_mode
= isset($_
GET['xsl_m
ode']) &&
$_GET['xsl
_mode'] ?
$_GET['xsl
_mode'] :
(isset($_C
OOKIE['xsl
_mode']) ?
$_COOKIE[
'xsl_mode'
] : '');
|
|
49 |
|
$xsl_mode
= isset($_
GET['xsl_m
ode']) &&
$_GET['xsl
_mode'] ?
$_GET['xsl
_mode'] :
(isset($_C
OOKIE['xsl
_mode']) ?
$_COOKIE[
'xsl_mode'
] : '');
|
97 |
|
if (preg_m
atch("/^\w
+$/",$xsl_
mode))
|
|
50 |
|
if (preg_m
atch("/^\w
+$/",$xsl_
mode))
|
98 |
|
{
|
|
51 |
|
{
|
99 |
|
$g
Conf['xsl_
mode'] = $
xsl_mode;
|
|
52 |
|
$g
Conf['xsl_
mode'] = $
xsl_mode;
|
100 |
|
se
tcookie ('
xsl_mode',
$xsl_mode
);
|
|
53 |
|
se
tcookie ('
xsl_mode',
$xsl_mode
);
|
101 |
|
}
|
|
54 |
|
}
|
102 |
|
else
|
|
55 |
|
else
|
103 |
|
{
|
|
56 |
|
{
|
104 |
|
$g
Conf['xsl_
mode'] = '
auto'; //
client, se
rver
|
|
57 |
|
$g
Conf['xsl_
mode'] = '
auto'; //
client, se
rver
|
105 |
|
}
|
|
58 |
|
}
|
106 |
|
|
|
59 |
|
|
|
|
60 |
|
// mod rew
rite confi
guration,
also make
changes in
layout/ba
se/xsl/rew
rite.xsl a
nd js/BxHi
story.js a
nd .htacce
ss
|
|
|
61 |
|
$gConf['re
write']['c
at'] = 'gr
oup/%s.htm
';
|
|
|
62 |
|
$gConf['re
write']['f
orum'] = '
forum/%s-%
d.htm';
|
|
|
63 |
|
$gConf['re
write']['t
opic'] = '
topic/%s.h
tm';
|
|
|
64 |
|
$gConf['re
write']['u
ser'] = 'u
ser/%s.htm
';
|
|
|
65 |
|
$gConf['re
write']['r
ss_forum']
= 'rss/fo
rum/%s.htm
';
|
|
|
66 |
|
$gConf['re
write']['r
ss_topic']
= 'rss/to
pic/%s.htm
';
|
|
|
67 |
|
$gConf['re
write']['r
ss_user']
= 'rss/use
r/%s.htm';
|
|
|
68 |
|
$gConf['re
write']['r
ss_all'] =
'rss/all.
htm';
|
|
|
69 |
|
|
107 |
|
require_on
ce ('./xml
/config.ph
p');
|
|
70 |
|
require_on
ce ('./xml
/config.ph
p');
|
108 |
|
|
|
71 |
|
|
109 |
|
?>
|
|
72 |
|
?>
|