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 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'p
rofiles.in
c.php' );
|
|
23 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'p
rofiles.in
c.php' );
|
24 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'u
tils.inc.p
hp' );
|
|
24 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'u
tils.inc.p
hp' );
|
25 |
|
|
|
25 |
|
|
26 |
|
// -------
-------- p
age variab
les and lo
gin
|
|
26 |
|
// -------
-------- p
age variab
les and lo
gin
|
27 |
|
|
|
27 |
|
|
28 |
|
$_page['na
me_index']
= 45;
|
|
28 |
|
$_page['na
me_index']
= 45;
|
29 |
|
$_page['cs
s_name'] =
'compose.
css';
|
|
29 |
|
$_page['cs
s_name'] =
'compose.
css';
|
30 |
|
|
|
30 |
|
|
31 |
|
$logged['m
ember'] =
member_aut
h(0);
|
|
31 |
|
$logged['m
ember'] =
member_aut
h(0);
|
32 |
|
|
|
32 |
|
|
33 |
|
$_page['he
ader'] = '
Messages';
|
|
33 |
|
$_page['he
ader'] = '
Messages';
|
34 |
|
$_page['he
ader_text'
] = _t( "_
INBOX_H1"
);
|
|
34 |
|
$_page['he
ader_text'
] = _t( "_
INBOX_H1"
);
|
35 |
|
|
|
35 |
|
|
36 |
|
// this is
dynamic p
age - sen
d headers
to do not
cache this
page
|
|
36 |
|
// this is
dynamic p
age - sen
d headers
to do not
cache this
page
|
37 |
|
send_heade
rs_page_ch
anged();
|
|
37 |
|
send_heade
rs_page_ch
anged();
|
38 |
|
|
|
38 |
|
|
39 |
|
$preview_l
ength = 45
;
|
|
39 |
|
$preview_l
ength = 45
;
|
40 |
|
|
|
40 |
|
|
41 |
|
// -------
-------- p
age compon
ents
|
|
41 |
|
// -------
-------- p
age compon
ents
|
42 |
|
|
|
42 |
|
|
43 |
|
$_ni = $_p
age['name_
index'];
|
|
43 |
|
$_ni = $_p
age['name_
index'];
|
44 |
|
|
|
44 |
|
|
45 |
|
if( $_GET[
'action']
== 'delete
' )
|
|
45 |
|
if( $_GET[
'action']
== 'delete
' )
|
46 |
|
{
|
|
46 |
|
{
|
47 |
|
$mes_i
d = (int)$
_GET['mess
age'];
|
|
47 |
|
$mes_i
d = (int)$
_GET['mess
age'];
|
48 |
|
$delet
e_query =
"DELETE FR
OM `Messag
es` WHERE
`ID` = '$m
es_id'";
|
|
48 |
|
$delet
e_query =
"DELETE FR
OM `Messag
es` WHERE
`ID` = '$m
es_id'";
|
49 |
|
if(db_
res($delet
e_query))
|
|
49 |
|
if(db_
res($delet
e_query))
|
50 |
|
{
|
|
50 |
|
{
|
51 |
|
$_page_con
t[$_ni]['p
age_main_c
ode']
=
DesignBoxC
ontent(
'',
Page
Message
D
eleted
(
),
$oTemplCon
fig
->
PageMessag
esInboxMes
sageDelete
d_db_num
);
|
|
51 |
|
$_page_con
t[$_ni]['p
age_main_c
ode']
=
DesignBoxC
ontent(
'',
_t(
'_
Message
successful
ly
d
eleted
'
),
$oTemplCon
fig
->
PageMessag
esInboxMes
sageDelete
d_db_num
);
|
52 |
|
}
|
|
52 |
|
}
|
53 |
|
}
|
|
53 |
|
}
|
54 |
|
elseif($_G
ET['messag
e'] != 0)
|
|
54 |
|
elseif($_G
ET['messag
e'] != 0)
|
55 |
|
{
|
|
55 |
|
{
|
56 |
|
$_page
_cont[$_ni
]['page_ma
in_code']
= DesignBo
xContent(
'', PageCo
mpPageMain
Code(), $o
TemplConfi
g -> PageM
essagesInb
oxMainCode
_db_num );
|
|
56 |
|
$_page
_cont[$_ni
]['page_ma
in_code']
= DesignBo
xContent(
'', PageCo
mpPageMain
Code(), $o
TemplConfi
g -> PageM
essagesInb
oxMainCode
_db_num );
|
57 |
|
db_res
("UPDATE `
Messages`
SET `New`
= '0' WHER
E `ID` = '
" . (int)$
_GET['mess
age'] . "'
");
|
|
57 |
|
db_res
("UPDATE `
Messages`
SET `New`
= '0' WHER
E `ID` = '
" . (int)$
_GET['mess
age'] . "'
");
|
58 |
|
}
|
|
58 |
|
}
|
59 |
|
else
|
|
59 |
|
else
|
60 |
|
{
|
|
60 |
|
{
|
61 |
|
echo '
<script ty
pe="text/j
avascript"
>location.
href=\'mai
l.php?mode
=inbox\';<
/script>';
|
|
61 |
|
echo '
<script ty
pe="text/j
avascript"
>location.
href=\'mai
l.php?mode
=inbox\';<
/script>';
|
62 |
|
}
|
|
62 |
|
}
|
63 |
|
|
|
63 |
|
|
64 |
|
// -------
-------- [
END] page
components
|
|
64 |
|
// -------
-------- [
END] page
components
|
65 |
|
|
|
65 |
|
|
66 |
|
PageCode()
;
|
|
66 |
|
PageCode()
;
|
67 |
|
|
|
67 |
|
|
68 |
|
// -------
-------- p
age compon
ents funct
ions
|
|
68 |
|
// -------
-------- p
age compon
ents funct
ions
|
69 |
|
|
|
69 |
|
|
70 |
|
/**
|
|
70 |
|
/**
|
71 |
|
* page co
de functio
n
|
|
71 |
|
* page co
de functio
n
|
72 |
|
*/
|
|
72 |
|
*/
|
73 |
|
function P
ageCompPag
eMainCode(
)
|
|
73 |
|
function P
ageCompPag
eMainCode(
)
|
74 |
|
{
|
|
74 |
|
{
|
75 |
|
global
$site;
|
|
75 |
|
global
$site;
|
76 |
|
global
$short_da
te_format;
|
|
76 |
|
global
$short_da
te_format;
|
77 |
|
|
|
77 |
|
|
78 |
|
|
|
78 |
|
|
79 |
|
$messa
geID = (i
nt)$_GET['
message'];
|
|
79 |
|
$messa
geID = (i
nt)$_GET['
message'];
|
80 |
|
$membe
rID = (i
nt)$_COOKI
E['memberI
D'];
|
|
80 |
|
$membe
rID = (i
nt)$_COOKI
E['memberI
D'];
|
81 |
|
$sende
r_sql = "S
ELECT `Sen
der` FROM
`Messages`
WHERE `Re
cipient` =
'$memberI
D' AND `ID
` = '$mess
ageID'";
|
|
81 |
|
$sende
r_sql = "S
ELECT `Sen
der` FROM
`Messages`
WHERE `Re
cipient` =
'$memberI
D' AND `ID
` = '$mess
ageID'";
|
82 |
|
$sende
r_arr = db
_arr( $sen
der_sql );
|
|
82 |
|
$sende
r_arr = db
_arr( $sen
der_sql );
|
83 |
|
$sende
rID = (i
nt)$sender
_arr['Send
er'];
|
|
83 |
|
$sende
rID = (i
nt)$sender
_arr['Send
er'];
|
84 |
|
|
|
84 |
|
|
85 |
|
$messa
ge_sql= "S
ELECT m.`T
ext`, m.`S
ubject`, D
ATE_FORMAT
( m.`Date`
, '$short_
date_forma
t' ) AS `D
ate`, p.St
atus FROM
`Messages`
AS m LEFT
JOIN Prof
iles AS p
ON m.Sende
r = p.ID
WHERE m.`I
D` = '$mes
sageID' AN
D `Recipie
nt` = '$me
mberID'";
|
|
85 |
|
$messa
ge_sql= "S
ELECT m.`T
ext`, m.`S
ubject`, D
ATE_FORMAT
( m.`Date`
, '$short_
date_forma
t' ) AS `D
ate`, p.St
atus FROM
`Messages`
AS m LEFT
JOIN Prof
iles AS p
ON m.Sende
r = p.ID
WHERE m.`I
D` = '$mes
sageID' AN
D `Recipie
nt` = '$me
mberID'";
|
86 |
|
|
|
86 |
|
|
87 |
|
$messa
ge_arr= db
_arr($mess
age_sql);
|
|
87 |
|
$messa
ge_arr= db
_arr($mess
age_sql);
|
88 |
|
|
|
88 |
|
|
89 |
|
$ret =
'';
|
|
89 |
|
$ret =
'';
|
90 |
|
$ret .
= '<div cl
ass="profi
le_ditails
_block">';
|
|
90 |
|
$ret .
= '<div cl
ass="profi
le_ditails
_block">';
|
91 |
|
$r
et .= Prof
ileDetails
( $senderI
D );
|
|
91 |
|
$r
et .= Prof
ileDetails
( $senderI
D );
|
92 |
|
$r
et .= '<di
v class="c
lear_both"
></div>';
|
|
92 |
|
$r
et .= '<di
v class="c
lear_both"
></div>';
|
93 |
|
$ret .
= '</div>'
;
|
|
93 |
|
$ret .
= '</div>'
;
|
94 |
|
$ret .
= '<div cl
ass="m_blo
ck">';
|
|
94 |
|
$ret .
= '<div cl
ass="m_blo
ck">';
|
95 |
|
$r
et .= '<di
v class="m
_subject_d
ate">';
|
|
95 |
|
$r
et .= '<di
v class="m
_subject_d
ate">';
|
96 |
|
$ret .=
'<div clas
s="name">'
;
|
|
96 |
|
$ret .=
'<div clas
s="name">'
;
|
97 |
|
$ret
.= _t('_D
ate').':';
|
|
97 |
|
$ret
.= _t('_D
ate').':';
|
98 |
|
$ret .=
'</div>';
|
|
98 |
|
$ret .=
'</div>';
|
99 |
|
|
|
99 |
|
|
100 |
|
$ret .=
'<div clas
s="value">
';
|
|
100 |
|
$ret .=
'<div clas
s="value">
';
|
101 |
|
$ret
.= $messa
ge_arr['Da
te'];
|
|
101 |
|
$ret
.= $messa
ge_arr['Da
te'];
|
102 |
|
$ret .=
'</div>';
|
|
102 |
|
$ret .=
'</div>';
|
103 |
|
|
|
103 |
|
|
104 |
|
$ret .=
'<div clas
s="name">'
;
|
|
104 |
|
$ret .=
'<div clas
s="name">'
;
|
105 |
|
$ret
.= _t('_S
ubject').'
:';
|
|
105 |
|
$ret
.= _t('_S
ubject').'
:';
|
106 |
|
$ret .=
'</div>';
|
|
106 |
|
$ret .=
'</div>';
|
107 |
|
|
|
107 |
|
|
108 |
|
$ret .=
'<div clas
s="value">
';
|
|
108 |
|
$ret .=
'<div clas
s="value">
';
|
109 |
|
$ret .=
process_sm
iles( proc
ess_line_o
utput($mes
sage_arr['
Subject'])
);
|
|
109 |
|
$ret .=
process_sm
iles( proc
ess_line_o
utput($mes
sage_arr['
Subject'])
);
|
110 |
|
$ret .=
'</div>';
|
|
110 |
|
$ret .=
'</div>';
|
111 |
|
|
|
111 |
|
|
112 |
|
$r
et .= '</d
iv>';
|
|
112 |
|
$r
et .= '</d
iv>';
|
113 |
|
|
|
113 |
|
|
114 |
|
|
|
114 |
|
|
115 |
|
$r
et .= '<di
v class="m
_text">';
|
|
115 |
|
$r
et .= '<di
v class="m
_text">';
|
116 |
|
$ret .=
process_ht
ml_output(
$message_a
rr['Text']
, 150);
|
|
116 |
|
$ret .=
process_ht
ml_output(
$message_a
rr['Text']
, 150);
|
117 |
|
$r
et .= '</d
iv>';
|
|
117 |
|
$r
et .= '</d
iv>';
|
118 |
|
$r
et .= '<di
v class="c
lear_both"
></div>';
|
|
118 |
|
$r
et .= '<di
v class="c
lear_both"
></div>';
|
119 |
|
|
|
119 |
|
|
120 |
|
$ret .
= '</div>'
;
|
|
120 |
|
$ret .
= '</div>'
;
|
121 |
|
|
|
121 |
|
|
122 |
|
if( $m
essage_arr
['Status']
== 'Activ
e' )
|
|
122 |
|
if( $m
essage_arr
['Status']
== 'Activ
e' )
|
123 |
|
{
|
|
123 |
|
{
|
124 |
|
$r
et .= '<di
v class="r
eply">';
|
|
124 |
|
$r
et .= '<di
v class="r
eply">';
|
125 |
|
$ret .=
'<a href="
' . $site[
'url'] . '
compose.ph
p?ID=' . $
senderID .
'&message
ID=' . $me
ssageID .
'&subj
ect='.proc
ess_smiles
( process_
line_outpu
t($message
_arr['Subj
ect']) ).'
">'. _t('_
Reply') .'
</a>';
|
|
125 |
|
$ret .=
'<a href="
' . $site[
'url'] . '
compose.ph
p?ID=' . $
senderID .
'&message
ID=' . $me
ssageID .
'&subj
ect='.proc
ess_smiles
( process_
line_outpu
t($message
_arr['Subj
ect']) ).'
">'. _t('_
Reply') .'
</a>';
|
126 |
|
$r
et .= '</d
iv>';
|
|
126 |
|
$r
et .= '</d
iv>';
|
127 |
|
$r
et .= '<di
v class="r
eply">';
|
|
127 |
|
$r
et .= '<di
v class="r
eply">';
|
128 |
|
$ret .=
"<a onClic
k=\"javasc
ript:windo
w.open( 'l
ist_pop.ph
p?action=s
pam&ID=" .
$senderID
. "', '',
'width=50
0,height=2
00,menubar
=no,status
=no,resize
able=no,sc
rollbars=n
o,toolbar=
no,locatio
n=no' );\"
href=\"ja
vascript:v
oid(0)\">"
. _t('_Spa
m report')
."</a>";
|
|
128 |
|
$ret .=
"<a onClic
k=\"javasc
ript:windo
w.open( 'l
ist_pop.ph
p?action=s
pam&ID=" .
$senderID
. "', '',
'width=50
0,height=2
00,menubar
=no,status
=no,resize
able=no,sc
rollbars=n
o,toolbar=
no,locatio
n=no' );\"
href=\"ja
vascript:v
oid(0)\">"
. _t('_Spa
m report')
."</a>";
|
129 |
|
$r
et .= '</d
iv>';
|
|
129 |
|
$r
et .= '</d
iv>';
|
130 |
|
$r
et .= '<di
v class="r
eply">';
|
|
130 |
|
$r
et .= '<di
v class="r
eply">';
|
131 |
|
$ret .=
'<a href="
messages_i
nbox.php?a
ction=dele
te&message
=' . $mess
ageID . '"
>'. _t('_D
elete') .'
</a>';
|
|
131 |
|
$ret .=
'<a href="
messages_i
nbox.php?a
ction=dele
te&message
=' . $mess
ageID . '"
>'. _t('_D
elete') .'
</a>';
|
132 |
|
$r
et .= '</d
iv>';
|
|
132 |
|
$r
et .= '</d
iv>';
|
133 |
|
$r
et .= '<di
v class="c
lear_both"
></div>';
|
|
133 |
|
$r
et .= '<di
v class="c
lear_both"
></div>';
|
134 |
|
}
|
|
134 |
|
}
|
135 |
|
else
|
|
135 |
|
else
|
136 |
|
{
|
|
136 |
|
{
|
137 |
|
$r
et .= '';
|
|
137 |
|
$r
et .= '';
|
138 |
|
}
|
|
138 |
|
}
|
139 |
|
//$ret
.= '</div
>';
|
|
139 |
|
//$ret
.= '</div
>';
|
140 |
|
//########
##########
##########
##########
##########
####
|
|
140 |
|
//########
##########
##########
##########
##########
####
|
141 |
|
$ret .
= '<div st
yle="posit
ion:relati
ve; height
:20px;"></
div>';
|
|
141 |
|
$ret .
= '<div st
yle="posit
ion:relati
ve; height
:20px;"></
div>';
|
142 |
|
$ret .
= PageCore
spondence(
$memberID
, $senderI
D );
|
|
142 |
|
$ret .
= PageCore
spondence(
$memberID
, $senderI
D );
|
143 |
|
$ret .
= '<div cl
ass="clear
_both"></d
iv>';
|
|
143 |
|
$ret .
= '<div cl
ass="clear
_both"></d
iv>';
|
144 |
|
|
|
144 |
|
|
145 |
|
|
|
145 |
|
|
146 |
|
|
|
146 |
|
|
147 |
|
return
$ret;
|
|
147 |
|
return
$ret;
|
148 |
|
|
|
148 |
|
|
149 |
|
}
|
|
149 |
|
}
|
150 |
|
|
|
150 |
|
|
151 |
|
function P
ageMessage
Deleted()
|
|
|
152 |
|
{
|
|
|
153 |
|
return
'Message
successful
ly deleted
';
|
|
|
154 |
|
}
|
|
|
155 |
|
|
|
|
156 |
|
function P
ageCorespo
ndence( $m
emberID, $
senderID )
|
|
151 |
|
function P
ageCorespo
ndence( $m
emberID, $
senderID )
|
157 |
|
{
|
|
152 |
|
{
|
158 |
|
global
$site;
|
|
153 |
|
global
$site;
|
159 |
|
global
$date_for
mat;
|
|
154 |
|
global
$date_for
mat;
|
160 |
|
|
|
155 |
|
|
161 |
|
$previ
ew_leight
= 25;
|
|
156 |
|
$previ
ew_leight
= 25;
|
162 |
|
|
|
157 |
|
|
163 |
|
$sende
r_nickname
= getProf
ileInfo( $
senderID )
; //db_arr
("SELECT `
NickName`
FROM `Prof
iles` WHER
E `ID` = '
$senderID'
");
|
|
158 |
|
$sende
r_nickname
= getProf
ileInfo( $
senderID )
; //db_arr
("SELECT `
NickName`
FROM `Prof
iles` WHER
E `ID` = '
$senderID'
");
|
164 |
|
|
|
159 |
|
|
165 |
|
$membe
r_to_sende
r_query =
"SELECT `P
rofiles`.`
ID` AS pID
, `Profile
s`.`NickNa
me`, `Prof
iles`.`Sta
tus`, `Mes
sages`.`ID
` AS mID,
`New`, DAT
E_FORMAT(
`Date`, '$
date_forma
t') as 'Da
te', `Subj
ect`, LEFT
( `Text`,
{$preview_
leight} )
AS Preview
FROM `Mes
sages` LEF
T JOIN `Pr
ofiles` ON
`Messages
`.`Recipie
nt` = `Pro
files`.`ID
` WHERE `S
ender` = '
" . (int)$
memberID .
"' AND `R
ecipient`
= '" . (in
t)$senderI
D . "' ORD
ER BY `Dat
e` DESC";
|
|
160 |
|
$membe
r_to_sende
r_query =
"SELECT `P
rofiles`.`
ID` AS pID
, `Profile
s`.`NickNa
me`, `Prof
iles`.`Sta
tus`, `Mes
sages`.`ID
` AS mID,
`New`, DAT
E_FORMAT(
`Date`, '$
date_forma
t') as 'Da
te', `Subj
ect`, LEFT
( `Text`,
{$preview_
leight} )
AS Preview
FROM `Mes
sages` LEF
T JOIN `Pr
ofiles` ON
`Messages
`.`Recipie
nt` = `Pro
files`.`ID
` WHERE `S
ender` = '
" . (int)$
memberID .
"' AND `R
ecipient`
= '" . (in
t)$senderI
D . "' ORD
ER BY `Dat
e` DESC";
|
166 |
|
$membe
r_to_sende
r_res = db
_res($memb
er_to_send
er_query);
|
|
161 |
|
$membe
r_to_sende
r_res = db
_res($memb
er_to_send
er_query);
|
167 |
|
|
|
162 |
|
|
168 |
|
$membe
r_to_sende
r_num = my
sql_num_ro
ws($member
_to_sender
_res);
|
|
163 |
|
$membe
r_to_sende
r_num = my
sql_num_ro
ws($member
_to_sender
_res);
|
169 |
|
|
|
164 |
|
|
170 |
|
$sende
r_to_membe
r_query =
"SELECT `M
essages`.`
ID` AS mID
, `New`, D
ATE_FORMAT
( `Date`,
'$date_for
mat') as '
Date', `Su
bject`, LE
FT( `Text`
, {$previe
w_leight}
) AS Previ
ew FROM `M
essages` L
EFT JOIN `
Profiles`
ON Message
s.Sender =
Profiles.
ID WHERE `
Sender` =
'" . (int)
$senderID
. "' AND `
Recipient`
= '" . (i
nt)$member
ID . "' OR
DER BY `Da
te` DESC";
|
|
165 |
|
$sende
r_to_membe
r_query =
"SELECT `M
essages`.`
ID` AS mID
, `New`, D
ATE_FORMAT
( `Date`,
'$date_for
mat') as '
Date', `Su
bject`, LE
FT( `Text`
, {$previe
w_leight}
) AS Previ
ew FROM `M
essages` L
EFT JOIN `
Profiles`
ON Message
s.Sender =
Profiles.
ID WHERE `
Sender` =
'" . (int)
$senderID
. "' AND `
Recipient`
= '" . (i
nt)$member
ID . "' OR
DER BY `Da
te` DESC";
|
171 |
|
$sende
r_to_membe
r_res = db
_res($send
er_to_memb
er_query);
|
|
166 |
|
$sende
r_to_membe
r_res = db
_res($send
er_to_memb
er_query);
|
172 |
|
|
|
167 |
|
|
173 |
|
$sende
r_to_membe
r_num = my
sql_num_ro
ws($sender
_to_member
_res);
|
|
168 |
|
$sende
r_to_membe
r_num = my
sql_num_ro
ws($sender
_to_member
_res);
|
174 |
|
|
|
169 |
|
|
175 |
|
$ret =
'';
|
|
170 |
|
$ret =
'';
|
176 |
|
$ret .
= '<div cl
ass="membe
r_to_sende
r">';
|
|
171 |
|
$ret .
= '<div cl
ass="membe
r_to_sende
r">';
|
177 |
|
if($me
mber_to_se
nder_num >
0 )
|
|
172 |
|
if($me
mber_to_se
nder_num >
0 )
|
178 |
|
{
|
|
173 |
|
{
|
179 |
|
|
|
174 |
|
|
180 |
|
$r
et .= '<ta
ble cellpa
dding="0"
cellspacin
g="0" bord
er="0" wid
th="100%">
';
|
|
175 |
|
$r
et .= '<ta
ble cellpa
dding="0"
cellspacin
g="0" bord
er="0" wid
th="100%">
';
|
181 |
|
$ret .=
'<tr>';
|
|
176 |
|
$ret .=
'<tr>';
|
182 |
|
$ret
.= '<td c
olspan="3"
class="co
r_title">'
;
|
|
177 |
|
$ret
.= '<td c
olspan="3"
class="co
r_title">'
;
|
183 |
|
$ret .= _t
('_message
s_to', $se
nder_nickn
ame['NickN
ame']);
|
|
178 |
|
$ret .= _t
('_message
s_to', $se
nder_nickn
ame['NickN
ame']);
|
184 |
|
$ret
.= '</td>
';
|
|
179 |
|
$ret
.= '</td>
';
|
185 |
|
$ret .=
'</tr>';
|
|
180 |
|
$ret .=
'</tr>';
|
186 |
|
$ret .=
'<tr>';
|
|
181 |
|
$ret .=
'<tr>';
|
187 |
|
$ret
.= '<td w
idth="17">
';
|
|
182 |
|
$ret
.= '<td w
idth="17">
';
|
188 |
|
$ret .= '<
img src="'
. getTemp
lateIcon('
convert.gi
f') . '" a
lt="" />';
|
|
183 |
|
$ret .= '<
img src="'
. getTemp
lateIcon('
convert.gi
f') . '" a
lt="" />';
|
189 |
|
$ret
.= '</td>
';
|
|
184 |
|
$ret
.= '</td>
';
|
190 |
|
$ret
.= '<td w
idth="70">
';
|
|
185 |
|
$ret
.= '<td w
idth="70">
';
|
191 |
|
$ret .= _t
('_Date');
|
|
186 |
|
$ret .= _t
('_Date');
|
192 |
|
$ret
.= '</td>
';
|
|
187 |
|
$ret
.= '</td>
';
|
193 |
|
$ret
.= '<td>'
;
|
|
188 |
|
$ret
.= '<td>'
;
|
194 |
|
$ret .= _t
('_Subject
');
|
|
189 |
|
$ret .= _t
('_Subject
');
|
195 |
|
$ret
.= '</td>
';
|
|
190 |
|
$ret
.= '</td>
';
|
196 |
|
$ret .=
'</tr>';
|
|
191 |
|
$ret .=
'</tr>';
|
197 |
|
|
|
192 |
|
|
198 |
|
$j
_out = '0'
;
|
|
193 |
|
$j
_out = '0'
;
|
199 |
|
wh
ile($membe
r_to_sende
r_arr = my
sql_fetch_
assoc($mem
ber_to_sen
der_res))
|
|
194 |
|
wh
ile($membe
r_to_sende
r_arr = my
sql_fetch_
assoc($mem
ber_to_sen
der_res))
|
200 |
|
{
|
|
195 |
|
{
|
201 |
|
if(strle
n( $member
_to_sender
_arr['Subj
ect'] ) ==
0 )
|
|
196 |
|
if(strle
n( $member
_to_sender
_arr['Subj
ect'] ) ==
0 )
|
202 |
|
{
|
|
197 |
|
{
|
203 |
|
|
|
198 |
|
|
204 |
|
$cor
_subject_o
ut = $memb
er_to_send
er_arr['Pr
eview'];
|
|
199 |
|
$cor
_subject_o
ut = $memb
er_to_send
er_arr['Pr
eview'];
|
205 |
|
if (
strlen( $
member_to_
sender_arr
['Preview'
] ) >= $pr
eview_leng
th )
|
|
200 |
|
if (
strlen( $
member_to_
sender_arr
['Preview'
] ) >= $pr
eview_leng
th )
|
206 |
|
{
|
|
201 |
|
{
|
207 |
|
$cor_subje
ct_out .=
"...";
|
|
202 |
|
$cor_subje
ct_out .=
"...";
|
208 |
|
}
|
|
203 |
|
}
|
209 |
|
}
|
|
204 |
|
}
|
210 |
|
else
|
|
205 |
|
else
|
211 |
|
{
|
|
206 |
|
{
|
212 |
|
$cor
_subject_o
ut = $memb
er_to_send
er_arr['Su
bject'];
|
|
207 |
|
$cor
_subject_o
ut = $memb
er_to_send
er_arr['Su
bject'];
|
213 |
|
if (
strlen( $
member_to_
sender_arr
['Subject'
] ) >= $pr
eview_leng
th )
|
|
208 |
|
if (
strlen( $
member_to_
sender_arr
['Subject'
] ) >= $pr
eview_leng
th )
|
214 |
|
{
|
|
209 |
|
{
|
215 |
|
$cor_subje
ct_out .=
"...";
|
|
210 |
|
$cor_subje
ct_out .=
"...";
|
216 |
|
}
|
|
211 |
|
}
|
217 |
|
}
|
|
212 |
|
}
|
218 |
|
|
|
213 |
|
|
219 |
|
if( '1'
== $member
_to_sender
_arr['New'
] )
|
|
214 |
|
if( '1'
== $member
_to_sender
_arr['New'
] )
|
220 |
|
{
|
|
215 |
|
{
|
221 |
|
$new
_out = 'no
t_readed.g
if';
|
|
216 |
|
$new
_out = 'no
t_readed.g
if';
|
222 |
|
$sty
le_add = '
style="fon
t-weight:b
old;"';
|
|
217 |
|
$sty
le_add = '
style="fon
t-weight:b
old;"';
|
223 |
|
}
|
|
218 |
|
}
|
224 |
|
else
|
|
219 |
|
else
|
225 |
|
{
|
|
220 |
|
{
|
226 |
|
$new
_out = 're
aded.gif';
|
|
221 |
|
$new
_out = 're
aded.gif';
|
227 |
|
$sty
le_add = '
';
|
|
222 |
|
$sty
le_add = '
';
|
228 |
|
}
|
|
223 |
|
}
|
229 |
|
|
|
224 |
|
|
230 |
|
if( ($j_
out%2) !=
'0')
|
|
225 |
|
if( ($j_
out%2) !=
'0')
|
231 |
|
{
|
|
226 |
|
{
|
232 |
|
$bgc
olor = '#F
FFFFF';
|
|
227 |
|
$bgc
olor = '#F
FFFFF';
|
233 |
|
}
|
|
228 |
|
}
|
234 |
|
else
|
|
229 |
|
else
|
235 |
|
{
|
|
230 |
|
{
|
236 |
|
$bgc
olor = '#E
AF6C6';
|
|
231 |
|
$bgc
olor = '#E
AF6C6';
|
237 |
|
}
|
|
232 |
|
}
|
238 |
|
|
|
233 |
|
|
239 |
|
|
|
234 |
|
|
240 |
|
$ret .=
'<tr class
="tr_hover
" bgcolor=
"' . $bgco
lor . '">'
;
|
|
235 |
|
$ret .=
'<tr class
="tr_hover
" bgcolor=
"' . $bgco
lor . '">'
;
|
241 |
|
$ret
.= '<td h
eight="20"
>';
|
|
236 |
|
$ret
.= '<td h
eight="20"
>';
|
242 |
|
$ret .= '<
img src="'
. getTemp
lateIcon($
new_out) .
'" alt=""
/>';
|
|
237 |
|
$ret .= '<
img src="'
. getTemp
lateIcon($
new_out) .
'" alt=""
/>';
|
243 |
|
$ret
.= '</td>
';
|
|
238 |
|
$ret
.= '</td>
';
|
244 |
|
$ret
.= '<td '
. $style_
add . '>';
|
|
239 |
|
$ret
.= '<td '
. $style_
add . '>';
|
245 |
|
$ret .= $m
ember_to_s
ender_arr[
'Date'];
|
|
240 |
|
$ret .= $m
ember_to_s
ender_arr[
'Date'];
|
246 |
|
$ret
.= '</td>
';
|
|
241 |
|
$ret
.= '</td>
';
|
247 |
|
$ret
.= '<td '
. $style_
add . ' al
ign="left"
>';
|
|
242 |
|
$ret
.= '<td '
. $style_
add . ' al
ign="left"
>';
|
248 |
|
$ret .= '<
a href="'
. $site['u
rl'] . 'me
ssages_out
box.php?me
ssage=' .
$member_to
_sender_ar
r['mID'].
'">';
|
|
243 |
|
$ret .= '<
a href="'
. $site['u
rl'] . 'me
ssages_out
box.php?me
ssage=' .
$member_to
_sender_ar
r['mID'].
'">';
|
249 |
|
$ret .
= process_
line_outpu
t(html2txt
($cor_subj
ect_out));
|
|
244 |
|
$ret .
= process_
line_outpu
t(html2txt
($cor_subj
ect_out));
|
250 |
|
$ret .= '<
/a>';
|
|
245 |
|
$ret .= '<
/a>';
|
251 |
|
$ret
.= '</td>
';
|
|
246 |
|
$ret
.= '</td>
';
|
252 |
|
$ret .=
'</tr>';
|
|
247 |
|
$ret .=
'</tr>';
|
253 |
|
$j_out++
;
|
|
248 |
|
$j_out++
;
|
254 |
|
}
|
|
249 |
|
}
|
255 |
|
$r
et .= '</t
able>';
|
|
250 |
|
$r
et .= '</t
able>';
|
256 |
|
|
|
251 |
|
|
257 |
|
}
|
|
252 |
|
}
|
258 |
|
else
|
|
253 |
|
else
|
259 |
|
{
|
|
254 |
|
{
|
260 |
|
$r
et .= '<di
v class="n
o_result">
<div>';
|
|
255 |
|
$r
et .= '<di
v class="n
o_result">
<div>';
|
261 |
|
$ret .=
_t('_no_me
ssages_to'
, $sender_
nickname['
NickName']
);
|
|
256 |
|
$ret .=
_t('_no_me
ssages_to'
, $sender_
nickname['
NickName']
);
|
262 |
|
$r
et .= '</d
iv></div>'
;
|
|
257 |
|
$r
et .= '</d
iv></div>'
;
|
263 |
|
}
|
|
258 |
|
}
|
264 |
|
$ret .
= '</div>'
;
|
|
259 |
|
$ret .
= '</div>'
;
|
265 |
|
|
|
260 |
|
|
266 |
|
//########
##########
##########
##########
##########
##########
##########
##########
###
|
|
261 |
|
//########
##########
##########
##########
##########
##########
##########
##########
###
|
267 |
|
|
|
262 |
|
|
268 |
|
$ret .
= '<div cl
ass="sende
r_to_membe
r">';
|
|
263 |
|
$ret .
= '<div cl
ass="sende
r_to_membe
r">';
|
269 |
|
if( $s
ender_to_m
ember_num
)
|
|
264 |
|
if( $s
ender_to_m
ember_num
)
|
270 |
|
{
|
|
265 |
|
{
|
271 |
|
$r
et .= '<ta
ble cellpa
dding="0"
cellspacin
g="0" bord
er="0" wid
th="100%">
';
|
|
266 |
|
$r
et .= '<ta
ble cellpa
dding="0"
cellspacin
g="0" bord
er="0" wid
th="100%">
';
|
272 |
|
$ret .=
'<tr>';
|
|
267 |
|
$ret .=
'<tr>';
|
273 |
|
$ret
.= '<td c
olspan="3"
class="co
r_title">'
;
|
|
268 |
|
$ret
.= '<td c
olspan="3"
class="co
r_title">'
;
|
274 |
|
$ret .= _t
('_message
s_from', $
sender_nic
kname['Nic
kName']);
|
|
269 |
|
$ret .= _t
('_message
s_from', $
sender_nic
kname['Nic
kName']);
|
275 |
|
$ret
.= '</td>
';
|
|
270 |
|
$ret
.= '</td>
';
|
276 |
|
$ret .=
'</tr>';
|
|
271 |
|
$ret .=
'</tr>';
|
277 |
|
$ret .=
'<tr>';
|
|
272 |
|
$ret .=
'<tr>';
|
278 |
|
$ret
.= '<td w
idth="17">
';
|
|
273 |
|
$ret
.= '<td w
idth="17">
';
|
279 |
|
$ret .= '<
img src="'
. getTemp
lateIcon('
convert.gi
f') . '" a
lt="" />';
|
|
274 |
|
$ret .= '<
img src="'
. getTemp
lateIcon('
convert.gi
f') . '" a
lt="" />';
|
280 |
|
$ret
.= '</td>
';
|
|
275 |
|
$ret
.= '</td>
';
|
281 |
|
$ret
.= '<td w
idth="70">
';
|
|
276 |
|
$ret
.= '<td w
idth="70">
';
|
282 |
|
$ret .= _t
('_Date');
|
|
277 |
|
$ret .= _t
('_Date');
|
283 |
|
$ret
.= '</td>
';
|
|
278 |
|
$ret
.= '</td>
';
|
284 |
|
$ret
.= '<td>'
;
|
|
279 |
|
$ret
.= '<td>'
;
|
285 |
|
$ret .= _t
('_Subject
');
|
|
280 |
|
$ret .= _t
('_Subject
');
|
286 |
|
$ret
.= '</td>
';
|
|
281 |
|
$ret
.= '</td>
';
|
287 |
|
$ret .=
'</tr>';
|
|
282 |
|
$ret .=
'</tr>';
|
288 |
|
|
|
283 |
|
|
289 |
|
$j
_in = '0';
|
|
284 |
|
$j
_in = '0';
|
290 |
|
wh
ile ($send
er_to_memb
er_arr = m
ysql_fetch
_assoc($se
nder_to_me
mber_res))
|
|
285 |
|
wh
ile ($send
er_to_memb
er_arr = m
ysql_fetch
_assoc($se
nder_to_me
mber_res))
|
291 |
|
{
|
|
286 |
|
{
|
292 |
|
if(strle
n( $sender
_to_member
_arr['Subj
ect'] ) ==
0 )
|
|
287 |
|
if(strle
n( $sender
_to_member
_arr['Subj
ect'] ) ==
0 )
|
293 |
|
{
|
|
288 |
|
{
|
294 |
|
$cor
_subject_i
n = $sende
r_to_membe
r_arr['Pre
view'];
|
|
289 |
|
$cor
_subject_i
n = $sende
r_to_membe
r_arr['Pre
view'];
|
295 |
|
if (
strlen( $
sender_to_
member_arr
['Preview'
] ) >= $pr
eview_leng
th )
|
|
290 |
|
if (
strlen( $
sender_to_
member_arr
['Preview'
] ) >= $pr
eview_leng
th )
|
296 |
|
{
|
|
291 |
|
{
|
297 |
|
$cor_subje
ct_in .= "
...";
|
|
292 |
|
$cor_subje
ct_in .= "
...";
|
298 |
|
}
|
|
293 |
|
}
|
299 |
|
}
|
|
294 |
|
}
|
300 |
|
else
|
|
295 |
|
else
|
301 |
|
{
|
|
296 |
|
{
|
302 |
|
$cor
_subject_i
n = $sende
r_to_membe
r_arr['Sub
ject'];
|
|
297 |
|
$cor
_subject_i
n = $sende
r_to_membe
r_arr['Sub
ject'];
|
303 |
|
if (
strlen( $
sender_to_
member_arr
['Subject'
] ) >= $pr
eview_leng
th )
|
|
298 |
|
if (
strlen( $
sender_to_
member_arr
['Subject'
] ) >= $pr
eview_leng
th )
|
304 |
|
{
|
|
299 |
|
{
|
305 |
|
$cor_subje
ct_in .= "
...";
|
|
300 |
|
$cor_subje
ct_in .= "
...";
|
306 |
|
}
|
|
301 |
|
}
|
307 |
|
}
|
|
302 |
|
}
|
308 |
|
|
|
303 |
|
|
309 |
|
if( $_GE
T['message
'] == $sen
der_to_mem
ber_arr['m
ID'] )
|
|
304 |
|
if( $_GE
T['message
'] == $sen
der_to_mem
ber_arr['m
ID'] )
|
310 |
|
{
|
|
305 |
|
{
|
311 |
|
$new
_in = 'cur
rent_mes.p
ng';
|
|
306 |
|
$new
_in = 'cur
rent_mes.p
ng';
|
312 |
|
$sty
le_add_in
= '';
|
|
307 |
|
$sty
le_add_in
= '';
|
313 |
|
}
|
|
308 |
|
}
|
314 |
|
else
|
|
309 |
|
else
|
315 |
|
{
|
|
310 |
|
{
|
316 |
|
if(
'1' == $se
nder_to_me
mber_arr['
New'] )
|
|
311 |
|
if(
'1' == $se
nder_to_me
mber_arr['
New'] )
|
317 |
|
{
|
|
312 |
|
{
|
318 |
|
$new_in =
'not_reade
d.gif';
|
|
313 |
|
$new_in =
'not_reade
d.gif';
|
319 |
|
$style_add
_in = 'sty
le="font-w
eight:bold
;"';
|
|
314 |
|
$style_add
_in = 'sty
le="font-w
eight:bold
;"';
|
320 |
|
}
|
|
315 |
|
}
|
321 |
|
else
|
|
316 |
|
else
|
322 |
|
{
|
|
317 |
|
{
|
323 |
|
$new_in =
'readed.gi
f';
|
|
318 |
|
$new_in =
'readed.gi
f';
|
324 |
|
$style_add
_in = '';
|
|
319 |
|
$style_add
_in = '';
|
325 |
|
}
|
|
320 |
|
}
|
326 |
|
}
|
|
321 |
|
}
|
327 |
|
|
|
322 |
|
|
328 |
|
if( ($j_
in%2) != '
0')
|
|
323 |
|
if( ($j_
in%2) != '
0')
|
329 |
|
{
|
|
324 |
|
{
|
330 |
|
$bgc
olor = '#F
FFFFF';
|
|
325 |
|
$bgc
olor = '#F
FFFFF';
|
331 |
|
}
|
|
326 |
|
}
|
332 |
|
else
|
|
327 |
|
else
|
333 |
|
{
|
|
328 |
|
{
|
334 |
|
$bgc
olor = '#E
AF6C6';
|
|
329 |
|
$bgc
olor = '#E
AF6C6';
|
335 |
|
}
|
|
330 |
|
}
|
336 |
|
|
|
331 |
|
|
337 |
|
$ret .=
'<tr class
="tr_hover
" bgcolor=
"' . $bgco
lor . '">'
;
|
|
332 |
|
$ret .=
'<tr class
="tr_hover
" bgcolor=
"' . $bgco
lor . '">'
;
|
338 |
|
$ret
.= '<td h
eight="20"
>';
|
|
333 |
|
$ret
.= '<td h
eight="20"
>';
|
339 |
|
$ret .= '<
img src="'
. getTemp
lateIcon($
new_in) .
'" alt=""
/>';
|
|
334 |
|
$ret .= '<
img src="'
. getTemp
lateIcon($
new_in) .
'" alt=""
/>';
|
340 |
|
$ret
.= '</td>
';
|
|
335 |
|
$ret
.= '</td>
';
|
341 |
|
$ret
.= '<td '
. $style_
add_in . '
>';
|
|
336 |
|
$ret
.= '<td '
. $style_
add_in . '
>';
|
342 |
|
$ret .= $s
ender_to_m
ember_arr[
'Date'];
|
|
337 |
|
$ret .= $s
ender_to_m
ember_arr[
'Date'];
|
343 |
|
$ret
.= '</td>
';
|
|
338 |
|
$ret
.= '</td>
';
|
344 |
|
$ret
.= '<td '
. $style_
add_in . '
align="le
ft">';
|
|
339 |
|
$ret
.= '<td '
. $style_
add_in . '
align="le
ft">';
|
345 |
|
$ret .= '<
a href="'
. $site['u
rl'] . 'me
ssages_inb
ox.php?mes
sage=' . $
sender_to_
member_arr
['mID'] .
'">';
|
|
340 |
|
$ret .= '<
a href="'
. $site['u
rl'] . 'me
ssages_inb
ox.php?mes
sage=' . $
sender_to_
member_arr
['mID'] .
'">';
|
346 |
|
$ret .
= process_
line_outpu
t(html2txt
($cor_subj
ect_in));
|
|
341 |
|
$ret .
= process_
line_outpu
t(html2txt
($cor_subj
ect_in));
|
347 |
|
$ret .= '<
/a>';
|
|
342 |
|
$ret .= '<
/a>';
|
348 |
|
$ret
.= '</td>
';
|
|
343 |
|
$ret
.= '</td>
';
|
349 |
|
$j
_in++;
|
|
344 |
|
$j
_in++;
|
350 |
|
}
|
|
345 |
|
}
|
351 |
|
|
|
346 |
|
|
352 |
|
$r
et .= '</t
able>';
|
|
347 |
|
$r
et .= '</t
able>';
|
353 |
|
}
|
|
348 |
|
}
|
354 |
|
else
|
|
349 |
|
else
|
355 |
|
{
|
|
350 |
|
{
|
356 |
|
$r
et .= '<di
v class="n
o_result">
</div>';
|
|
351 |
|
$r
et .= '<di
v class="n
o_result">
</div>';
|
357 |
|
$ret .=
_t('_no_me
ssages_fro
m', $sende
r_nickname
['NickName
'] );
|
|
352 |
|
$ret .=
_t('_no_me
ssages_fro
m', $sende
r_nickname
['NickName
'] );
|
358 |
|
$r
et .= '</d
iv></div>'
;
|
|
353 |
|
$r
et .= '</d
iv></div>'
;
|
359 |
|
}
|
|
354 |
|
}
|
360 |
|
$ret .
= '</div>'
;
|
|
355 |
|
$ret .
= '</div>'
;
|
361 |
|
|
|
356 |
|
|
362 |
|
|
|
357 |
|
|
363 |
|
return
$ret;
|
|
358 |
|
return
$ret;
|
364 |
|
}
|
|
359 |
|
}
|
365 |
|
|
|
360 |
|
|
366 |
|
?>
|
|
361 |
|
?>
|