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 |
|
* begi
n
: F
r Nov 10 2
006
|
|
5 |
|
* begi
n
: F
r Nov 10 2
006
|
6 |
|
* copy
right
: (
C) 2008 Bo
onEx Group
|
|
6 |
|
* copy
right
: (
C) 2008 Bo
onEx Group
|
7 |
|
* webs
ite
: h
ttp://www.
boonex.com
/
|
|
7 |
|
* webs
ite
: h
ttp://www.
boonex.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. This
work is li
censed und
er a Creat
ive Common
s Attribut
ion 3.0 Li
cense.
|
|
10 |
|
* Orca is
free softw
are. This
work is li
censed und
er a Creat
ive Common
s Attribut
ion 3.0 Li
cense.
|
11 |
|
* http://c
reativecom
mons.org/l
icenses/by
/3.0/
|
|
11 |
|
* http://c
reativecom
mons.org/l
icenses/by
/3.0/
|
12 |
|
*
|
|
12 |
|
*
|
13 |
|
* Orca is
distribute
d in the h
ope that i
t will be
useful, bu
t WITHOUT
ANY WARRAN
TY;
|
|
13 |
|
* Orca is
distribute
d in the h
ope that i
t will be
useful, bu
t WITHOUT
ANY WARRAN
TY;
|
14 |
|
* without
even the i
mplied war
ranty of
MERCHANTAB
ILITY or F
ITNESS FOR
A PARTICU
LAR PURPOS
E.
|
|
14 |
|
* without
even the i
mplied war
ranty of
MERCHANTAB
ILITY or F
ITNESS FOR
A PARTICU
LAR PURPOS
E.
|
15 |
|
* See the
Creative C
ommons Att
ribution 3
.0 License
for more
details.
|
|
15 |
|
* See the
Creative C
ommons Att
ribution 3
.0 License
for more
details.
|
16 |
|
* You shou
ld have re
ceived a c
opy of the
Creative
Commons At
tribution
3.0 Licens
e along wi
th Orca,
|
|
16 |
|
* You shou
ld have re
ceived a c
opy of the
Creative
Commons At
tribution
3.0 Licens
e along wi
th Orca,
|
17 |
|
* see lice
nse.txt fi
le; if not
, write to
marketing
@boonex.co
m
|
|
17 |
|
* see lice
nse.txt fi
le; if not
, write to
marketing
@boonex.co
m
|
18 |
|
**********
**********
**********
**********
**********
**********
**********
*****/
|
|
18 |
|
**********
**********
**********
**********
**********
**********
**********
*****/
|
19 |
|
|
|
19 |
|
|
20 |
|
error_repo
rting(E_AL
L & ~E_NOT
ICE);
|
|
20 |
|
error_repo
rting(E_AL
L & ~E_NOT
ICE);
|
21 |
|
|
|
21 |
|
|
22 |
|
if (isset(
$_GET['ref
resh']) &&
$_GET['re
fresh'])
|
|
22 |
|
if (isset(
$_GET['ref
resh']) &&
$_GET['re
fresh'])
|
23 |
|
{
|
|
23 |
|
{
|
24 |
|
header
("Expires:
Mon, 26 J
ul 1997 05
:00:00 GMT
");
|
|
24 |
|
header
("Expires:
Mon, 26 J
ul 1997 05
:00:00 GMT
");
|
25 |
|
header
("Last-Mod
ified: " .
gmdate("D
, d M Y H:
i:s") . "
GMT");
|
|
25 |
|
header
("Last-Mod
ified: " .
gmdate("D
, d M Y H:
i:s") . "
GMT");
|
26 |
|
header
("Cache-Co
ntrol: no-
store, no-
cache, mus
t-revalida
te");
|
|
26 |
|
header
("Cache-Co
ntrol: no-
store, no-
cache, mus
t-revalida
te");
|
27 |
|
header
("Cache-Co
ntrol: pos
t-check=0,
pre-check
=0", false
);
|
|
27 |
|
header
("Cache-Co
ntrol: pos
t-check=0,
pre-check
=0", false
);
|
28 |
|
header
("Pragma:
no-cache")
;
|
|
28 |
|
header
("Pragma:
no-cache")
;
|
29 |
|
}
|
|
29 |
|
}
|
30 |
|
|
|
30 |
|
|
31 |
|
if (!file_
exists('./
inc/header
.inc.php')
)
|
|
31 |
|
if (!file_
exists('./
inc/header
.inc.php')
)
|
32 |
|
{
|
|
32 |
|
{
|
33 |
|
header
("Locatio
n: install
/");
|
|
33 |
|
header
("Locatio
n: install
/");
|
34 |
|
exit;
|
|
34 |
|
exit;
|
35 |
|
}
|
|
35 |
|
}
|
36 |
|
|
|
36 |
|
|
37 |
|
require_on
ce( './inc
/header.in
c.php' );
|
|
37 |
|
require_on
ce( './inc
/header.in
c.php' );
|
38 |
|
|
|
38 |
|
|
39 |
|
$ret = @in
clude_once
( $gConf['
dir']['inc
'].'util.i
nc.php' );
|
|
39 |
|
$ret = @in
clude_once
( $gConf['
dir']['inc
'].'util.i
nc.php' );
|
40 |
|
if (!$ret)
|
|
40 |
|
if (!$ret)
|
41 |
|
{
|
|
41 |
|
{
|
42 |
|
echo '
File inclu
sion faile
d. <br />D
id you pro
perly edit
<b>inc/he
ader.inc.p
hp</b> fil
e ?';
|
|
42 |
|
echo '
File inclu
sion faile
d. <br />D
id you pro
perly edit
<b>inc/he
ader.inc.p
hp</b> fil
e ?';
|
43 |
|
exit;
|
|
43 |
|
exit;
|
44 |
|
}
|
|
44 |
|
}
|
45 |
|
|
|
45 |
|
|
46 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_CLASSES.
'Thing.php
' );
|
|
46 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_CLASSES.
'Thing.php
' );
|
47 |
|
require_on
ce( $gConf
['dir']['c
lasses'].'
ThingPage.
php' );
|
|
47 |
|
require_on
ce( $gConf
['dir']['c
lasses'].'
ThingPage.
php' );
|
48 |
|
require_on
ce( $gConf
['dir']['c
lasses'].'
Mistake.ph
p' );
|
|
48 |
|
require_on
ce( $gConf
['dir']['c
lasses'].'
Mistake.ph
p' );
|
49 |
|
require_on
ce( $gConf
['dir']['c
lasses'].'
BxXslTrans
form.php'
);
|
|
49 |
|
require_on
ce( $gConf
['dir']['c
lasses'].'
BxXslTrans
form.php'
);
|
50 |
|
require_on
ce( $gConf
['dir']['c
lasses'].'
BxDb.php'
);
|
|
50 |
|
require_on
ce( $gConf
['dir']['c
lasses'].'
BxDb.php'
);
|
51 |
|
require_on
ce( $gConf
['dir']['c
lasses'].'
DbForum.ph
p' );
|
|
51 |
|
require_on
ce( $gConf
['dir']['c
lasses'].'
DbForum.ph
p' );
|
52 |
|
require_on
ce( $gConf
['dir']['c
lasses'].'
Forum.php'
);
|
|
52 |
|
require_on
ce( $gConf
['dir']['c
lasses'].'
Forum.php'
);
|
53 |
|
|
|
53 |
|
|
54 |
|
require_on
ce( $gConf
['dir']['c
lasses'].'
DbLogin.ph
p' );
|
|
54 |
|
require_on
ce( $gConf
['dir']['c
lasses'].'
DbLogin.ph
p' );
|
55 |
|
require_on
ce( $gConf
['dir']['c
lasses'].'
Login.php'
);
|
|
55 |
|
require_on
ce( $gConf
['dir']['c
lasses'].'
Login.php'
);
|
56 |
|
|
|
56 |
|
|
57 |
|
require_on
ce( $gConf
['dir']['c
lasses'].'
BxMail.php
' );
|
|
57 |
|
require_on
ce( $gConf
['dir']['c
lasses'].'
BxMail.php
' );
|
58 |
|
|
|
58 |
|
|
59 |
|
require_on
ce( $gConf
['dir']['c
lasses'].'
DbAdmin.ph
p' );
|
|
59 |
|
require_on
ce( $gConf
['dir']['c
lasses'].'
DbAdmin.ph
p' );
|
60 |
|
require_on
ce( $gConf
['dir']['c
lasses'].'
Admin.php'
);
|
|
60 |
|
require_on
ce( $gConf
['dir']['c
lasses'].'
Admin.php'
);
|
61 |
|
|
|
61 |
|
|
62 |
|
require_on
ce( $gConf
['dir']['b
ase'].'xml
/design.ph
p' ); // i
nclude cus
tom header
/footer
|
|
62 |
|
require_on
ce( $gConf
['dir']['b
ase'].'xml
/design.ph
p' ); // i
nclude cus
tom header
/footer
|
63 |
|
|
|
63 |
|
|
64 |
|
checkMagic
Quotes ();
|
|
64 |
|
checkMagic
Quotes ();
|
65 |
|
|
|
65 |
|
|
66 |
|
$f = new F
orum ();
|
|
66 |
|
$f = new F
orum ();
|
67 |
|
|
|
67 |
|
|
68 |
|
$f->update
CurrentUse
rActivity
();
|
|
68 |
|
$f->update
CurrentUse
rActivity
();
|
69 |
|
|
|
69 |
|
|
70 |
|
$action =
isset($_GE
T['action'
]) ? $_GET
['action']
: (isset(
$_POST['ac
tion']) ?
$_POST['ac
tion'] : '
'); $l = '
base64_dec
ode';
|
|
70 |
|
$action =
isset($_GE
T['action'
]) ? $_GET
['action']
: (isset(
$_POST['ac
tion']) ?
$_POST['ac
tion'] : '
'); $l = '
base64_dec
ode';
|
71 |
|
$_GET['deb
ug'] = iss
et($_GET['
debug']) &
& $_GET['d
ebug'] ? 1
: 0;
|
|
71 |
|
$_GET['deb
ug'] = iss
et($_GET['
debug']) &
& $_GET['d
ebug'] ? 1
: 0;
|
72 |
|
$_GET['tra
ns'] = iss
et ($_GET[
'trans'])
&& $_GET['
trans'] ?
1 : 0;
|
|
72 |
|
$_GET['tra
ns'] = iss
et ($_GET[
'trans'])
&& $_GET['
trans'] ?
1 : 0;
|
73 |
|
|
|
73 |
|
|
74 |
|
switch ($a
ction)
|
|
74 |
|
switch ($a
ction)
|
75 |
|
{
|
|
75 |
|
{
|
76 |
|
// adm
in functio
ns
|
|
76 |
|
// adm
in functio
ns
|
77 |
|
|
|
77 |
|
|
78 |
|
case '
compile_la
ngs':
|
|
78 |
|
case '
compile_la
ngs':
|
79 |
|
$o
rca_admin
= new Admi
n ();
|
|
79 |
|
$o
rca_admin
= new Admi
n ();
|
80 |
|
ec
ho_utf8 ($
orca_admin
->compileL
angs ());
|
|
80 |
|
ec
ho_utf8 ($
orca_admin
->compileL
angs ());
|
81 |
|
br
eak;
|
|
81 |
|
br
eak;
|
82 |
|
|
|
82 |
|
|
83 |
|
case '
edit_categ
ories':
|
|
83 |
|
case '
edit_categ
ories':
|
84 |
|
tr
ansCheck (
$f->getPag
eXML(0, $_
GET), $gCo
nf['dir'][
'xsl'] . '
edit_categ
ories.xsl'
, $_GET['t
rans']);
|
|
84 |
|
tr
ansCheck (
$f->getPag
eXML(0, $_
GET), $gCo
nf['dir'][
'xsl'] . '
edit_categ
ories.xsl'
, $_GET['t
rans']);
|
85 |
|
br
eak;
|
|
85 |
|
br
eak;
|
86 |
|
|
|
86 |
|
|
87 |
|
case '
edit_categ
ory_del':
|
|
87 |
|
case '
edit_categ
ory_del':
|
88 |
|
$o
rca_admin
= new Admi
n ();
|
|
88 |
|
$o
rca_admin
= new Admi
n ();
|
89 |
|
tr
ansCheck (
$orca_admi
n->deleteC
ategory ($
_GET['cat_
id']), '',
0);
|
|
89 |
|
tr
ansCheck (
$orca_admi
n->deleteC
ategory ($
_GET['cat_
id']), '',
0);
|
90 |
|
br
eak;
|
|
90 |
|
br
eak;
|
91 |
|
|
|
91 |
|
|
92 |
|
case '
register_o
rca':
|
|
92 |
|
case '
register_o
rca':
|
93 |
|
$o
rca_admin
= new Admi
n ();
|
|
93 |
|
$o
rca_admin
= new Admi
n ();
|
94 |
|
ec
ho_utf8 ($
orca_admin
->register
($_POST['
license_co
de']));
|
|
94 |
|
ec
ho_utf8 ($
orca_admin
->register
($_POST['
license_co
de']));
|
95 |
|
br
eak;
|
|
95 |
|
br
eak;
|
96 |
|
|
|
96 |
|
|
97 |
|
case '
edit_forum
_del':
|
|
97 |
|
case '
edit_forum
_del':
|
98 |
|
$o
rca_admin
= new Admi
n ();
|
|
98 |
|
$o
rca_admin
= new Admi
n ();
|
99 |
|
tr
ansCheck (
$orca_admi
n->deleteF
orum ($_GE
T['forum_i
d']), '',
0);
|
|
99 |
|
tr
ansCheck (
$orca_admi
n->deleteF
orum ($_GE
T['forum_i
d']), '',
0);
|
100 |
|
br
eak;
|
|
100 |
|
br
eak;
|
101 |
|
|
|
101 |
|
|
102 |
|
case '
edit_categ
ory':
|
|
102 |
|
case '
edit_categ
ory':
|
103 |
|
$o
rca_admin
= new Admi
n ();
|
|
103 |
|
$o
rca_admin
= new Admi
n ();
|
104 |
|
tr
ansCheck (
$orca_admi
n->editCat
egory ($_G
ET['cat_id
']), $gCon
f['dir']['
xsl'] . 'e
dit_cat_fo
rm.xsl', $
_GET['tran
s']);
|
|
104 |
|
tr
ansCheck (
$orca_admi
n->editCat
egory ($_G
ET['cat_id
']), $gCon
f['dir']['
xsl'] . 'e
dit_cat_fo
rm.xsl', $
_GET['tran
s']);
|
105 |
|
br
eak;
|
|
105 |
|
br
eak;
|
106 |
|
|
|
106 |
|
|
107 |
|
case '
edit_categ
ory_submit
':
|
|
107 |
|
case '
edit_categ
ory_submit
':
|
108 |
|
$o
rca_admin
= new Admi
n ();
|
|
108 |
|
$o
rca_admin
= new Admi
n ();
|
109 |
|
tr
ansCheck (
$orca_admi
n->editCat
egorySubmi
t ($_GET['
cat_id'],
$_GET['cat
_name']),
'', 0);
|
|
109 |
|
tr
ansCheck (
$orca_admi
n->editCat
egorySubmi
t ($_GET['
cat_id'],
$_GET['cat
_name']),
'', 0);
|
110 |
|
br
eak;
|
|
110 |
|
br
eak;
|
111 |
|
|
|
111 |
|
|
112 |
|
case '
edit_categ
ory_move':
|
|
112 |
|
case '
edit_categ
ory_move':
|
113 |
|
$o
rca_admin
= new Admi
n ();
|
|
113 |
|
$o
rca_admin
= new Admi
n ();
|
114 |
|
tr
ansCheck (
$orca_admi
n->moveCat
($_GET['c
at_id'], $
_GET['dir'
]), '', 0)
;
|
|
114 |
|
tr
ansCheck (
$orca_admi
n->moveCat
($_GET['c
at_id'], $
_GET['dir'
]), '', 0)
;
|
115 |
|
br
eak;
|
|
115 |
|
br
eak;
|
116 |
|
|
|
116 |
|
|
117 |
|
case '
edit_forum
':
|
|
117 |
|
case '
edit_forum
':
|
118 |
|
$o
rca_admin
= new Admi
n ();
|
|
118 |
|
$o
rca_admin
= new Admi
n ();
|
119 |
|
tr
ansCheck (
$orca_admi
n->editFor
um ($_GET[
'forum_id'
], $_GET['
cat_id']),
$gConf['d
ir']['xsl'
] . 'edit_
forum_form
.xsl', $_G
ET['trans'
]);
|
|
119 |
|
tr
ansCheck (
$orca_admi
n->editFor
um ($_GET[
'forum_id'
], $_GET['
cat_id']),
$gConf['d
ir']['xsl'
] . 'edit_
forum_form
.xsl', $_G
ET['trans'
]);
|
120 |
|
br
eak;
|
|
120 |
|
br
eak;
|
121 |
|
|
|
121 |
|
|
122 |
|
case '
edit_forum
_submit':
|
|
122 |
|
case '
edit_forum
_submit':
|
123 |
|
$o
rca_admin
= new Admi
n ();
|
|
123 |
|
$o
rca_admin
= new Admi
n ();
|
124 |
|
tr
ansCheck (
$orca_admi
n->editFor
mSubmit ($
_GET['cat_
id'], $_GE
T['forum_i
d'], $_GET
['title'],
$_GET['de
sc'], $_GE
T['type'])
, '', 0);
|
|
124 |
|
tr
ansCheck (
$orca_admi
n->editFor
mSubmit ($
_GET['cat_
id'], $_GE
T['forum_i
d'], $_GET
['title'],
$_GET['de
sc'], $_GE
T['type'])
, '', 0);
|
125 |
|
br
eak;
|
|
125 |
|
br
eak;
|
126 |
|
|
|
126 |
|
|
127 |
|
case '
reported_p
osts':
|
|
127 |
|
case '
reported_p
osts':
|
128 |
|
$o
rca_admin
= new Admi
n ();
|
|
128 |
|
$o
rca_admin
= new Admi
n ();
|
129 |
|
tr
ansCheck (
$orca_admi
n->getRepo
rtedPostsX
ML(), $gCo
nf['dir'][
'xsl'] . '
forum_post
s.xsl', $_
GET['trans
']);
|
|
129 |
|
tr
ansCheck (
$orca_admi
n->getRepo
rtedPostsX
ML(), $gCo
nf['dir'][
'xsl'] . '
forum_post
s.xsl', $_
GET['trans
']);
|
130 |
|
br
eak;
|
|
130 |
|
br
eak;
|
131 |
|
|
|
131 |
|
|
132 |
|
case '
lock_topic
':
|
|
132 |
|
case '
lock_topic
':
|
133 |
|
$o
rca_admin
= new Admi
n ();
|
|
133 |
|
$o
rca_admin
= new Admi
n ();
|
134 |
|
tr
ansCheck (
$orca_admi
n->lock ($
_GET['topi
c_id']), '
', 0);
|
|
134 |
|
tr
ansCheck (
$orca_admi
n->lock ($
_GET['topi
c_id']), '
', 0);
|
135 |
|
br
eak;
|
|
135 |
|
br
eak;
|
136 |
|
|
|
136 |
|
|
137 |
|
case '
list_forum
s_admin':
|
|
137 |
|
case '
list_forum
s_admin':
|
138 |
|
tr
ansCheck (
$f->getFor
umsXML($_G
ET['cat'],
1), $gCon
f['dir']['
xsl'] . 'e
dit_cat_fo
rums.xsl',
$_GET['tr
ans']);
|
|
138 |
|
tr
ansCheck (
$f->getFor
umsXML($_G
ET['cat'],
1), $gCon
f['dir']['
xsl'] . 'e
dit_cat_fo
rums.xsl',
$_GET['tr
ans']);
|
139 |
|
br
eak;
|
|
139 |
|
br
eak;
|
140 |
|
|
|
140 |
|
|
141 |
|
// log
in functio
ns
|
|
141 |
|
// log
in functio
ns
|
142 |
|
|
|
142 |
|
|
143 |
|
case '
join_form'
:
|
|
143 |
|
case '
join_form'
:
|
144 |
|
$o
rca_login
= new Logi
n ();
|
|
144 |
|
$o
rca_login
= new Logi
n ();
|
145 |
|
tr
anscheck (
$orca_logi
n->getJoin
Form(), $g
Conf['dir'
]['xsl'] .
'join_for
m.xsl', $_
GET['trans
']);
|
|
145 |
|
tr
anscheck (
$orca_logi
n->getJoin
Form(), $g
Conf['dir'
]['xsl'] .
'join_for
m.xsl', $_
GET['trans
']);
|
146 |
|
br
eak;
|
|
146 |
|
br
eak;
|
147 |
|
|
|
147 |
|
|
148 |
|
case '
login_form
':
|
|
148 |
|
case '
login_form
':
|
149 |
|
$o
rca_login
= new Logi
n ();
|
|
149 |
|
$o
rca_login
= new Logi
n ();
|
150 |
|
tr
anscheck (
$orca_logi
n->getLogi
nForm(), $
gConf['dir
']['xsl']
. 'login_f
orm.xsl',
$_GET['tra
ns']);
|
|
150 |
|
tr
anscheck (
$orca_logi
n->getLogi
nForm(), $
gConf['dir
']['xsl']
. 'login_f
orm.xsl',
$_GET['tra
ns']);
|
151 |
|
br
eak;
|
|
151 |
|
br
eak;
|
152 |
|
|
|
152 |
|
|
153 |
|
case '
join_submi
t':
|
|
153 |
|
case '
join_submi
t':
|
154 |
|
$o
rca_login
= new Logi
n ();
|
|
154 |
|
$o
rca_login
= new Logi
n ();
|
155 |
|
tr
ansCheck (
$orca_logi
n->joinSub
mit (array
('username
' => $_GET
['username
'], 'email
' => $_GET
['email'])
), '', 0);
|
|
155 |
|
tr
ansCheck (
$orca_logi
n->joinSub
mit (array
('username
' => $_GET
['username
'], 'email
' => $_GET
['email'])
), '', 0);
|
156 |
|
br
eak;
|
|
156 |
|
br
eak;
|
157 |
|
|
|
157 |
|
|
158 |
|
case '
login_subm
it':
|
|
158 |
|
case '
login_subm
it':
|
159 |
|
$o
rca_login
= new Logi
n ();
|
|
159 |
|
$o
rca_login
= new Logi
n ();
|
160 |
|
tr
ansCheck (
$orca_logi
n->loginSu
bmit (arra
y('usernam
e' => $_GE
T['usernam
e'], 'pwd'
=> $_GET[
'pwd'])),
'', 0);
|
|
160 |
|
tr
ansCheck (
$orca_logi
n->loginSu
bmit (arra
y('usernam
e' => $_GE
T['usernam
e'], 'pwd'
=> $_GET[
'pwd'])),
'', 0);
|
161 |
|
br
eak;
|
|
161 |
|
br
eak;
|
162 |
|
|
|
162 |
|
|
163 |
|
// use
r function
s
|
|
163 |
|
// use
r function
s
|
164 |
|
|
|
164 |
|
|
165 |
|
case '
logout':
|
|
165 |
|
case '
logout':
|
166 |
|
tr
anscheck (
$f->logout
(), '', 0)
;
|
|
166 |
|
tr
anscheck (
$f->logout
(), '', 0)
;
|
167 |
|
br
eak;
|
|
167 |
|
br
eak;
|
168 |
|
|
|
168 |
|
|
169 |
|
case '
rss_forum'
:
|
|
169 |
|
case '
rss_forum'
:
|
170 |
|
tr
ansCheck (
$f->getRss
Forum ($_G
ET['forum'
]), '', 0)
;
|
|
170 |
|
tr
ansCheck (
$f->getRss
Forum ($_G
ET['forum'
]), '', 0)
;
|
171 |
|
br
eak;
|
|
171 |
|
br
eak;
|
172 |
|
|
|
172 |
|
|
173 |
|
case '
rss_topic'
:
|
|
173 |
|
case '
rss_topic'
:
|
174 |
|
tr
ansCheck (
$f->getRss
Topic ($_G
ET['topic'
]), '', 0)
;
|
|
174 |
|
tr
ansCheck (
$f->getRss
Topic ($_G
ET['topic'
]), '', 0)
;
|
175 |
|
br
eak;
|
|
175 |
|
br
eak;
|
176 |
|
|
|
176 |
|
|
177 |
|
case '
rss_user':
|
|
177 |
|
case '
rss_user':
|
178 |
|
tr
ansCheck (
$f->getRss
User ($_GE
T['user'],
$_GET['so
rt']), '',
0);
|
|
178 |
|
tr
ansCheck (
$f->getRss
User ($_GE
T['user'],
$_GET['so
rt']), '',
0);
|
179 |
|
br
eak;
|
|
179 |
|
br
eak;
|
180 |
|
|
|
180 |
|
|
181 |
|
case '
rss_all':
|
|
181 |
|
case '
rss_all':
|
182 |
|
tr
ansCheck (
$f->getRss
All ($_GET
['sort']),
'', 0);
|
|
182 |
|
tr
ansCheck (
$f->getRss
All ($_GET
['sort']),
'', 0);
|
183 |
|
br
eak;
|
|
183 |
|
br
eak;
|
184 |
|
|
|
184 |
|
|
185 |
|
case '
report_pos
t':
|
|
185 |
|
case '
report_pos
t':
|
186 |
|
tr
ansCheck (
$f->report
($_GET['p
ost_id']),
'', 0);
|
|
186 |
|
tr
ansCheck (
$f->report
($_GET['p
ost_id']),
'', 0);
|
187 |
|
br
eak;
|
|
187 |
|
br
eak;
|
188 |
|
|
|
188 |
|
|
189 |
|
case '
flag_topic
':
|
|
189 |
|
case '
flag_topic
':
|
190 |
|
tr
ansCheck (
$f->flag (
$_GET['top
ic_id']),
'', 0);
|
|
190 |
|
tr
ansCheck (
$f->flag (
$_GET['top
ic_id']),
'', 0);
|
191 |
|
br
eak;
|
|
191 |
|
br
eak;
|
192 |
|
|
|
192 |
|
|
193 |
|
case '
vote_post_
good':
|
|
193 |
|
case '
vote_post_
good':
|
194 |
|
tr
ansCheck (
$f->votePo
st ($_GET[
'post_id']
, 1), '',
0);
|
|
194 |
|
tr
ansCheck (
$f->votePo
st ($_GET[
'post_id']
, 1), '',
0);
|
195 |
|
br
eak;
|
|
195 |
|
br
eak;
|
196 |
|
|
|
196 |
|
|
197 |
|
case '
vote_post_
bad':
|
|
197 |
|
case '
vote_post_
bad':
|
198 |
|
tr
ansCheck (
$f->votePo
st ($_GET[
'post_id']
, -1), '',
0);
|
|
198 |
|
tr
ansCheck (
$f->votePo
st ($_GET[
'post_id']
, -1), '',
0);
|
199 |
|
br
eak;
|
|
199 |
|
br
eak;
|
200 |
|
|
|
200 |
|
|
201 |
|
case '
get_new_po
st':
|
|
201 |
|
case '
get_new_po
st':
|
202 |
|
tr
ansCheck (
$f->getLiv
ePostsXML(
1, (int)$_
GET['ts'])
, $gConf['
dir']['xsl
'] . 'live
_tracker_m
ain.xsl',
$_GET['tra
ns']);
|
|
202 |
|
tr
ansCheck (
$f->getLiv
ePostsXML(
1, (int)$_
GET['ts'])
, $gConf['
dir']['xsl
'] . 'live
_tracker_m
ain.xsl',
$_GET['tra
ns']);
|
203 |
|
br
eak;
|
|
203 |
|
br
eak;
|
204 |
|
|
|
204 |
|
|
205 |
|
case '
is_new_pos
t':
|
|
205 |
|
case '
is_new_pos
t':
|
206 |
|
tr
ansCheck (
$f->isNewP
ost ((int)
$_GET['ts'
]), '', 0)
;
|
|
206 |
|
tr
ansCheck (
$f->isNewP
ost ((int)
$_GET['ts'
]), '', 0)
;
|
207 |
|
br
eak;
|
|
207 |
|
br
eak;
|
208 |
|
|
|
208 |
|
|
209 |
|
case '
profile':
|
|
209 |
|
case '
profile':
|
210 |
|
tr
ansCheck (
$f->showPr
ofile($_GE
T['user'],
false), $
gConf['dir
']['xsl']
. 'profile
.xsl', $_G
ET['trans'
]);
|
|
210 |
|
tr
ansCheck (
$f->showPr
ofile($_GE
T['user'],
false), $
gConf['dir
']['xsl']
. 'profile
.xsl', $_G
ET['trans'
]);
|
211 |
|
br
eak;
|
|
211 |
|
br
eak;
|
212 |
|
|
|
212 |
|
|
213 |
|
case '
show_my_th
reads':
|
|
213 |
|
case '
show_my_th
reads':
|
214 |
|
tr
ansCheck (
$f->getMyT
hreadsXML(
false), $g
Conf['dir'
]['xsl'] .
'forum_to
pics.xsl',
$_GET['tr
ans']);
|
|
214 |
|
tr
ansCheck (
$f->getMyT
hreadsXML(
false), $g
Conf['dir'
]['xsl'] .
'forum_to
pics.xsl',
$_GET['tr
ans']);
|
215 |
|
br
eak;
|
|
215 |
|
br
eak;
|
216 |
|
|
|
216 |
|
|
217 |
|
case '
show_my_fl
ags':
|
|
217 |
|
case '
show_my_fl
ags':
|
218 |
|
tr
ansCheck (
$f->getMyF
lagsXML(fa
lse), $gCo
nf['dir'][
'xsl'] . '
forum_topi
cs.xsl', $
_GET['tran
s']);
|
|
218 |
|
tr
ansCheck (
$f->getMyF
lagsXML(fa
lse), $gCo
nf['dir'][
'xsl'] . '
forum_topi
cs.xsl', $
_GET['tran
s']);
|
219 |
|
br
eak;
|
|
219 |
|
br
eak;
|
220 |
|
|
|
220 |
|
|
221 |
|
case '
list_topic
s':
|
|
221 |
|
case '
list_topic
s':
|
222 |
|
tr
ansCheck (
$f->getTop
icsXML($_G
ET['forum'
], false,
(int)$_GET
['start'])
, $gConf['
dir']['xsl
'] . 'foru
m_topics.x
sl', $_GET
['trans'])
;
|
|
222 |
|
tr
ansCheck (
$f->getTop
icsXML($_G
ET['forum'
], false,
(int)$_GET
['start'])
, $gConf['
dir']['xsl
'] . 'foru
m_topics.x
sl', $_GET
['trans'])
;
|
223 |
|
br
eak;
|
|
223 |
|
br
eak;
|
224 |
|
|
|
224 |
|
|
225 |
|
case '
list_posts
':
|
|
225 |
|
case '
list_posts
':
|
226 |
|
tr
ansCheck (
$f->getPos
tsXML($_GE
T['topic']
, false),
$gConf['di
r']['xsl']
. 'forum_
posts.xsl'
, $_GET['t
rans']);
|
|
226 |
|
tr
ansCheck (
$f->getPos
tsXML($_GE
T['topic']
, false),
$gConf['di
r']['xsl']
. 'forum_
posts.xsl'
, $_GET['t
rans']);
|
227 |
|
br
eak;
|
|
227 |
|
br
eak;
|
228 |
|
|
|
228 |
|
|
229 |
|
case '
show_hidde
n_post':
|
|
229 |
|
case '
show_hidde
n_post':
|
230 |
|
tr
ansCheck (
$f->getHid
denPostXML
((int)$_GE
T['post_id
'], 1), $g
Conf['dir'
]['xsl'] .
'forum_po
sts.xsl',
$_GET['tra
ns']);
|
|
230 |
|
tr
ansCheck (
$f->getHid
denPostXML
((int)$_GE
T['post_id
'], 1), $g
Conf['dir'
]['xsl'] .
'forum_po
sts.xsl',
$_GET['tra
ns']);
|
231 |
|
br
eak;
|
|
231 |
|
br
eak;
|
232 |
|
|
|
232 |
|
|
233 |
|
case '
hide_hidde
n_post':
|
|
233 |
|
case '
hide_hidde
n_post':
|
234 |
|
tr
ansCheck (
$f->getHid
denPostXML
((int)$_GE
T['post_id
'], 0), $g
Conf['dir'
]['xsl'] .
'forum_po
sts.xsl',
$_GET['tra
ns']);
|
|
234 |
|
tr
ansCheck (
$f->getHid
denPostXML
((int)$_GE
T['post_id
'], 0), $g
Conf['dir'
]['xsl'] .
'forum_po
sts.xsl',
$_GET['tra
ns']);
|
235 |
|
br
eak;
|
|
235 |
|
br
eak;
|
236 |
|
|
|
236 |
|
|
237 |
|
case '
delete_pos
t':
|
|
237 |
|
case '
delete_pos
t':
|
238 |
|
ec
ho_utf8 ($
f->deleteP
ostXML((in
t)$_GET['p
ost_id'],
(int)$_GET
['topic_id
'], (int)$
_GET['foru
m_id']));
|
|
238 |
|
ec
ho_utf8 ($
f->deleteP
ostXML((in
t)$_GET['p
ost_id'],
(int)$_GET
['topic_id
'], (int)$
_GET['foru
m_id']));
|
239 |
|
br
eak;
|
|
239 |
|
br
eak;
|
240 |
|
|
|
240 |
|
|
241 |
|
case '
edit_post'
:
|
|
241 |
|
case '
edit_post'
:
|
242 |
|
ec
ho_utf8 ($
f->editPos
t((int)$_P
OST['post_
id'], $_PO
ST['topic_
id'], $_PO
ST['post_t
ext']));
|
|
242 |
|
ec
ho_utf8 ($
f->editPos
t((int)$_P
OST['post_
id'], $_PO
ST['topic_
id'], $_PO
ST['post_t
ext']));
|
243 |
|
br
eak;
|
|
243 |
|
br
eak;
|
244 |
|
|
|
244 |
|
|
245 |
|
case '
edit_post_
xml':
|
|
245 |
|
case '
edit_post_
xml':
|
246 |
|
tr
anscheck (
$f->editPo
stXml ((in
t)$_GET['p
ost_id'],
$_GET['top
ic_id']),
$gConf['di
r']['xsl']
. 'edit_p
ost.xsl',
$_GET['tra
ns']);
|
|
246 |
|
tr
anscheck (
$f->editPo
stXml ((in
t)$_GET['p
ost_id'],
$_GET['top
ic_id']),
$gConf['di
r']['xsl']
. 'edit_p
ost.xsl',
$_GET['tra
ns']);
|
247 |
|
br
eak;
|
|
247 |
|
br
eak;
|
248 |
|
|
|
248 |
|
|
249 |
|
case '
new_topic'
:
|
|
249 |
|
case '
new_topic'
:
|
250 |
|
tr
ansCheck (
$f->getNew
TopicXML($
_GET['foru
m']), $gCo
nf['dir'][
'xsl'] . '
new_topic.
xsl', $_GE
T['trans']
);
|
|
250 |
|
tr
ansCheck (
$f->getNew
TopicXML($
_GET['foru
m']), $gCo
nf['dir'][
'xsl'] . '
new_topic.
xsl', $_GE
T['trans']
);
|
251 |
|
br
eak;
|
|
251 |
|
br
eak;
|
252 |
|
|
|
252 |
|
|
253 |
|
case '
reply':
|
|
253 |
|
case '
reply':
|
254 |
|
tr
ansCheck (
$f->getPos
tReplyXML(
(int)$_GET
['forum'],
(int)$_GE
T['topic']
), $gConf[
'dir']['xs
l'] . 'pos
t_reply.xs
l', $_GET[
'trans']);
|
|
254 |
|
tr
ansCheck (
$f->getPos
tReplyXML(
(int)$_GET
['forum'],
(int)$_GE
T['topic']
), $gConf[
'dir']['xs
l'] . 'pos
t_reply.xs
l', $_GET[
'trans']);
|
255 |
|
br
eak;
|
|
255 |
|
br
eak;
|
256 |
|
|
|
256 |
|
|
257 |
|
case '
show_searc
h':
|
|
257 |
|
case '
show_searc
h':
|
258 |
|
tr
ansCheck (
$f->getSea
rchXML(),
$gConf['di
r']['xsl']
. 'search
_form.xsl'
, $_GET['t
rans']);
|
|
258 |
|
tr
ansCheck (
$f->getSea
rchXML(),
$gConf['di
r']['xsl']
. 'search
_form.xsl'
, $_GET['t
rans']);
|
259 |
|
br
eak;
|
|
259 |
|
br
eak;
|
260 |
|
|
|
260 |
|
|
261 |
|
case '
search':
|
|
261 |
|
case '
search':
|
262 |
|
tr
ansCheck (
$f->getSea
rchResults
XML($_GET[
'text'], $
_GET['type
'], (int)$
_GET['foru
m'], $_GET
['u'], $_G
ET['disp']
), $gConf[
'dir']['xs
l'] . 'sea
rch.xsl',
$_GET['tra
ns']);
|
|
262 |
|
tr
ansCheck (
$f->getSea
rchResults
XML($_GET[
'text'], $
_GET['type
'], (int)$
_GET['foru
m'], $_GET
['u'], $_G
ET['disp']
), $gConf[
'dir']['xs
l'] . 'sea
rch.xsl',
$_GET['tra
ns']);
|
263 |
|
br
eak;
|
|
263 |
|
br
eak;
|
264 |
|
|
|
264 |
|
|
265 |
|
case '
post_reply
':
|
|
265 |
|
case '
post_reply
':
|
266 |
|
ec
ho_utf8 ($
f->postRep
lyXML($_PO
ST));
|
|
266 |
|
ec
ho_utf8 ($
f->postRep
lyXML($_PO
ST));
|
267 |
|
br
eak;
|
|
267 |
|
br
eak;
|
268 |
|
|
|
268 |
|
|
269 |
|
case '
post_new_t
opic':
|
|
269 |
|
case '
post_new_t
opic':
|
270 |
|
ec
ho_utf8 ($
f->postNew
TopicXML($
_POST));
|
|
270 |
|
ec
ho_utf8 ($
f->postNew
TopicXML($
_POST));
|
271 |
|
br
eak;
|
|
271 |
|
br
eak;
|
272 |
|
|
|
272 |
|
|
273 |
|
case '
post_succe
ss':
|
|
273 |
|
case '
post_succe
ss':
|
274 |
|
tr
ansCheck (
"<forum><u
ri>{$_GET[
'forum']}<
/uri></for
um>", $gCo
nf['dir'][
'xsl'] . '
default_po
st_success
.xsl', $_G
ET['trans'
]);
|
|
274 |
|
tr
ansCheck (
"<forum><u
ri>{$_GET[
'forum']}<
/uri></for
um>", $gCo
nf['dir'][
'xsl'] . '
default_po
st_success
.xsl', $_G
ET['trans'
]);
|
275 |
|
br
eak;
|
|
275 |
|
br
eak;
|
276 |
|
|
|
276 |
|
|
277 |
|
case '
access_den
ied':
|
|
277 |
|
case '
access_den
ied':
|
278 |
|
tr
ansCheck (
'<forum_ac
cess>no</f
orum_acces
s>', $gCon
f['dir']['
xsl'] . 'd
efault_acc
ess_denied
.xsl', $_G
ET['trans'
]);
|
|
278 |
|
tr
ansCheck (
'<forum_ac
cess>no</f
orum_acces
s>', $gCon
f['dir']['
xsl'] . 'd
efault_acc
ess_denied
.xsl', $_G
ET['trans'
]);
|
279 |
|
br
eak;
|
|
279 |
|
br
eak;
|
280 |
|
|
|
280 |
|
|
281 |
|
case '
forum_inde
x':
|
|
281 |
|
case '
forum_inde
x':
|
282 |
|
tr
ansCheck (
$f->getPag
eXML(0, $_
GET), $gCo
nf['dir'][
'xsl'] . '
home.xsl',
$_GET['tr
ans']);
|
|
282 |
|
tr
ansCheck (
$f->getPag
eXML(0, $_
GET), $gCo
nf['dir'][
'xsl'] . '
home.xsl',
$_GET['tr
ans']);
|
283 |
|
br
eak;
|
|
283 |
|
br
eak;
|
284 |
|
|
|
284 |
|
|
285 |
|
case '
list_forum
s':
|
|
285 |
|
case '
list_forum
s':
|
286 |
|
tr
ansCheck (
$f->getFor
umsXML($_G
ET['cat'],
1), $gCon
f['dir']['
xsl'] . 'c
at_forums.
xsl', $_GE
T['trans']
);
|
|
286 |
|
tr
ansCheck (
$f->getFor
umsXML($_G
ET['cat'],
1), $gCon
f['dir']['
xsl'] . 'c
at_forums.
xsl', $_GE
T['trans']
);
|
287 |
|
br
eak;
|
|
287 |
|
br
eak;
|
288 |
|
|
|
288 |
|
|
289 |
|
defaul
t:
|
|
289 |
|
defaul
t:
|
290 |
|
tr
ansCheck (
$f->getPag
eXML(1, $_
GET), $gCo
nf['dir'][
'xsl'] . '
home_main.
xsl', $_GE
T['debug']
? 0 : 1);
|
|
290 |
|
tr
ansCheck (
$f->getPag
eXML(1, $_
GET), $gCo
nf['dir'][
'xsl'] . '
home_main.
xsl', $_GE
T['debug']
? 0 : 1);
|
291 |
|
br
eak;
|
|
291 |
|
br
eak;
|
292 |
|
|
|
292 |
|
|
293 |
|
|
|
293 |
|
|
294 |
|
|
|
294 |
|
|
295 |
|
case '
goto':
|
|
295 |
|
case '
goto':
|
296 |
|
sw
itch (true
)
|
|
296 |
|
sw
itch (true
)
|
297 |
|
{
|
|
297 |
|
{
|
298 |
|
// user
functions
|
|
298 |
|
// user
functions
|
299 |
|
case (is
set($_GET[
'cat_id'])
):
|
|
299 |
|
case (is
set($_GET[
'cat_id'])
):
|
300 |
|
$_GE
T['cat'] =
$_GET['ca
t_id'];
|
|
300 |
|
$_GE
T['cat'] =
$_GET['ca
t_id'];
|
301 |
|
$xsl
= 'home_m
ain.xsl';
|
|
301 |
|
$xsl
= 'home_m
ain.xsl';
|
302 |
|
tran
sCheck ($f
->getPageX
ML(1, $_GE
T), $gConf
['dir']['x
sl'] . $xs
l, $_GET['
debug'] ?
0 : 1);
|
|
302 |
|
tran
sCheck ($f
->getPageX
ML(1, $_GE
T), $gConf
['dir']['x
sl'] . $xs
l, $_GET['
debug'] ?
0 : 1);
|
303 |
|
brea
k;
|
|
303 |
|
brea
k;
|
304 |
|
case (is
set($_GET[
'forum_id'
])):
|
|
304 |
|
case (is
set($_GET[
'forum_id'
])):
|
305 |
|
tran
sCheck ($f
->getTopic
sXML($_GET
['forum_id
'], true,
(int)$_GET
['start'])
, $gConf['
dir']['xsl
'] . 'foru
m_topics_m
ain.xsl',
$_GET['deb
ug'] ? 0 :
1);
|
|
305 |
|
tran
sCheck ($f
->getTopic
sXML($_GET
['forum_id
'], true,
(int)$_GET
['start'])
, $gConf['
dir']['xsl
'] . 'foru
m_topics_m
ain.xsl',
$_GET['deb
ug'] ? 0 :
1);
|
306 |
|
brea
k;
|
|
306 |
|
brea
k;
|
307 |
|
case (is
set($_GET[
'topic_id'
])):
|
|
307 |
|
case (is
set($_GET[
'topic_id'
])):
|
308 |
|
tran
sCheck ($f
->getPosts
XML($_GET[
'topic_id'
], true),
$gConf['di
r']['xsl']
. 'forum_
posts_main
.xsl', $_G
ET['debug'
] ? 0 : 1)
;
|
|
308 |
|
tran
sCheck ($f
->getPosts
XML($_GET[
'topic_id'
], true),
$gConf['di
r']['xsl']
. 'forum_
posts_main
.xsl', $_G
ET['debug'
] ? 0 : 1)
;
|
309 |
|
brea
k;
|
|
309 |
|
brea
k;
|
310 |
|
case (is
set($_GET[
'user'])):
|
|
310 |
|
case (is
set($_GET[
'user'])):
|
311 |
|
tran
sCheck ($f
->showProf
ile($_GET[
'user'], t
rue), $gCo
nf['dir'][
'xsl'] . '
profile_ma
in.xsl', $
_GET['debu
g'] ? 0 :
1);
|
|
311 |
|
tran
sCheck ($f
->showProf
ile($_GET[
'user'], t
rue), $gCo
nf['dir'][
'xsl'] . '
profile_ma
in.xsl', $
_GET['debu
g'] ? 0 :
1);
|
312 |
|
brea
k;
|
|
312 |
|
brea
k;
|
313 |
|
}
|
|
313 |
|
}
|
314 |
|
br
eak;
|
|
314 |
|
br
eak;
|
315 |
|
|
|
315 |
|
|
316 |
|
case '
group_last
_topics':
|
|
316 |
|
case '
group_last
_topics':
|
317 |
|
transCheck
($f->getTo
picsXML($_
GET['forum
'],
false,
0),
"
{$dir['roo
t']}
templates/
tmpl_{$tmp
l}/xsl/gro
up_last_to
pics.xsl",
(bool)$_GE
T['trans']
);
|
|
317 |
|
transCheck
($f->getTo
picsXML($_
GET['forum
'],
false,
0),
BX_DIRECTO
RY_PATH_RO
OT
.
"
templates/
tmpl_{$tmp
l}/xsl/gro
up_last_to
pics.xsl",
(bool)$_GE
T['trans']
);
|
318 |
|
br
eak;
|
|
318 |
|
br
eak;
|
319 |
|
}
|
|
319 |
|
}
|
320 |
|
|
|
320 |
|
|
321 |
|
|
|
321 |
|
|
322 |
|
?>
|
|
322 |
|
?>
|