No regular expressions were active.
1 |
|
<?
|
|
1 |
|
<?
|
2 |
|
|
|
2 |
|
|
3 |
|
/*********
**********
**********
**********
**********
**********
**********
******
|
|
3 |
|
/*********
**********
**********
**********
**********
**********
**********
******
|
4 |
|
*
D
olphin Sma
rt Communi
ty Builder
|
|
4 |
|
*
D
olphin Sma
rt Communi
ty Builder
|
5 |
|
*
---------
--------
|
|
5 |
|
*
---------
--------
|
6 |
|
* begi
n
: M
on Mar 23
2006
|
|
6 |
|
* begi
n
: M
on Mar 23
2006
|
7 |
|
* copy
right
: (
C) 2006 Bo
onEx Group
|
|
7 |
|
* copy
right
: (
C) 2006 Bo
onEx Group
|
8 |
|
* webs
ite
: h
ttp://www.
boonex.com
/
|
|
8 |
|
* webs
ite
: h
ttp://www.
boonex.com
/
|
9 |
|
* This fil
e is part
of Dolphin
- Smart C
ommunity B
uilder
|
|
9 |
|
* This fil
e is part
of Dolphin
- Smart C
ommunity B
uilder
|
10 |
|
*
|
|
10 |
|
*
|
11 |
|
* Dolphin
is free so
ftware. Th
is work is
licensed
under a Cr
eative Com
mons Attri
bution 3.0
License.
|
|
11 |
|
* Dolphin
is free so
ftware. Th
is work is
licensed
under a Cr
eative Com
mons Attri
bution 3.0
License.
|
12 |
|
* http://c
reativecom
mons.org/l
icenses/by
/3.0/
|
|
12 |
|
* http://c
reativecom
mons.org/l
icenses/by
/3.0/
|
13 |
|
*
|
|
13 |
|
*
|
14 |
|
* Dolphin
is distrib
uted in th
e hope tha
t it will
be useful,
but WITHO
UT ANY WAR
RANTY;
|
|
14 |
|
* Dolphin
is distrib
uted in th
e hope tha
t it will
be useful,
but WITHO
UT ANY WAR
RANTY;
|
15 |
|
* without
even the i
mplied war
ranty of
MERCHANTAB
ILITY or F
ITNESS FOR
A PARTICU
LAR PURPOS
E.
|
|
15 |
|
* without
even the i
mplied war
ranty of
MERCHANTAB
ILITY or F
ITNESS FOR
A PARTICU
LAR PURPOS
E.
|
16 |
|
* See the
Creative C
ommons Att
ribution 3
.0 License
for more
details.
|
|
16 |
|
* See the
Creative C
ommons Att
ribution 3
.0 License
for more
details.
|
17 |
|
* You shou
ld have re
ceived a c
opy of the
Creative
Commons At
tribution
3.0 Licens
e along wi
th Dolphin
,
|
|
17 |
|
* You shou
ld have re
ceived a c
opy of the
Creative
Commons At
tribution
3.0 Licens
e along wi
th Dolphin
,
|
18 |
|
* see lice
nse.txt fi
le; if not
, write to
marketing
@boonex.co
m
|
|
18 |
|
* see lice
nse.txt fi
le; if not
, write to
marketing
@boonex.co
m
|
19 |
|
**********
**********
**********
**********
**********
**********
**********
*****/
|
|
19 |
|
**********
**********
**********
**********
**********
**********
**********
*****/
|
20 |
|
|
|
20 |
|
|
21 |
|
require_on
ce( 'inc/h
eader.inc.
php' );
|
|
21 |
|
require_on
ce( 'inc/h
eader.inc.
php' );
|
22 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'd
esign.inc.
php' );
|
|
22 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'd
esign.inc.
php' );
|
23 |
|
|
|
23 |
|
|
24 |
|
// -------
-------- p
age variab
les and lo
gin
|
|
24 |
|
// -------
-------- p
age variab
les and lo
gin
|
25 |
|
|
|
25 |
|
|
26 |
|
$_page['na
me_index']
= 57;
|
|
26 |
|
$_page['na
me_index']
= 57;
|
27 |
|
$_page['cs
s_name']
= 'ray
_chat.css'
;
|
|
27 |
|
$_page['cs
s_name']
= 'ray
_chat.css'
;
|
28 |
|
|
|
28 |
|
|
29 |
|
$_page['he
ader'] = _
t( "_RAY_C
HAT" );
|
|
29 |
|
$_page['he
ader'] = _
t( "_RAY_C
HAT" );
|
30 |
|
$_page['he
ader_text'
] = _t( "_
RAY_CHAT",
$site['ti
tle'] );
|
|
30 |
|
$_page['he
ader_text'
] = _t( "_
RAY_CHAT",
$site['ti
tle'] );
|
31 |
|
|
|
31 |
|
|
32 |
|
$logged['m
ember'] =
member_aut
h( 0 );
|
|
32 |
|
$logged['m
ember'] =
member_aut
h( 0 );
|
33 |
|
|
|
33 |
|
|
34 |
|
// -------
-------- p
age compon
ents
|
|
34 |
|
// -------
-------- p
age compon
ents
|
35 |
|
|
|
35 |
|
|
36 |
|
$_ni = $_p
age['name_
index'];
|
|
36 |
|
$_ni = $_p
age['name_
index'];
|
37 |
|
$_page_con
t[$_ni]['p
age_main_c
ode'] = Pa
geCompMain
Code();
|
|
37 |
|
$_page_con
t[$_ni]['p
age_main_c
ode'] = Pa
geCompMain
Code();
|
38 |
|
|
|
38 |
|
|
39 |
|
// -------
-------- [
END] page
components
|
|
39 |
|
// -------
-------- [
END] page
components
|
40 |
|
|
|
40 |
|
|
41 |
|
PageCode()
;
|
|
41 |
|
PageCode()
;
|
42 |
|
|
|
42 |
|
|
43 |
|
// -------
-------- p
age compon
ents funct
ions
|
|
43 |
|
// -------
-------- p
age compon
ents funct
ions
|
44 |
|
|
|
44 |
|
|
45 |
|
/**
|
|
45 |
|
/**
|
46 |
|
* page co
de functio
n
|
|
46 |
|
* page co
de functio
n
|
47 |
|
*/
|
|
47 |
|
*/
|
48 |
|
function P
ageCompMai
nCode() {
|
|
48 |
|
function P
ageCompMai
nCode() {
|
49 |
|
global
$oTemplCo
nfig;
|
|
49 |
|
global
$oTemplCo
nfig;
|
50 |
|
global
$logged;
|
|
50 |
|
global
$logged;
|
51 |
|
|
|
51 |
|
|
52 |
|
$iId =
(int)$_CO
OKIE['memb
erID'];
|
|
52 |
|
$iId =
(int)$_CO
OKIE['memb
erID'];
|
53 |
|
if ($i
Id > 0) {
|
|
53 |
|
if ($i
Id > 0) {
|
54 |
|
$s
Password =
getPasswo
rd($iId);
|
|
54 |
|
$s
Password =
getPasswo
rd($iId);
|
55 |
|
$b
EnableRay
= (getPara
m( 'enable
_ray' ) ==
'on');
|
|
55 |
|
$b
EnableRay
= (getPara
m( 'enable
_ray' ) ==
'on');
|
56 |
|
$c
heck_res =
checkActi
on( $iId,
ACTION_ID_
USE_RAY_CH
AT );
|
|
56 |
|
$c
heck_res =
checkActi
on( $iId,
ACTION_ID_
USE_RAY_CH
AT );
|
57 |
|
|
|
57 |
|
|
58 |
|
if
($bEnableR
ay && $che
ck_res[CHE
CK_ACTION_
RESULT] ==
CHECK_ACT
ION_RESULT
_ALLOWED)
|
|
58 |
|
if
($bEnableR
ay && $che
ck_res[CHE
CK_ACTION_
RESULT] ==
CHECK_ACT
ION_RESULT
_ALLOWED)
|
59 |
|
{
|
|
59 |
|
$ret
.=
getApplica
tionConten
t('chat',
'user',
array('id'
=>
$iId,
'password'
=>
$sPassword
)
,
true
);
|
60 |
|
$ret
.=
getApplica
tionConten
t('chat',
'user',
array('id'
=>
$iId,
'password'
=>
$sPassword
)
);
|
|
|
61 |
|
}
|
|
|
62 |
|
el
se
|
|
60 |
|
el
se
|
63 |
|
// $
ret .= '
|
|
|
64 |
|
// <ce
nter>
|
|
|
65 |
|
// <tabl
e width=10
0% height=
100% cellp
adding=0 c
ellspacing
=0>
|
|
|
66 |
|
// <td ali
gn=center
valign=cen
ter>
|
|
|
67 |
|
//
<table wi
dth="90%"
height="70
" cellpadd
ing="5" ce
llspacing=
"1" class=
"table">
|
|
|
68 |
|
// <
tr>
|
|
|
69 |
|
// <td
class="pa
nel" width
="100%" al
ign="cente
r" valign=
"middle">
|
|
|
70 |
|
// <div
align="cen
ter" class
="small">'
. $check_
res[CHECK_
ACTION_MES
SAGE] . '<
/div>
|
|
|
71 |
|
// </t
d>
|
|
|
72 |
|
// <
/tr>
|
|
|
73 |
|
//
</table>
|
|
|
74 |
|
// </td>
|
|
|
75 |
|
// </tab
le>
|
|
|
76 |
|
// </c
enter>';
|
|
|
77 |
|
|
|
|
78 |
|
$r
et .= MsgB
ox($check_
res[CHECK_
ACTION_MES
SAGE]);
|
|
61 |
|
$ret .=
MsgBox($ch
eck_res[CH
ECK_ACTION
_MESSAGE])
;
|
|
|
62 |
|
|
79 |
|
re
turn Desig
nBoxConten
t( _t("_RA
Y_CHAT"),
$ret, $oTe
mplConfig
-> PageCom
pThird_db_
num );
|
|
63 |
|
re
turn Desig
nBoxConten
t( _t("_RA
Y_CHAT"),
$ret, $oTe
mplConfig
-> PageCom
pThird_db_
num );
|
80 |
|
} else
{
|
|
64 |
|
} else
{
|
81 |
|
re
turn Desig
nBoxConten
t(_t('_LOG
IN_ERROR')
, MsgBox(
_t('_Pleas
e login be
fore using
Ray chat'
)), 1 );
|
|
65 |
|
re
turn Desig
nBoxConten
t(_t('_LOG
IN_ERROR')
, MsgBox(
_t('_Pleas
e login be
fore using
Ray chat'
)), 1 );
|
82 |
|
}
|
|
66 |
|
}
|
83 |
|
}
|
|
67 |
|
}
|
84 |
|
?>
|
|
68 |
|
?>
|