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
: Mo
n Mar 23 2
006
|
|
5 |
|
* Star
ted
: Mo
n Mar 23 2
006
|
6 |
|
* Copy
right
: (C
) 2007 Boo
nEx Group
|
|
6 |
|
* Copy
right
: (C
) 2007 Boo
nEx 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 |
|
* GPL
|
|
9 |
|
* Creative
Commons A
ttribution
3.0 Licen
se
|
10 |
|
**/
|
|
10 |
|
**/
|
11 |
|
|
|
11 |
|
|
12 |
|
/**
|
|
12 |
|
/**
|
13 |
|
*
|
|
13 |
|
*
|
14 |
|
* Modify
call to or
ca.php url
here
|
|
14 |
|
* Modify
call to or
ca.php url
here
|
15 |
|
*
put
complete
url
to
$integrati
on_
ur
l
variable
|
|
15 |
|
*
put
complete
url
to
$integrati
on_
fi
l
e
variable
|
16 |
|
*
leave
$integrati
on_
ur
l
variable
emty
if
user
is
not
logged
in
|
|
16 |
|
*
leave
$integrati
on_
fi
l
e
variable
emty
if
user
is
not
logged
in
|
17 |
|
*********
**********
**********
**********
**********
**********
**********
**********
/
|
|
17 |
|
*********
**********
**********
**********
**********
**********
**********
**********
/
|
18 |
|
|
|
18 |
|
|
19 |
|
globa
l $gConf;
|
|
19 |
|
global
$gConf;
|
20 |
|
|
|
20 |
|
|
|
|
21 |
|
$add_t
o_url = ''
;
|
|
|
22 |
|
$add_t
o_array =
array();
|
|
|
23 |
|
|
21 |
|
if ($_
COOKIE['ad
minID'])
|
|
24 |
|
if ($_
COOKIE['ad
minID'])
|
|
|
25 |
|
{
|
22 |
|
$a
dd_to_url
= "&adminI
D=" . $_CO
OKIE['admi
nID'] . "&
adminPassw
ord=" . $_
COOKIE['ad
minPasswor
d'];
|
|
26 |
|
$a
dd_to_url
= "&adminI
D=" . $_CO
OKIE['admi
nID'] . "&
adminPassw
ord=" . $_
COOKIE['ad
minPasswor
d'];
|
|
|
27 |
|
$a
dd_to_arra
y = array
('adminID'
=> $_COOK
IE['adminI
D'], 'admi
nPassword'
=> $_COOK
IE['adminP
assword'])
;
|
|
|
28 |
|
}
|
23 |
|
else
|
|
29 |
|
else
|
24 |
|
if ($_
COOKIE['me
mberID'])
|
|
30 |
|
if ($_
COOKIE['me
mberID'])
|
|
|
31 |
|
{
|
25 |
|
$a
dd_to_url
= "&member
ID=" . $_C
OOKIE['mem
berID'] .
"&memberPa
ssword=" .
$_COOKIE[
'memberPas
sword'];
|
|
32 |
|
$a
dd_to_url
= "&member
ID=" . $_C
OOKIE['mem
berID'] .
"&memberPa
ssword=" .
$_COOKIE[
'memberPas
sword'];
|
|
|
33 |
|
$a
dd_to_arra
y = array
('memberID
' => $_COO
KIE['membe
rID'], 'me
mberPasswo
rd' => $_C
OOKIE['mem
berPasswor
d']);
|
|
|
34 |
|
}
|
26 |
|
|
|
35 |
|
|
27 |
|
switch
($action)
|
|
36 |
|
switch
($action)
|
28 |
|
{
|
|
37 |
|
{
|
29 |
|
case '
login_user
':
|
|
38 |
|
case '
login_user
':
|
30 |
|
$integrati
on_
ur
l
=
$gConf['
u
r
l
']['
xml']
.
"?act
i
o
n
=$
a
c
tion
"
.
$add_to_ur
l
;
|
|
39 |
|
|
|
|
40 |
|
if
(!empty($
add_to_url
) || !empt
y($add_to_
array))
|
|
|
41 |
|
{
|
|
|
42 |
|
if ('url
' == $gCon
f['integra
tion'])
|
|
|
43 |
|
{
|
|
|
44 |
|
$int
egration_f
ile = $gCo
nf['url'][
'integrati
on'] . '?a
ction=' .
$action .
$add_to_ur
l;
|
|
|
45 |
|
}
|
|
|
46 |
|
else
|
|
|
47 |
|
{
|
|
|
48 |
|
$integrati
on_
fi
l
e['file']
=
$gConf['
di
r
']['
i
n
tegr
a
tion
']
;
|
|
|
49 |
|
$int
egration_f
ile['vars'
] = array_
merge (arr
ay ('actio
n' => $act
ion), $add
_to_array)
;
|
|
|
50 |
|
}
|
|
|
51 |
|
}
|
31 |
|
br
eak;
|
|
52 |
|
br
eak;
|
32 |
|
case '
user_perm'
:
|
|
53 |
|
case '
user_perm'
:
|
33 |
|
$integrati
on_
url
=
$gCon
f
['
u
r
l
']
['x
m
l
'
]
.
"?
action
=
$action
&
forum_id
=
$forum_id
&user="
.
urlencode(
$user
)
.
$add_to_
u
r
l
;
|
|
54 |
|
if
('url' ==
$gConf['i
ntegration
'])
|
|
|
55 |
|
{
|
|
|
56 |
|
$integra
tion_file
= $gConf['
url']['int
egration']
. "?actio
n=$action&
forum_id=$
forum_id&u
ser=" . ur
lencode($u
ser) . $ad
d_to_url;
|
|
|
57 |
|
}
|
|
|
58 |
|
el
se
|
|
|
59 |
|
{
|
|
|
60 |
|
$integra
tion_file[
'file'] =
$gConf['di
r']['integ
ration'];
|
|
|
61 |
|
$integrati
on_
f
ile
['
va
r
s
']
=
array_
m
erge
(array
(
'
action
'
=
>
$action
,
'user'
=>
$user,
'
forum_id
'
=
>
$forum_id
)
,
$add_to_
a
r
ray)
;
|
|
|
62 |
|
}
|
34 |
|
br
eak;
|
|
63 |
|
br
eak;
|
35 |
|
defaul
t:
|
|
64 |
|
defaul
t:
|
36 |
|
$integrati
on_
ur
l
=
$gConf['
u
r
l
']['
xml']
.
"?act
i
o
n
=$ac
t
ion&user="
.
urlencode(
$us
e
r
)
.
$
a
dd_
t
o
_url
;
|
|
65 |
|
if
('url' ==
$gConf['i
ntegration
'])
|
|
|
66 |
|
{
|
|
|
67 |
|
$integra
tion_file
= $gConf['
url']['int
egration']
. '?actio
n=' . $act
ion . '&u
ser=' . ur
lencode($u
ser) . $ad
d_to_url;
|
|
|
68 |
|
}
|
|
|
69 |
|
el
se
|
|
|
70 |
|
{
|
|
|
71 |
|
$integrati
on_
file['fi
l
e']
=
$gConf['
di
r
']['
i
n
t
e
g
r
a
t
i
o
n']
;
|
|
|
72 |
|
$integra
tion_file[
'vars'] =
array_merg
e (array (
'action' =
> $action,
'user' =>
$user), $
add_to_arr
ay);
|
|
|
73 |
|
}
|
37 |
|
}
|
|
74 |
|
}
|
38 |
|
|
|
75 |
|
|
39 |
|
?>
|
|
76 |
|
?>
|