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( "_
OUTBOX_H1"
);
|
|
34 |
|
$_page['he
ader_text'
] = _t( "_
OUTBOX_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['
message']
!= 0)
|
|
45 |
|
if($_GET['
message']
!= 0)
|
46 |
|
{
|
|
46 |
|
{
|
47 |
|
$_page
_cont[$_ni
]['page_ma
in_code']
= DesignBo
xContent(
'', PageCo
mpPageMain
Code(), $o
TemplConfi
g -> PageM
essagesOut
boxMainCod
e_db_num )
;
|
|
47 |
|
$_page
_cont[$_ni
]['page_ma
in_code']
= DesignBo
xContent(
'', PageCo
mpPageMain
Code(), $o
TemplConfi
g -> PageM
essagesOut
boxMainCod
e_db_num )
;
|
48 |
|
}
|
|
48 |
|
}
|
49 |
|
else
|
|
49 |
|
else
|
50 |
|
{
|
|
50 |
|
{
|
51 |
|
echo '
<script ty
pe="text/j
avascript"
>location.
href=\'mai
l.php?mode
=outbox\';
</script>'
;
|
|
51 |
|
echo '
<script ty
pe="text/j
avascript"
>location.
href=\'mai
l.php?mode
=outbox\';
</script>'
;
|
52 |
|
}
|
|
52 |
|
}
|
53 |
|
|
|
53 |
|
|
54 |
|
// -------
-------- [
END] page
components
|
|
54 |
|
// -------
-------- [
END] page
components
|
55 |
|
|
|
55 |
|
|
56 |
|
PageCode()
;
|
|
56 |
|
PageCode()
;
|
57 |
|
|
|
57 |
|
|
58 |
|
// -------
-------- p
age compon
ents funct
ions
|
|
58 |
|
// -------
-------- p
age compon
ents funct
ions
|
59 |
|
|
|
59 |
|
|
60 |
|
/**
|
|
60 |
|
/**
|
61 |
|
* page co
de functio
n
|
|
61 |
|
* page co
de functio
n
|
62 |
|
*/
|
|
62 |
|
*/
|
63 |
|
function P
ageCompPag
eMainCode(
)
|
|
63 |
|
function P
ageCompPag
eMainCode(
)
|
64 |
|
{
|
|
64 |
|
{
|
65 |
|
global
$site;
|
|
65 |
|
global
$site;
|
66 |
|
|
|
66 |
|
|
67 |
|
|
|
67 |
|
|
68 |
|
$messa
geID = ((
int)$_GET[
'message']
);
|
|
68 |
|
$messa
geID = ((
int)$_GET[
'message']
);
|
69 |
|
$membe
rID = ((
int)$_COOK
IE['member
ID']);
|
|
69 |
|
$membe
rID = ((
int)$_COOK
IE['member
ID']);
|
70 |
|
$sende
r_sql = "S
ELECT `Rec
ipient` FR
OM `Messag
es` WHERE
`Sender` =
'$memberI
D' AND `ID
` = '$mess
ageID'";
|
|
70 |
|
$sende
r_sql = "S
ELECT `Rec
ipient` FR
OM `Messag
es` WHERE
`Sender` =
'$memberI
D' AND `ID
` = '$mess
ageID'";
|
71 |
|
$sende
r_arr = db
_arr( $sen
der_sql );
|
|
71 |
|
$sende
r_arr = db
_arr( $sen
der_sql );
|
72 |
|
$sende
rID = $s
ender_arr[
'Recipient
'];
|
|
72 |
|
$sende
rID = $s
ender_arr[
'Recipient
'];
|
73 |
|
|
|
73 |
|
|
74 |
|
$messa
ge_sql= "S
ELECT m.`T
ext`, m.`S
ubject`, D
ATE_FORMAT
( m.`Date`
, '%Y-%m-%
d' ) AS `D
ate`, p.St
atus FROM
`Messages`
AS m LEFT
JOIN Prof
iles AS p
ON m.Recip
ient = p.I
D WHERE m.
`ID` = '$m
essageID'"
;// AND`Se
nder` = '$
senderID'"
;
|
|
74 |
|
$messa
ge_sql= "S
ELECT m.`T
ext`, m.`S
ubject`, D
ATE_FORMAT
( m.`Date`
, '%Y-%m-%
d' ) AS `D
ate`, p.St
atus FROM
`Messages`
AS m LEFT
JOIN Prof
iles AS p
ON m.Recip
ient = p.I
D WHERE m.
`ID` = '$m
essageID'"
;// AND`Se
nder` = '$
senderID'"
;
|
75 |
|
|
|
75 |
|
|
76 |
|
$messa
ge_arr= db
_arr($mess
age_sql);
|
|
76 |
|
$messa
ge_arr= db
_arr($mess
age_sql);
|
77 |
|
|
|
77 |
|
|
78 |
|
$ret =
'';
|
|
78 |
|
$ret =
'';
|
79 |
|
$ret .
= '<div cl
ass="profi
le_ditails
_block">';
|
|
79 |
|
$ret .
= '<div cl
ass="profi
le_ditails
_block">';
|
80 |
|
$r
et .= Prof
ileDetails
( $senderI
D );
|
|
80 |
|
$r
et .= Prof
ileDetails
( $senderI
D );
|
81 |
|
$r
et .= '<di
v class="c
lear_both"
></div>';
|
|
81 |
|
$r
et .= '<di
v class="c
lear_both"
></div>';
|
82 |
|
$ret .
= '</div>'
;
|
|
82 |
|
$ret .
= '</div>'
;
|
83 |
|
$ret .
= '<div cl
ass="m_blo
ck">';
|
|
83 |
|
$ret .
= '<div cl
ass="m_blo
ck">';
|
84 |
|
$r
et .= '<di
v class="m
_subject_d
ate">';
|
|
84 |
|
$r
et .= '<di
v class="m
_subject_d
ate">';
|
85 |
|
$ret .=
'<div clas
s="name">'
;
|
|
85 |
|
$ret .=
'<div clas
s="name">'
;
|
86 |
|
$ret
.= _t('_D
ate').':';
|
|
86 |
|
$ret
.= _t('_D
ate').':';
|
87 |
|
$ret .=
'</div>';
|
|
87 |
|
$ret .=
'</div>';
|
88 |
|
|
|
88 |
|
|
89 |
|
$ret .=
'<div clas
s="value">
';
|
|
89 |
|
$ret .=
'<div clas
s="value">
';
|
90 |
|
$ret
.= $messa
ge_arr['Da
te'];
|
|
90 |
|
$ret
.= $messa
ge_arr['Da
te'];
|
91 |
|
$ret .=
'</div>';
|
|
91 |
|
$ret .=
'</div>';
|
92 |
|
|
|
92 |
|
|
93 |
|
$ret .=
'<div clas
s="name">'
;
|
|
93 |
|
$ret .=
'<div clas
s="name">'
;
|
94 |
|
$ret
.= _t('_S
ubject').'
:';
|
|
94 |
|
$ret
.= _t('_S
ubject').'
:';
|
95 |
|
$ret .=
'</div>';
|
|
95 |
|
$ret .=
'</div>';
|
96 |
|
|
|
96 |
|
|
97 |
|
$ret .=
'<div clas
s="value">
';
|
|
97 |
|
$ret .=
'<div clas
s="value">
';
|
98 |
|
$ret
.= proces
s_smiles(
process_li
ne_output(
$message_a
rr['Subjec
t']) );
|
|
98 |
|
$ret
.= proces
s_smiles(
process_li
ne_output(
$message_a
rr['Subjec
t']) );
|
99 |
|
$ret .=
'</div>';
|
|
99 |
|
$ret .=
'</div>';
|
100 |
|
|
|
100 |
|
|
101 |
|
$r
et .= '</d
iv>';
|
|
101 |
|
$r
et .= '</d
iv>';
|
102 |
|
|
|
102 |
|
|
103 |
|
$r
et .= '<di
v class="m
_text">';
|
|
103 |
|
$r
et .= '<di
v class="m
_text">';
|
104 |
|
$ret .=
process_ht
ml_output(
$message_a
rr['Text']
, 80);
|
|
104 |
|
$ret .=
process_ht
ml_output(
$message_a
rr['Text']
, 80);
|
105 |
|
$r
et .= '</d
iv>';
|
|
105 |
|
$r
et .= '</d
iv>';
|
106 |
|
$r
et .= '<di
v class="c
lear_both"
></div>';
|
|
106 |
|
$r
et .= '<di
v class="c
lear_both"
></div>';
|
107 |
|
$ret .
= '</div>'
;
|
|
107 |
|
$ret .
= '</div>'
;
|
108 |
|
|
|
108 |
|
|
109 |
|
//$ret
.= '<div
class="rep
ly_block">
';
|
|
109 |
|
//$ret
.= '<div
class="rep
ly_block">
';
|
110 |
|
if( $m
essage_arr
['Status']
== 'Activ
e' )
|
|
110 |
|
if( $m
essage_arr
['Status']
== 'Activ
e' )
|
111 |
|
{
|
|
111 |
|
{
|
112 |
|
$r
et .= '<di
v class="r
eply">';
|
|
112 |
|
$r
et .= '<di
v class="r
eply">';
|
113 |
|
$ret .=
'<a href="
' . $site[
'url'] . '
compose.ph
p?ID=' . $
senderID .
'">'._t('
_Write new
Message')
.'</a>';
|
|
113 |
|
$ret .=
'<a href="
' . $site[
'url'] . '
compose.ph
p?ID=' . $
senderID .
'">'._t('
_Write new
Message')
.'</a>';
|
114 |
|
$r
et .= '</d
iv>';
|
|
114 |
|
$r
et .= '</d
iv>';
|
115 |
|
$r
et .= '<di
v class="c
lear_both"
></div>';
|
|
115 |
|
$r
et .= '<di
v class="c
lear_both"
></div>';
|
116 |
|
}
|
|
116 |
|
}
|
117 |
|
else
|
|
117 |
|
else
|
118 |
|
{
|
|
118 |
|
{
|
119 |
|
$r
et .= '';
|
|
119 |
|
$r
et .= '';
|
120 |
|
}
|
|
120 |
|
}
|
121 |
|
|
|
121 |
|
|
122 |
|
//########
##########
##########
##########
##########
####
|
|
122 |
|
//########
##########
##########
##########
##########
####
|
123 |
|
|
|
123 |
|
|
124 |
|
$ret .
= '<div st
yle="posit
ion:relati
ve; height
:20px;"></
div>';
|
|
124 |
|
$ret .
= '<div st
yle="posit
ion:relati
ve; height
:20px;"></
div>';
|
125 |
|
$ret .
= PageCore
spondence(
$memberID
, $senderI
D );
|
|
125 |
|
$ret .
= PageCore
spondence(
$memberID
, $senderI
D );
|
126 |
|
$ret .
= '<div cl
ass="clear
_both"></d
iv>';
|
|
126 |
|
$ret .
= '<div cl
ass="clear
_both"></d
iv>';
|
127 |
|
|
|
127 |
|
|
128 |
|
|
|
|
129 |
|
|
|
|
130 |
|
return
$ret;
|
|
128 |
|
return
$ret;
|
131 |
|
|
|
|
132 |
|
}
|
|
|
133 |
|
|
|
|
134 |
|
function P
ageMessage
Deleted()
|
|
|
135 |
|
{
|
|
|
136 |
|
return
'Message
successful
ly deleted
';
|
|
|
137 |
|
}
|
|
129 |
|
}
|
138 |
|
|
|
130 |
|
|
139 |
|
function P
ageCorespo
ndence( $m
emberID, $
senderID )
|
|
131 |
|
function P
ageCorespo
ndence( $m
emberID, $
senderID )
|
140 |
|
{
|
|
132 |
|
{
|
141 |
|
global
$site;
|
|
133 |
|
global
$site;
|
142 |
|
global
$date_for
mat;
|
|
134 |
|
global
$date_for
mat;
|
143 |
|
|
|
135 |
|
|
144 |
|
$previ
ew_leight
= 25;
|
|
136 |
|
$previ
ew_leight
= 25;
|
145 |
|
|
|
137 |
|
|
146 |
|
$sende
r_nickname
= getProf
ileInfo( $
senderID )
; //db_arr
("SELECT `
NickName`
FROM `Prof
iles` WHER
E `ID` = '
$senderID'
");
|
|
138 |
|
$sende
r_nickname
= getProf
ileInfo( $
senderID )
; //db_arr
("SELECT `
NickName`
FROM `Prof
iles` WHER
E `ID` = '
$senderID'
");
|
147 |
|
|
|
139 |
|
|
148 |
|
$membe
r_to_sende
r_query =
"SELECT `P
rofiles`.`
ID` AS pID
, `Profile
s`.`NickNa
me`, `Mess
ages`.`ID`
AS mID, `
New`, DATE
_FORMAT( `
Date`, '$d
ate_format
') as Date
, `Subject
`, LEFT( `
Text`, {$p
review_lei
ght} ) AS
Preview FR
OM `Messag
es` LEFT J
OIN `Profi
les` ON `M
essages`.`
Recipient`
= `Profil
es`.`ID` W
HERE `Send
er` = '$me
mberID' AN
D `Recipie
nt` = '$se
nderID' OR
DER BY `Da
te` DESC";
|
|
140 |
|
$membe
r_to_sende
r_query =
"SELECT `P
rofiles`.`
ID` AS pID
, `Profile
s`.`NickNa
me`, `Mess
ages`.`ID`
AS mID, `
New`, DATE
_FORMAT( `
Date`, '$d
ate_format
') as Date
, `Subject
`, LEFT( `
Text`, {$p
review_lei
ght} ) AS
Preview FR
OM `Messag
es` LEFT J
OIN `Profi
les` ON `M
essages`.`
Recipient`
= `Profil
es`.`ID` W
HERE `Send
er` = '$me
mberID' AN
D `Recipie
nt` = '$se
nderID' OR
DER BY `Da
te` DESC";
|
149 |
|
$membe
r_to_sende
r_res = db
_res($memb
er_to_send
er_query);
|
|
141 |
|
$membe
r_to_sende
r_res = db
_res($memb
er_to_send
er_query);
|
150 |
|
|
|
142 |
|
|
151 |
|
$membe
r_to_sende
r_num = my
sql_num_ro
ws($member
_to_sender
_res);
|
|
143 |
|
$membe
r_to_sende
r_num = my
sql_num_ro
ws($member
_to_sender
_res);
|
152 |
|
|
|
144 |
|
|
153 |
|
$sende
r_to_membe
r_query =
"SELECT `M
essages`.`
ID` AS mID
, `New`, D
ATE_FORMAT
( `Date`,
'$date_for
mat') as D
ate, `Subj
ect`, LEFT
( `Text`,
{$preview_
leight} )
AS Preview
FROM `Mes
sages` LEF
T JOIN `Pr
ofiles` ON
Messages.
Sender = P
rofiles.ID
WHERE `Se
nder` = '$
senderID'
AND `Recip
ient` = '$
memberID'
ORDER BY `
Date` DESC
";
|
|
145 |
|
$sende
r_to_membe
r_query =
"SELECT `M
essages`.`
ID` AS mID
, `New`, D
ATE_FORMAT
( `Date`,
'$date_for
mat') as D
ate, `Subj
ect`, LEFT
( `Text`,
{$preview_
leight} )
AS Preview
FROM `Mes
sages` LEF
T JOIN `Pr
ofiles` ON
Messages.
Sender = P
rofiles.ID
WHERE `Se
nder` = '$
senderID'
AND `Recip
ient` = '$
memberID'
ORDER BY `
Date` DESC
";
|
154 |
|
$sende
r_to_membe
r_res = db
_res($send
er_to_memb
er_query);
|
|
146 |
|
$sende
r_to_membe
r_res = db
_res($send
er_to_memb
er_query);
|
155 |
|
|
|
147 |
|
|
156 |
|
$sende
r_to_membe
r_num = my
sql_num_ro
ws($sender
_to_member
_res);
|
|
148 |
|
$sende
r_to_membe
r_num = my
sql_num_ro
ws($sender
_to_member
_res);
|
157 |
|
|
|
149 |
|
|
158 |
|
$ret .
= '<div cl
ass="membe
r_to_sende
r">';
|
|
150 |
|
$ret .
= '<div cl
ass="membe
r_to_sende
r">';
|
159 |
|
$ret .
= '<table
cellpaddin
g="0" cell
spacing="0
" border="
0" width="
100%">';
|
|
151 |
|
$ret .
= '<table
cellpaddin
g="0" cell
spacing="0
" border="
0" width="
100%">';
|
160 |
|
$r
et .= '<tr
>';
|
|
152 |
|
$r
et .= '<tr
>';
|
161 |
|
$ret .=
'<td colsp
an="3" cla
ss="cor_ti
tle">';
|
|
153 |
|
$ret .=
'<td colsp
an="3" cla
ss="cor_ti
tle">';
|
162 |
|
$ret
.= _t('_m
essages_to
', $sender
_nickname[
'NickName'
]);
|
|
154 |
|
$ret
.= _t('_m
essages_to
', $sender
_nickname[
'NickName'
]);
|
163 |
|
$ret .=
'</td>';
|
|
155 |
|
$ret .=
'</td>';
|
164 |
|
$r
et .= '</t
r>';
|
|
156 |
|
$r
et .= '</t
r>';
|
165 |
|
$r
et .= '<tr
>';
|
|
157 |
|
$r
et .= '<tr
>';
|
166 |
|
$ret .=
'<td width
="17">';
|
|
158 |
|
$ret .=
'<td width
="17">';
|
167 |
|
$ret
.= '<img
src="' . g
etTemplate
Icon('conv
ert.gif')
. '" alt="
" />';
|
|
159 |
|
$ret
.= '<img
src="' . g
etTemplate
Icon('conv
ert.gif')
. '" alt="
" />';
|
168 |
|
$ret .=
'</td>';
|
|
160 |
|
$ret .=
'</td>';
|
169 |
|
$ret .=
'<td width
="70">';
|
|
161 |
|
$ret .=
'<td width
="70">';
|
170 |
|
$ret
.= _t('_D
ate');
|
|
162 |
|
$ret
.= _t('_D
ate');
|
171 |
|
$ret .=
'</td>';
|
|
163 |
|
$ret .=
'</td>';
|
172 |
|
$ret .=
'<td>';
|
|
164 |
|
$ret .=
'<td>';
|
173 |
|
$ret
.= _t('_S
ubject');
|
|
165 |
|
$ret
.= _t('_S
ubject');
|
174 |
|
$ret .=
'</td>';
|
|
166 |
|
$ret .=
'</td>';
|
175 |
|
$r
et .= '</t
r>';
|
|
167 |
|
$r
et .= '</t
r>';
|
176 |
|
|
|
168 |
|
|
177 |
|
$j_out
= '0';
|
|
169 |
|
$j_out
= '0';
|
178 |
|
while(
$member_to
_sender_ar
r = mysql_
fetch_asso
c($member_
to_sender_
res))
|
|
170 |
|
while(
$member_to
_sender_ar
r = mysql_
fetch_asso
c($member_
to_sender_
res))
|
179 |
|
{
|
|
171 |
|
{
|
180 |
|
if
(strlen( $
member_to_
sender_arr
['Subject'
] ) == 0 )
|
|
172 |
|
if
(strlen( $
member_to_
sender_arr
['Subject'
] ) == 0 )
|
181 |
|
{
|
|
173 |
|
{
|
182 |
|
|
|
174 |
|
|
183 |
|
$cor_sub
ject_out =
$member_t
o_sender_a
rr['Previe
w'];
|
|
175 |
|
$cor_sub
ject_out =
$member_t
o_sender_a
rr['Previe
w'];
|
184 |
|
if ( str
len( $memb
er_to_send
er_arr['Pr
eview'] )
>= $previe
w_length )
|
|
176 |
|
if ( str
len( $memb
er_to_send
er_arr['Pr
eview'] )
>= $previe
w_length )
|
185 |
|
{
|
|
177 |
|
{
|
186 |
|
$cor
_subject_o
ut .= "...
";
|
|
178 |
|
$cor
_subject_o
ut .= "...
";
|
187 |
|
}
|
|
179 |
|
}
|
188 |
|
}
|
|
180 |
|
}
|
189 |
|
el
se
|
|
181 |
|
el
se
|
190 |
|
{
|
|
182 |
|
{
|
191 |
|
$cor_sub
ject_out =
$member_t
o_sender_a
rr['Subjec
t'];
|
|
183 |
|
$cor_sub
ject_out =
$member_t
o_sender_a
rr['Subjec
t'];
|
192 |
|
if ( str
len( $memb
er_to_send
er_arr['Su
bject'] )
>= $previe
w_length )
|
|
184 |
|
if ( str
len( $memb
er_to_send
er_arr['Su
bject'] )
>= $previe
w_length )
|
193 |
|
{
|
|
185 |
|
{
|
194 |
|
$cor
_subject_o
ut .= "...
";
|
|
186 |
|
$cor
_subject_o
ut .= "...
";
|
195 |
|
}
|
|
187 |
|
}
|
196 |
|
}
|
|
188 |
|
}
|
197 |
|
|
|
189 |
|
|
198 |
|
if
( $_GET['m
essage'] =
= $member_
to_sender_
arr['mID']
)
|
|
190 |
|
if
( $_GET['m
essage'] =
= $member_
to_sender_
arr['mID']
)
|
199 |
|
{
|
|
191 |
|
{
|
200 |
|
$new_out
= 'curren
t_mes.png'
;
|
|
192 |
|
$new_out
= 'curren
t_mes.png'
;
|
201 |
|
$style_a
dd_in = ''
;
|
|
193 |
|
$style_a
dd_in = ''
;
|
202 |
|
}
|
|
194 |
|
}
|
203 |
|
el
se
|
|
195 |
|
el
se
|
204 |
|
{
|
|
196 |
|
{
|
205 |
|
if( '1'
== $member
_to_sender
_arr['New'
] )
|
|
197 |
|
if( '1'
== $member
_to_sender
_arr['New'
] )
|
206 |
|
{
|
|
198 |
|
{
|
207 |
|
$new
_out = 'no
t_readed.g
if';
|
|
199 |
|
$new
_out = 'no
t_readed.g
if';
|
208 |
|
$sty
le_add = '
style="fon
t-weight:b
old;"';
|
|
200 |
|
$sty
le_add = '
style="fon
t-weight:b
old;"';
|
209 |
|
}
|
|
201 |
|
}
|
210 |
|
else
|
|
202 |
|
else
|
211 |
|
{
|
|
203 |
|
{
|
212 |
|
$new
_out = 're
aded.gif';
|
|
204 |
|
$new
_out = 're
aded.gif';
|
213 |
|
$sty
le_add = '
';
|
|
205 |
|
$sty
le_add = '
';
|
214 |
|
}
|
|
206 |
|
}
|
215 |
|
}
|
|
207 |
|
}
|
216 |
|
|
|
208 |
|
|
217 |
|
if
( ($j_out%
2) != '0')
|
|
209 |
|
if
( ($j_out%
2) != '0')
|
218 |
|
{
|
|
210 |
|
{
|
219 |
|
$bgcolor
= '#FFFFF
F';
|
|
211 |
|
$bgcolor
= '#FFFFF
F';
|
220 |
|
}
|
|
212 |
|
}
|
221 |
|
el
se
|
|
213 |
|
el
se
|
222 |
|
{
|
|
214 |
|
{
|
223 |
|
$bgcolor
= '#EAF6C
6';
|
|
215 |
|
$bgcolor
= '#EAF6C
6';
|
224 |
|
}
|
|
216 |
|
}
|
225 |
|
|
|
217 |
|
|
226 |
|
|
|
218 |
|
|
227 |
|
$r
et .= '<tr
class="tr
_hover" bg
color="' .
$bgcolor
. '">';
|
|
219 |
|
$r
et .= '<tr
class="tr
_hover" bg
color="' .
$bgcolor
. '">';
|
228 |
|
$ret .=
'<td heigh
t="20">';
|
|
220 |
|
$ret .=
'<td heigh
t="20">';
|
229 |
|
$ret
.= '<img
src="' . g
etTemplate
Icon($new_
out) . '"
alt="" />'
;
|
|
221 |
|
$ret
.= '<img
src="' . g
etTemplate
Icon($new_
out) . '"
alt="" />'
;
|
230 |
|
$ret .=
'</td>';
|
|
222 |
|
$ret .=
'</td>';
|
231 |
|
$ret .=
'<td ' . $
style_add
. '>';
|
|
223 |
|
$ret .=
'<td ' . $
style_add
. '>';
|
232 |
|
$ret
.= $membe
r_to_sende
r_arr['Dat
e'];
|
|
224 |
|
$ret
.= $membe
r_to_sende
r_arr['Dat
e'];
|
233 |
|
$ret .=
'</td>';
|
|
225 |
|
$ret .=
'</td>';
|
234 |
|
$ret .=
'<td ' . $
style_add
. ' align=
"left">';
|
|
226 |
|
$ret .=
'<td ' . $
style_add
. ' align=
"left">';
|
235 |
|
$ret
.= '<a hr
ef="' . $s
ite['url']
. 'messag
es_outbox.
php?messag
e=' . $mem
ber_to_sen
der_arr['m
ID']. '">'
;
|
|
227 |
|
$ret
.= '<a hr
ef="' . $s
ite['url']
. 'messag
es_outbox.
php?messag
e=' . $mem
ber_to_sen
der_arr['m
ID']. '">'
;
|
236 |
|
$ret .= pr
ocess_line
_output(ht
ml2txt( $c
or_subject
_out ));
|
|
228 |
|
$ret .= pr
ocess_line
_output(ht
ml2txt( $c
or_subject
_out ));
|
237 |
|
$ret
.= '</a>'
;
|
|
229 |
|
$ret
.= '</a>'
;
|
238 |
|
$ret .=
'</td>';
|
|
230 |
|
$ret .=
'</td>';
|
239 |
|
$r
et .= '</t
r>';
|
|
231 |
|
$r
et .= '</t
r>';
|
240 |
|
$j
_out++;
|
|
232 |
|
$j
_out++;
|
241 |
|
}
|
|
233 |
|
}
|
242 |
|
$ret .
= '</table
>';
|
|
234 |
|
$ret .
= '</table
>';
|
243 |
|
$ret .
= '</div>'
;
|
|
235 |
|
$ret .
= '</div>'
;
|
244 |
|
|
|
236 |
|
|
245 |
|
//########
##########
##########
##########
##########
##########
##########
##########
###
|
|
237 |
|
//########
##########
##########
##########
##########
##########
##########
##########
###
|
246 |
|
|
|
238 |
|
|
247 |
|
$ret .
= '<div cl
ass="sende
r_to_membe
r">';
|
|
239 |
|
$ret .
= '<div cl
ass="sende
r_to_membe
r">';
|
248 |
|
$ret .
= '<table
cellpaddin
g="0" cell
spacing="0
" border="
0" width="
100%">';
|
|
240 |
|
$ret .
= '<table
cellpaddin
g="0" cell
spacing="0
" border="
0" width="
100%">';
|
249 |
|
$r
et .= '<tr
>';
|
|
241 |
|
$r
et .= '<tr
>';
|
250 |
|
$ret .=
'<td colsp
an="3" cla
ss="cor_ti
tle">';
|
|
242 |
|
$ret .=
'<td colsp
an="3" cla
ss="cor_ti
tle">';
|
251 |
|
$ret
.= _t('_m
essages_fr
om', $send
er_nicknam
e['NickNam
e']);
|
|
243 |
|
$ret
.= _t('_m
essages_fr
om', $send
er_nicknam
e['NickNam
e']);
|
252 |
|
$ret .=
'</td>';
|
|
244 |
|
$ret .=
'</td>';
|
253 |
|
$r
et .= '</t
r>';
|
|
245 |
|
$r
et .= '</t
r>';
|
254 |
|
$r
et .= '<tr
>';
|
|
246 |
|
$r
et .= '<tr
>';
|
255 |
|
$ret .=
'<td width
="17">';
|
|
247 |
|
$ret .=
'<td width
="17">';
|
256 |
|
$ret
.= '<img
src="' . g
etTemplate
Icon('conv
ert.gif')
. '" alt="
" />';
|
|
248 |
|
$ret
.= '<img
src="' . g
etTemplate
Icon('conv
ert.gif')
. '" alt="
" />';
|
257 |
|
$ret .=
'</td>';
|
|
249 |
|
$ret .=
'</td>';
|
258 |
|
$ret .=
'<td width
="70">';
|
|
250 |
|
$ret .=
'<td width
="70">';
|
259 |
|
$ret
.= _t('_D
ate');
|
|
251 |
|
$ret
.= _t('_D
ate');
|
260 |
|
$ret .=
'</td>';
|
|
252 |
|
$ret .=
'</td>';
|
261 |
|
$ret .=
'<td>';
|
|
253 |
|
$ret .=
'<td>';
|
262 |
|
$ret
.= _t('_S
ubject');
|
|
254 |
|
$ret
.= _t('_S
ubject');
|
263 |
|
$ret .=
'</td>';
|
|
255 |
|
$ret .=
'</td>';
|
264 |
|
$r
et .= '</t
r>';
|
|
256 |
|
$r
et .= '</t
r>';
|
265 |
|
|
|
257 |
|
|
266 |
|
$j_in
= '0';
|
|
258 |
|
$j_in
= '0';
|
267 |
|
while
($sender_t
o_member_a
rr = mysql
_fetch_ass
oc($sender
_to_member
_res))
|
|
259 |
|
while
($sender_t
o_member_a
rr = mysql
_fetch_ass
oc($sender
_to_member
_res))
|
268 |
|
{
|
|
260 |
|
{
|
269 |
|
if
(strlen( $
sender_to_
member_arr
['Subject'
] ) == 0 )
|
|
261 |
|
if
(strlen( $
sender_to_
member_arr
['Subject'
] ) == 0 )
|
270 |
|
{
|
|
262 |
|
{
|
271 |
|
$cor_sub
ject_in =
$sender_to
_member_ar
r['Preview
'];
|
|
263 |
|
$cor_sub
ject_in =
$sender_to
_member_ar
r['Preview
'];
|
272 |
|
if ( str
len( $send
er_to_memb
er_arr['Pr
eview'] )
>= $previe
w_length )
|
|
264 |
|
if ( str
len( $send
er_to_memb
er_arr['Pr
eview'] )
>= $previe
w_length )
|
273 |
|
{
|
|
265 |
|
{
|
274 |
|
$cor
_subject_i
n .= "..."
;
|
|
266 |
|
$cor
_subject_i
n .= "..."
;
|
275 |
|
}
|
|
267 |
|
}
|
276 |
|
}
|
|
268 |
|
}
|
277 |
|
el
se
|
|
269 |
|
el
se
|
278 |
|
{
|
|
270 |
|
{
|
279 |
|
$cor_sub
ject_in =
$sender_to
_member_ar
r['Subject
'];
|
|
271 |
|
$cor_sub
ject_in =
$sender_to
_member_ar
r['Subject
'];
|
280 |
|
if ( str
len( $send
er_to_memb
er_arr['Su
bject'] )
>= $previe
w_length )
|
|
272 |
|
if ( str
len( $send
er_to_memb
er_arr['Su
bject'] )
>= $previe
w_length )
|
281 |
|
{
|
|
273 |
|
{
|
282 |
|
$cor
_subject_i
n .= "..."
;
|
|
274 |
|
$cor
_subject_i
n .= "..."
;
|
283 |
|
}
|
|
275 |
|
}
|
284 |
|
}
|
|
276 |
|
}
|
285 |
|
|
|
277 |
|
|
286 |
|
if
( '1' == $
sender_to_
member_arr
['New'] )
|
|
278 |
|
if
( '1' == $
sender_to_
member_arr
['New'] )
|
287 |
|
{
|
|
279 |
|
{
|
288 |
|
$new_in
= 'not_rea
ded.gif';
|
|
280 |
|
$new_in
= 'not_rea
ded.gif';
|
289 |
|
$style_a
dd_in = 's
tyle="font
-weight:bo
ld;"';
|
|
281 |
|
$style_a
dd_in = 's
tyle="font
-weight:bo
ld;"';
|
290 |
|
}
|
|
282 |
|
}
|
291 |
|
el
se
|
|
283 |
|
el
se
|
292 |
|
{
|
|
284 |
|
{
|
293 |
|
$new_in
= 'readed.
gif';
|
|
285 |
|
$new_in
= 'readed.
gif';
|
294 |
|
$style_a
dd_in = ''
;
|
|
286 |
|
$style_a
dd_in = ''
;
|
295 |
|
}
|
|
287 |
|
}
|
296 |
|
|
|
288 |
|
|
297 |
|
|
|
289 |
|
|
298 |
|
if
( ($j_in%2
) != '0')
|
|
290 |
|
if
( ($j_in%2
) != '0')
|
299 |
|
{
|
|
291 |
|
{
|
300 |
|
$bgcolor
= '#FFFFF
F';
|
|
292 |
|
$bgcolor
= '#FFFFF
F';
|
301 |
|
}
|
|
293 |
|
}
|
302 |
|
el
se
|
|
294 |
|
el
se
|
303 |
|
{
|
|
295 |
|
{
|
304 |
|
$bgcolor
= '#EAF6C
6';
|
|
296 |
|
$bgcolor
= '#EAF6C
6';
|
305 |
|
}
|
|
297 |
|
}
|
306 |
|
|
|
298 |
|
|
307 |
|
$r
et .= '<tr
class="tr
_hover" bg
color="' .
$bgcolor
. '">';
|
|
299 |
|
$r
et .= '<tr
class="tr
_hover" bg
color="' .
$bgcolor
. '">';
|
308 |
|
$ret .=
'<td heigh
t="20">';
|
|
300 |
|
$ret .=
'<td heigh
t="20">';
|
309 |
|
$ret
.= '<img
src="' . g
etTemplate
Icon($new_
in) . '" a
lt="" />';
|
|
301 |
|
$ret
.= '<img
src="' . g
etTemplate
Icon($new_
in) . '" a
lt="" />';
|
310 |
|
$ret .=
'</td>';
|
|
302 |
|
$ret .=
'</td>';
|
311 |
|
$ret .=
'<td ' . $
style_add_
in . '>';
|
|
303 |
|
$ret .=
'<td ' . $
style_add_
in . '>';
|
312 |
|
$ret
.= $sende
r_to_membe
r_arr['Dat
e'];
|
|
304 |
|
$ret
.= $sende
r_to_membe
r_arr['Dat
e'];
|
313 |
|
$ret .=
'</td>';
|
|
305 |
|
$ret .=
'</td>';
|
314 |
|
$ret .=
'<td ' . $
style_add_
in . ' ali
gn="left">
';
|
|
306 |
|
$ret .=
'<td ' . $
style_add_
in . ' ali
gn="left">
';
|
315 |
|
$ret
.= '<a hr
ef="' . $s
ite['url']
. 'messag
es_inbox.p
hp?message
=' . $send
er_to_memb
er_arr['mI
D'] . '">'
;
|
|
307 |
|
$ret
.= '<a hr
ef="' . $s
ite['url']
. 'messag
es_inbox.p
hp?message
=' . $send
er_to_memb
er_arr['mI
D'] . '">'
;
|
316 |
|
$ret .= pr
ocess_line
_output(ht
ml2txt( $c
or_subject
_in ));
|
|
308 |
|
$ret .= pr
ocess_line
_output(ht
ml2txt( $c
or_subject
_in ));
|
317 |
|
$ret
.= '</a>'
;
|
|
309 |
|
$ret
.= '</a>'
;
|
318 |
|
$ret .=
'</td>';
|
|
310 |
|
$ret .=
'</td>';
|
319 |
|
$j_in+
+;
|
|
311 |
|
$j_in+
+;
|
320 |
|
}
|
|
312 |
|
}
|
321 |
|
|
|
313 |
|
|
322 |
|
$ret .
= '</table
>';
|
|
314 |
|
$ret .
= '</table
>';
|
323 |
|
$ret .
= '</div>'
;
|
|
315 |
|
$ret .
= '</div>'
;
|
324 |
|
|
|
316 |
|
|
325 |
|
|
|
317 |
|
|
326 |
|
return
$ret;
|
|
318 |
|
return
$ret;
|
327 |
|
}
|
|
319 |
|
}
|
328 |
|
|
|
320 |
|
|
329 |
|
?>
|
|
321 |
|
?>
|