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 . 'm
embers.inc
.php' );
|
|
24 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'm
embers.inc
.php' );
|
|
|
25 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'n
ews.inc.ph
p' );
|
25 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'u
tils.inc.p
hp' );
|
|
26 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'u
tils.inc.p
hp' );
|
26 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 's
haring.inc
.php' );
|
|
27 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 's
haring.inc
.php' );
|
27 |
|
|
|
28 |
|
|
28 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_CLASSES
. 'BxDolCl
assifieds.
php' );
|
|
29 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_CLASSES
. 'BxDolCl
assifieds.
php' );
|
29 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_CLASSES
. 'BxDolEv
ents.php'
);
|
|
30 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_CLASSES
. 'BxDolEv
ents.php'
);
|
|
|
31 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_CLASSES
. 'BxDolGr
oups.php'
);
|
|
|
32 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_CLASSES
. 'BxDolPa
geView.php
' );
|
|
|
33 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_CLASSES
. 'BxDolSh
aredMedia.
php' );
|
30 |
|
|
|
34 |
|
|
31 |
|
// -------
-------- p
age variab
les and lo
gin
|
|
35 |
|
//--------
----------
----------
----------
- member a
ccount cla
ss -------
----------
----------
----------
-----//
|
32 |
|
|
|
36 |
|
|
33 |
|
$_page['na
me_index']
= 6;
|
|
37 |
|
class BxDo
lMember ex
tends BxDo
lPageView
{
|
34 |
|
$_page['cs
s_name'] =
'member_p
anel.css';
|
|
|
35 |
|
|
|
38 |
|
|
36 |
|
$_page['ex
tra_js'] =
'<script
type="text
/javascrip
t">urlIcon
Loading =
"'.getTemp
lateIcon('
loading.gi
f').'";</s
cript>';
|
|
39 |
|
// mem
ber ID
|
|
|
40 |
|
var $i
Member;
|
37 |
|
|
|
41 |
|
|
38 |
|
$_page['he
ader'] = _
t( "_My Ac
count" );
|
|
42 |
|
// mem
ber info
|
39 |
|
//$_page['
header_tex
t'] = _t(
"_MEMBER_P
ANEL_H1",
$site['tit
le'] );
|
|
43 |
|
var $a
MemberInfo
;
|
40 |
|
//$_page['
header_tex
t'] = ('g4
' != $tmpl
) ? _t( "_
MEMBER_PAN
EL_H1", $s
ite['title
'] ) : "<i
mg src=\"{
$site['ima
ges']}cp.g
if\">";
|
|
|
41 |
|
|
|
44 |
|
|
42 |
|
// -------
-------- G
ET/POST ac
tions
|
|
45 |
|
// con
fig site a
rray
|
|
|
46 |
|
var $a
ConfSite;
|
43 |
|
|
|
47 |
|
|
44 |
|
$member['I
D']
= $_POST['
ID'];
|
|
48 |
|
// con
fig dir ar
ray
|
45 |
|
$member['P
assword']
= md5( p
rocess_pas
s_data( $_
POST['Pass
word'] ) )
;
|
|
49 |
|
var $a
ConfDir;
|
46 |
|
|
|
50 |
|
|
47 |
|
if ( !( $_
POST['ID']
&& $_POST
['Password
'] ) && (
$_COOKIE['
memberID']
&& $_COOK
IE['member
Password']
) )
|
|
51 |
|
var $b
AjaxMode;
|
48 |
|
{
|
|
|
49 |
|
if ( !
( $logged[
'member']
= member_a
uth( 0, fa
lse ) ) )
|
|
|
50 |
|
login_
form( _t(
"_LOGIN_OB
SOLETE" )
);
|
|
|
51 |
|
}
|
|
|
52 |
|
else
|
|
|
53 |
|
{
|
|
|
54 |
|
if ( !
$_POST['ID
'] && !$_P
OST['Passw
ord'] )
|
|
|
55 |
|
{
|
|
|
56 |
|
//
this is d
ynamic pag
e - send
headers to
do not ca
che this p
age
|
|
|
57 |
|
se
nd_headers
_page_chan
ged();
|
|
|
58 |
|
|
|
52 |
|
|
59 |
|
lo
gin_form()
;
|
|
53 |
|
/*
|
60 |
|
}
|
|
54 |
|
co
nstructor
|
61 |
|
else
|
|
55 |
|
*
@param int
$iMember
- member I
D
|
62 |
|
{
|
|
56 |
|
*/
|
63 |
|
$m
ember['ID'
] = getID(
$member['
ID'] );
|
|
|
64 |
|
|
|
|
65 |
|
//
Check if
ID and Pas
sword are
correct (a
ddslashes
already in
side)
|
|
|
66 |
|
if
( check_l
ogin( $mem
ber['ID'],
$member['
Password']
) )
|
|
|
67 |
|
{
|
|
|
68 |
|
setcooki
e( "member
ID", $_COO
KIE['membe
rID'], tim
e() - 3600
, '/' );
|
|
|
69 |
|
setcooki
e( "member
Password",
$_COOKIE[
'memberPas
sword'], t
ime() - 36
00, '/' );
|
|
|
70 |
|
setcooki
e( "member
ID", $memb
er['ID'],
0, '/' );
|
|
|
71 |
|
setcooki
e( "member
Password",
$member['
Password']
, 0, '/' )
;
|
|
|
72 |
|
//setcoo
kie( 'user
Array', 'a
User' . $m
ember['ID'
] );
|
|
|
73 |
|
$update_
res = db_r
es( "UPDAT
E `Profile
s` SET `La
stLoggedIn
` = NOW()
WHERE `ID`
= {$membe
r['ID']}"
);
|
|
|
74 |
|
createUs
erDataFile
( $member[
'ID'] );
|
|
|
75 |
|
|
|
|
76 |
|
$p_arr =
getProfil
eInfo( $me
mber['ID']
); //db_a
rr( "SELEC
T `NickNam
e` From `P
rofiles` W
HERE `ID`
= {$member
['ID']}" )
;
|
|
|
77 |
|
|
|
|
78 |
|
if( !$sU
rlRelocate
= $_POST[
'relocate'
] or basen
ame( $_POS
T['relocat
e'] ) == '
index.php'
or basena
me( $_POST
['relocate
'] ) == 'j
oin_form.p
hp' )
|
|
|
79 |
|
$sU
rlRelocate
= $_SERVE
R['PHP_SEL
F'];
|
|
|
80 |
|
|
|
|
81 |
|
$_page['
name_index
'] = 150;
|
|
|
82 |
|
$_page['
css_name']
= '';
|
|
|
83 |
|
|
|
|
84 |
|
$_ni = $
_page['nam
e_index'];
|
|
|
85 |
|
$_page_c
ont[$_ni][
'page_main
_code'] =
MsgBox( _t
( '_Please
Wait' ) )
;
|
|
|
86 |
|
$_page_c
ont[$_ni][
'url_reloc
ate'] = $s
UrlRelocat
e;
|
|
|
87 |
|
PageCode
();
|
|
|
88 |
|
}
|
|
|
89 |
|
ex
it;
|
|
|
90 |
|
}
|
|
|
91 |
|
}
|
|
|
92 |
|
|
|
|
93 |
|
$member['I
D'] = (int
)$_COOKIE[
'memberID'
];
|
|
|
94 |
|
$member['P
assword']
= $_COOKIE
['memberPa
ssword'];
|
|
|
95 |
|
|
|
|
96 |
|
$p_arr = g
etProfileI
nfo( $memb
er['ID'] )
;
|
|
|
97 |
|
|
|
|
98 |
|
// -------
-------- [
END] GET/P
OST action
s
|
|
|
99 |
|
|
|
|
100 |
|
|
|
|
101 |
|
//Ajax loa
ders
|
|
|
102 |
|
|
|
|
103 |
|
if( $_GET[
'show_only
'] )
|
|
|
104 |
|
{
|
|
|
105 |
|
switch
( $_GET['s
how_only']
)
|
|
|
106 |
|
{
|
|
|
107 |
|
ca
se 'shareM
usic':
|
|
|
108 |
|
$sCaptio
n = db_val
ue( "SELEC
T `Caption
` FROM `Ac
countCompo
se` WHERE
`Func` = '
ShareMusic
'" );
|
|
|
109 |
|
echo Pag
eCompShare
MusicConte
nt( $sCapt
ion, $memb
er['ID'] )
;
|
|
|
110 |
|
br
eak;
|
|
|
111 |
|
ca
se 'shareP
hotos':
|
|
|
112 |
|
$sCaptio
n = db_val
ue( "SELEC
T `Caption
` FROM `Ac
countCompo
se` WHERE
`Func` = '
SharePhoto
s'" );
|
|
|
113 |
|
echo Pag
eCompShare
PhotosCont
ent($sCapt
ion, $memb
er['ID']);
|
|
|
114 |
|
br
eak;
|
|
|
115 |
|
ca
se 'shareV
ideos':
|
|
|
116 |
|
$sCaptio
n = db_val
ue( "SELEC
T `Caption
` FROM `Ac
countCompo
se` WHERE
`Func` = '
ShareVideo
s'" );
|
|
|
117 |
|
echo Pag
eCompShare
VideosCont
ent($sCapt
ion, $memb
er['ID']);
|
|
|
118 |
|
br
eak;
|
|
|
119 |
|
}
|
|
|
120 |
|
|
|
|
121 |
|
exit;
|
|
|
122 |
|
}
|
|
|
123 |
|
|
|
|
124 |
|
// -------
-------- p
age compon
ents
|
|
|
125 |
|
|
|
|
126 |
|
$_ni = $_p
age['name_
index'];
|
|
|
127 |
|
$_page_con
t[$_ni]['c
ontent_col
umn_1'] =
getPageBlo
cks( 1 );
|
|
|
128 |
|
$_page_con
t[$_ni]['c
ontent_col
umn_2'] =
getPageBlo
cks( 2 );
|
|
|
129 |
|
|
|
|
130 |
|
|
|
|
131 |
|
|
|
|
132 |
|
// -------
-------- [
END] page
components
|
|
|
133 |
|
|
|
|
134 |
|
// this is
dynamic p
age - sen
d headers
to do not
cache this
page
|
|
|
135 |
|
send_heade
rs_page_ch
anged();
|
|
|
136 |
|
|
|
|
137 |
|
PageCode()
;
|
|
|
138 |
|
|
|
|
139 |
|
// -------
-------- p
age compon
ents funct
ions
|
|
|
140 |
|
|
|
|
141 |
|
|
|
|
142 |
|
function g
etPageBloc
ks( $iCol
)
|
|
|
143 |
|
{
|
|
|
144 |
|
global
$member;
|
|
|
145 |
|
|
|
|
146 |
|
$ret =
'';
|
|
|
147 |
|
|
|
|
148 |
|
$rBloc
ks = db_re
s( "SELECT
* FROM `A
ccountComp
ose` WHERE
`Column`
= $iCol OR
DER BY `Or
der`" );
|
|
|
149 |
|
|
|
|
150 |
|
while(
$aBlock =
mysql_fet
ch_assoc(
$rBlocks )
)
|
|
|
151 |
|
{
|
|
|
152 |
|
$f
unc = 'Pag
eComp' . $
aBlock['Fu
nc'];
|
|
|
153 |
|
|
|
|
154 |
|
if
( strpos(
$aBlock['F
unc'], 'Sh
are' ) ===
false )
|
|
|
155 |
|
{
|
|
|
156 |
|
$sSH = '
';
|
|
|
157 |
|
$cont =
$func( $aB
lock['Cont
ent'], $sS
H );
|
|
|
158 |
|
if( $con
t ) {
|
|
|
159 |
|
$blo
ck = Desig
nBoxConten
t ( _t( $a
Block['Cap
tion'] ),
$cont, 1,
$sSH );}
|
|
|
160 |
|
else
|
|
|
161 |
|
$blo
ck = '';
|
|
|
162 |
|
}
|
|
|
163 |
|
el
se
|
|
|
164 |
|
{
|
|
|
165 |
|
$func =
'PageComp'
. $aBlock
['Func'];
|
|
|
166 |
|
$block =
$func( $a
Block['Cap
tion'], $m
ember['ID'
] );
|
|
|
167 |
|
}
|
|
|
168 |
|
|
|
|
169 |
|
$r
et .= $blo
ck;
|
|
|
170 |
|
}
|
|
|
171 |
|
|
|
|
172 |
|
return
$ret;
|
|
|
173 |
|
}
|
|
|
174 |
|
|
|
|
175 |
|
function P
ageCompRSS
( $sConten
t )
|
|
|
176 |
|
{
|
|
|
177 |
|
global
$p_arr, $
site;
|
|
|
178 |
|
|
|
|
179 |
|
list(
$sUrl, $iN
um ) = exp
lode( '#',
$sContent
);
|
|
|
180 |
|
$iNum
= (int)$iN
um;
|
|
|
181 |
|
|
|
57 |
|
|
182 |
|
$sUrl
= str_repl
ace(array(
'{SiteUrl}
', '{NickN
ame}'),arr
ay($site['
url'], $p_
arr['NickN
ame']), $s
Url);
|
|
58 |
|
functi
on BxDolMe
mber($iMem
ber, &$aSi
te, &$aDir
) {
|
|
|
59 |
|
$t
his->iMemb
er = (
int)$iMemb
er;
|
|
|
60 |
|
$t
his->aMemb
erInfo = g
etProfileI
nfo($this-
>iMember);
|
183 |
|
|
|
61 |
|
|
184 |
|
return
genRSSHtm
lOut( $sUr
l, $iNum )
;
|
|
62 |
|
$t
his->aConf
Site = $aS
ite;
|
185 |
|
}
|
|
63 |
|
$t
his->aConf
Dir = $aD
ir;
|
186 |
|
|
|
64 |
|
|
187 |
|
function P
ageCompEch
o( $sConte
nt )
|
|
65 |
|
pa
rent::BxDo
lPageView(
'member');
|
188 |
|
{
|
|
|
189 |
|
return
$sContent
;
|
|
|
190 |
|
}
|
|
66 |
|
}
|
191 |
|
|
|
67 |
|
|
192 |
|
functi
on genShow
HideItem(
$wrapperID
, $default
= '' )
|
|
68 |
|
functi
on genShow
HideItem(
$wrapperID
, $default
= '' )
|
193 |
|
{
|
|
69 |
|
{
|
194 |
|
if
( !$defaul
t )
|
|
70 |
|
if
( !$defaul
t )
|
195 |
|
$default
= _t( '_H
ide' );
|
|
71 |
|
$default
= _t( '_H
ide' );
|
196 |
|
|
|
72 |
|
|
197 |
|
re
turn '
|
|
73 |
|
re
turn '
|
198 |
|
<d
iv class="
caption_it
em">
|
|
74 |
|
<d
iv class="
caption_it
em">
|
199 |
|
<a href=
"javascrip
t:void(0);
"
|
|
75 |
|
<a href=
"javascrip
t:void(0);
"
|
200 |
|
onclic
k="el = do
cument.get
ElementByI
d(\'' . $w
rapperID .
'\'); if(
el.style.
display ==
\'none\'
) {el.styl
e.display
= \'block\
'; this.in
nerHTML =
\'' . _t(
'_Hide' )
. '\';} el
se {el.sty
le.display
= \'none\
'; this.in
nerHTML =
\'' . _t(
'_Show' )
. '\';}"
|
|
76 |
|
onclic
k="el = do
cument.get
ElementByI
d(\'' . $w
rapperID .
'\'); if(
el.style.
display ==
\'none\'
) {el.styl
e.display
= \'block\
'; this.in
nerHTML =
\'' . _t(
'_Hide' )
. '\';} el
se {el.sty
le.display
= \'none\
'; this.in
nerHTML =
\'' . _t(
'_Show' )
. '\';}"
|
201 |
|
>' . $
default .
'</a>
|
|
77 |
|
>' . $
default .
'</a>
|
202 |
|
</
div>';
|
|
78 |
|
</
div>';
|
203 |
|
}
|
|
79 |
|
}
|
204 |
|
|
|
80 |
|
|
205 |
|
|
|
81 |
|
function
ge
tBlock
Co
de_
Classified
s(
)
{
|
206 |
|
function
Pa
ge
Co
mp
Classified
s(
$sCaption
,
&$sShowHid
e
)
|
|
82 |
|
if
($
this->iMem
ber
>
0)
{
|
207 |
|
{
|
|
83 |
|
$s
ql
Query
=
"
|
208 |
|
gl
obal $site
;
|
|
|
209 |
|
gl
obal $shor
t_date_for
mat;
|
|
|
210 |
|
gl
obal $p_ar
r;
|
|
|
211 |
|
$p
hp_date_fo
rmat = get
Param( 'ph
p_date_for
mat' );
|
|
|
212 |
|
|
|
|
213 |
|
//
$iBlogLimi
tChars = (
int)getPar
am("max_cl
assified_p
review");
|
|
|
214 |
|
$i
BlogLimitC
hars = (in
t)getParam
("max_blog
_preview")
;
|
|
|
215 |
|
$I
D = $p_arr
['ID'];
|
|
|
216 |
|
if
($
ID
>
0)
{
|
|
|
217 |
|
$s
Query
=
"
|
|
|
218 |
|
SELE
CT DISTINC
T
|
|
84 |
|
SELE
CT DISTINC
T
|
219 |
|
`Classifie
dsAdvertis
ements`.`I
D`
,
|
|
85 |
|
COUNT(
`Classifie
dsAdvertis
ements`.`I
D`
)
|
220 |
|
`Cla
ssifiedsAd
vertisemen
ts`.`Subje
ct`,
|
|
|
221 |
|
`Cla
ssifiedsAd
vertisemen
ts`.`Media
`,
|
|
|
222 |
|
`Pro
files`.`Ni
ckName`,
|
|
|
223 |
|
UNIX
_TIMESTAMP
( `Classif
iedsAdvert
isements`.
`DateTime`
) as `Dat
eTime_f`,
|
|
|
224 |
|
`Cla
ssifiedsAd
vertisemen
ts`.`DateT
ime`,
|
|
|
225 |
|
`Cla
ssifieds`.
`Name`, `C
lassifieds
`.`ID` AS
`CatID`,
|
|
|
226 |
|
`Cla
ssifiedsSu
bs`.`NameS
ub`, `Clas
sifiedsSub
s`.`ID` AS
`SubCatID
`,
|
|
|
227 |
|
`Cla
ssifiedsAd
vertisemen
ts`.`Messa
ge`,
|
|
|
228 |
|
COUN
T(`ClsAdvC
omments`.`
ID`) AS 'C
ommCount'
|
|
|
229 |
|
FROM
`Classifi
edsAdverti
sements`
|
|
86 |
|
FROM
`Classifi
edsAdverti
sements`
|
230 |
|
LEFT
JOIN `Cla
ssifiedsSu
bs`
|
|
|
231 |
|
ON `
Classified
sSubs`.`ID
`=`Classif
iedsAdvert
isements`.
`IDClassif
iedsSubs`
|
|
|
232 |
|
LEFT
JOIN `Cla
ssifieds`
|
|
|
233 |
|
ON `
Classified
s`.`ID`=`C
lassifieds
Subs`.`IDC
lassified`
|
|
|
234 |
|
LEFT
JOIN `Pro
files` ON
`Profiles`
.`ID`=`Cla
ssifiedsAd
vertisemen
ts`.`IDPro
file`
|
|
|
235 |
|
LEFT
JOIN `Cls
AdvComment
s` ON `Cls
AdvComment
s`.`IDAdv`
=`Classifi
edsAdverti
sements`.`
ID`
|
|
|
236 |
|
WHER
E
|
|
87 |
|
WHER
E
|
237 |
|
`Classifie
dsAdvertis
ements`.`I
DProfile`
=
'{$
ID
}'
AND
|
|
88 |
|
`Classifie
dsAdvertis
ements`.`I
DProfile`
=
'{$
this->iMem
ber
}'
AND
`Classifie
dsAdvertis
ements`.`S
tatus`
=
'active'
|
238 |
|
`Cla
ssifiedsAd
vertisemen
ts`.`Statu
s` = 'acti
ve'
|
|
|
239 |
|
GROU
P BY `Clas
sifiedsAdv
ertisement
s`.`ID`
|
|
89 |
|
GROU
P BY `Clas
sifiedsAdv
ertisement
s`.`ID`
|
240 |
|
ORDE
R BY `Date
Time` DESC
|
|
|
241 |
|
LIMI
T 5
|
|
|
242 |
|
";
|
|
90 |
|
";
|
|
|
91 |
|
$iBlogs
= db_value
( $sqlQuer
y );
|
243 |
|
|
|
92 |
|
|
244 |
|
$rBlogs
= db_res(
$sQuery );
|
|
93 |
|
if( $iBl
ogs > 0 )
{
|
245 |
|
|
|
|
246 |
|
if( !mys
ql_num_row
s( $rBlogs
) )
|
|
|
247 |
|
retu
rn '';
|
|
|
248 |
|
|
|
|
249 |
|
ob_start
();
|
|
|
250 |
|
?>
|
|
|
251 |
|
<div id=
"container
_classifie
ds">
|
|
|
252 |
|
<?
|
|
|
253 |
|
|
|
|
254 |
|
$oClassi
fieds = ne
w BxDolCla
ssifieds()
;
|
|
94 |
|
$oCl
assifieds
= new BxDo
lClassifie
ds();
|
255 |
|
|
|
95 |
|
$sBl
ocks = $oC
lassifieds
->GenAnyBl
ockContent
('last', $
this->iMem
ber);
|
256 |
|
while( $
aBlog = my
sql_fetch_
assoc( $rB
logs ) )
|
|
96 |
|
$ret
= <<<EOF
|
257 |
|
{
|
|
97 |
|
<div id="c
ontainer_c
lassifieds
">
|
258 |
|
$sPi
c = $oClas
sifieds->g
etImageCod
e($aBlog['
Media'],TR
UE);
|
|
98 |
|
{$sBlo
cks}
|
259 |
|
|
|
|
260 |
|
$sLi
nkMore = '
';
|
|
|
261 |
|
if(
strlen( $a
Blog['Mess
age']) > $
iBlogLimit
Chars )
|
|
|
262 |
|
//$sLinkMo
re = "...
<a href=\"
".$site['u
rl']."blog
.php?owner
=".$ID."&s
how=blog&b
logID=".$a
Blog['Post
ID']."\">"
._t('_Read
more')."<
/a>";
|
|
|
263 |
|
$sLinkMore
= "... <a
href=\"".
$site['url
']."classi
fieds.php?
ShowAdvert
isementID=
".$aBlog['
ID']."\">"
._t('_Read
more')."<
/a>";
|
|
|
264 |
|
|
|
|
265 |
|
$sBl
ogSnippet
= substr(
strip_tags
( $aBlog['
Message']
), 0, $iBl
ogLimitCha
rs ) . $sL
inkMore;
|
|
|
266 |
|
?>
|
|
|
267 |
|
<div class
="icon_blo
ck">
|
|
|
268 |
|
<div
class="thu
mbnail_blo
ck" style=
"float:lef
t;">
|
|
|
269 |
|
<?
echo '<a
href="' .
$site['url
'] . 'clas
sifieds.ph
p?ShowAdve
rtisementI
D=' . $aBl
og['ID'] .
'" class=
"bottom_te
xt">' ?>
|
|
|
270 |
|
<?= $sPi
c ?>
|
|
|
271 |
|
</
a>
|
|
|
272 |
|
</div>
|
|
|
273 |
|
</div>
|
|
|
274 |
|
<div class
="blog_wra
pper_n">
|
|
|
275 |
|
<div c
lass="blog
_subject_n
">
|
|
|
276 |
|
<?
echo '<a
href="' .
$site['url
'] . 'clas
sifieds.ph
p?ShowAdve
rtisementI
D=' . $aBl
og['ID'] .
'" class=
"bottom_te
xt">' ?>
|
|
|
277 |
|
<?= $aBl
og['Subjec
t'] ?>
|
|
|
278 |
|
</
a>
|
|
|
279 |
|
</div>
|
|
|
280 |
|
<div c
lass="blog
Info">
|
|
|
281 |
|
<s
pan><img s
rc="<?= ge
tTemplateI
con( 'cloc
k.gif' ) ?
>" /><?= d
ate( $php_
date_forma
t, $aBlog[
'DateTime_
f'] ) . '
' ?></span
>
|
|
|
282 |
|
<s
pan><?= _t
( '_in Cat
egory', ge
tTemplateI
con( 'ad_c
ategory.gi
f' ), 'cla
ssifieds.p
hp?bClassi
fiedID='.$
aBlog['Cat
ID'], proc
ess_line_o
utput($aBl
og['Name']
) ).' / '.
|
|
|
283 |
|
'<
a href="cl
assifieds.
php?bSubCl
assifiedID
=' . $aBlo
g['SubCatI
D'].'">'.p
rocess_lin
e_output($
aBlog['Nam
eSub']).'<
/a>' ?></s
pan>
|
|
|
284 |
|
<s
pan><?= _t
( '_commen
ts N', get
TemplateIc
on( 'add_c
omment.gif
' ), $aBlo
g['CommCou
nt'] ) ?><
/span>
|
|
|
285 |
|
</div>
|
|
|
286 |
|
<div c
lass="blog
Snippet">
|
|
|
287 |
|
<?
= $sBlogSn
ippet ?>
|
|
|
288 |
|
</div>
|
|
|
289 |
|
</div>
|
|
|
290 |
|
<div class
="clear_bo
th"></div>
|
|
|
291 |
|
<?
|
|
|
292 |
|
}
|
|
|
293 |
|
?>
|
|
|
294 |
|
</div>
|
|
99 |
|
</div>
|
295 |
|
<?
|
|
100 |
|
EOF;
|
296 |
|
$ret = o
b_get_clea
n();
|
|
|
297 |
|
|
|
101 |
|
|
298 |
|
$show_hide
=
genShowHid
eItem(
'container
_classifie
ds'
);
|
|
102 |
|
$show_hide
=
$this->
genShowHid
eItem(
'container
_classifie
ds'
);
|
299 |
|
$sShowHi
de = $show
_hide;
|
|
103 |
|
$sSh
owHide = $
show_hide;
|
300 |
|
return $
ret;
|
|
104 |
|
retu
rn $ret;
|
|
|
105 |
|
} else
|
|
|
106 |
|
retu
rn '';
|
301 |
|
}
else {
|
|
107 |
|
}
else {
|
302 |
|
return M
sgBox( _t(
'_im_textN
oCurrUser'
) );
|
|
108 |
|
return M
sgBox( _t(
'_im_textN
oCurrUser'
) );
|
303 |
|
}
|
|
109 |
|
}
|
304 |
|
//
return Des
ignBoxCont
ent( _t( $
sCaption )
, $ret, 1,
$show_hid
e );
|
|
|
305 |
|
}
|
|
110 |
|
}
|
306 |
|
|
|
111 |
|
|
307 |
|
function
Pa
ge
Co
mp
Events(
$sCaption,
&$sShowHid
e
)
|
|
112 |
|
function
ge
tBlock
Co
de_
Events(
)
{
|
308 |
|
{
|
|
113 |
|
if
($
this->iMem
ber
>
0)
{
|
309 |
|
gl
obal $site
;
|
|
114 |
|
$s
ql
Query
=
"
|
310 |
|
gl
obal $shor
t_date_for
mat;
|
|
115 |
|
SELECT
CO
UN
T
(`SDatingE
vents`.`
ID
`)
AS
'Cn
t
'
|
311 |
|
$p
hp_date_fo
rmat = get
Param( 'ph
p_date_for
mat' );
|
|
|
312 |
|
//
$iBlogLimi
tChars = (
int)getPar
am("max_cl
assified_p
review");
|
|
|
313 |
|
$i
BlogLimitC
hars = (in
t)getParam
("max_blog
_preview")
;
|
|
|
314 |
|
gl
obal $p_ar
r;
|
|
|
315 |
|
$I
D = $p_arr
['ID'];
|
|
|
316 |
|
if
($
ID
>
0)
{
|
|
|
317 |
|
/*$sQuer
y = "
|
|
|
318 |
|
SELE
CT DISTINC
T `SDating
Events`. *
, `Profil
es`.`NickN
ame`,
|
|
|
319 |
|
UNIX
_TIMESTAMP
( `SDating
Events`.`E
ventStart`
) as `Dat
eTime_f`
|
|
|
320 |
|
FROM
`SDatingE
vents`
|
|
|
321 |
|
LEFT
JOIN `Pro
files` ON
`Profiles`
.`ID` = `S
DatingEven
ts`.`Respo
nsibleID`
|
|
|
322 |
|
WHER
E `SDating
Events`.`R
esponsible
ID` = {$ID
} AND
|
|
|
323 |
|
`SDa
tingEvents
`.`Status`
= 'Active
'
|
|
|
324 |
|
ORDE
R BY `Even
tStart` DE
SC
|
|
|
325 |
|
LIMI
T 5
|
|
|
326 |
|
";*/
|
|
|
327 |
|
|
|
|
328 |
|
$s
Query
=
"
|
|
|
329 |
|
SELE
CT DISTINC
T `SDating
Events`. *
, `Profil
es`.`NickN
ame` ,
|
|
|
330 |
|
UN
IX_
T
IMESTAMP
(
`SDatingEv
ents`.`
EventStart
`
)
AS
`Da
t
eTime_f`
|
|
|
331 |
|
FROM
`SDatingE
vents`
|
|
116 |
|
FROM
`SDatingE
vents`
|
332 |
|
INN
E
R
JOIN
`
P
r
of
i
le
s`
ON
`
P
r
of
i
le
s`.`ID
`
=
`SDatingEv
ents`.`
Responsibl
e
ID`
|
|
117 |
|
L
E
FT
JOIN
`
SDating
P
a
r
t
i
cipant
s`
ON
`
SDating
P
a
r
t
i
cipant
s`.`ID
Event
`
=
`SDatingEv
ents`.`
ID`
|
333 |
|
INNE
R JOIN `SD
atingParti
cipants` O
N `SDating
Participan
ts`.`IDEve
nt` = `SDa
tingEvents
`.`ID`
|
|
118 |
|
WHERE
(
`SDatingEv
ents`.`Res
ponsibleID
`
=
'{$
this->iMem
ber}'
OR
`SDatingPa
rticipants
`.`
ID
Member`
=
'{$this->i
Member
}'
)
|
334 |
|
WHER
E (
|
|
|
335 |
|
`SDatingEv
ents`.`Res
ponsibleID
`
=
'{$
ID
}'
|
|
|
336 |
|
OR `
SDatingPar
ticipants`
.`IDMember
` = '{$ID}
'
|
|
|
337 |
|
)
|
|
|
338 |
|
AND
`SDatingEv
ents`.`Sta
tus` = 'Ac
tive'
|
|
119 |
|
AND
`SDatingEv
ents`.`Sta
tus` = 'Ac
tive'
|
339 |
|
ORDE
R BY `Even
tStart` DE
SC
|
|
|
340 |
|
LIMI
T 5
|
|
|
341 |
|
";
|
|
120 |
|
";
|
|
|
121 |
|
$iBlogs
= db_value
( $sqlQuer
y );
|
342 |
|
|
|
122 |
|
|
343 |
|
$rBlogs
= db_res(
$sQuery );
|
|
123 |
|
if( $iBl
ogs > 0 )
{
|
344 |
|
|
|
|
345 |
|
if( !mys
ql_num_row
s( $rBlogs
) )
|
|
|
346 |
|
retu
rn '';
|
|
|
347 |
|
|
|
|
348 |
|
ob_start
();
|
|
|
349 |
|
?>
|
|
|
350 |
|
<div id=
"container
_events">
|
|
|
351 |
|
<?
|
|
|
352 |
|
|
|
|
353 |
|
$oEvents
= new BxD
olEvents()
;
|
|
124 |
|
$oEv
ents = new
BxDolEven
ts();
|
354 |
|
|
|
125 |
|
$sBl
ocks = $oE
vents->Gen
AnyBlockCo
ntent('las
t', $this-
>iMember);
|
355 |
|
while( $
aBlog = my
sql_fetch_
assoc( $rB
logs ) )
|
|
126 |
|
$ret
= <<<EOF
|
356 |
|
{
|
|
127 |
|
<div id="c
ontainer_e
vents">
|
357 |
|
$sPi
c = $oEven
ts->GetEve
ntPicture(
$aBlog['ID
']);
|
|
128 |
|
{$sBlo
cks}
|
358 |
|
|
|
|
359 |
|
$sLi
nkMore = '
';
|
|
|
360 |
|
if(
strlen( $a
Blog['Desc
ription'])
> $iBlogL
imitChars
)
|
|
|
361 |
|
//$sLinkMo
re = "...
<a href=\"
".$site['u
rl']."blog
.php?owner
=".$ID."&s
how=blog&b
logID=".$a
Blog['Post
ID']."\">"
._t('_Read
more')."<
/a>";
|
|
|
362 |
|
$sLinkMore
= "... <a
href=\"".
$site['url
']."events
.php?actio
n=show_inf
o&event_id
=".$aBlog[
'ID']."\">
"._t('_Rea
d more')."
</a>";
|
|
|
363 |
|
|
|
|
364 |
|
$sBl
ogSnippet
= substr(
strip_tags
( $aBlog['
Descriptio
n'] ), 0,
$iBlogLimi
tChars ) .
$sLinkMor
e;
|
|
|
365 |
|
?>
|
|
|
366 |
|
<div class
="icon_blo
ck">
|
|
|
367 |
|
<?= $s
Pic ?>
|
|
|
368 |
|
</div>
|
|
|
369 |
|
<div class
="blog_wra
pper_n">
|
|
|
370 |
|
<div c
lass="blog
_subject_n
">
|
|
|
371 |
|
<?
echo '<a
href="' .
$site['url
'] . 'even
ts.php?act
ion=show_i
nfo&event_
id=' . $aB
log['ID']
. '" class
="bottom_t
ext">' ?>
|
|
|
372 |
|
<?= $aBl
og['Title'
] ?>
|
|
|
373 |
|
</
a>
|
|
|
374 |
|
</div>
|
|
|
375 |
|
<div c
lass="blog
Info">
|
|
|
376 |
|
<s
pan><img s
rc="<?= ge
tTemplateI
con( 'cloc
k.gif' ) ?
>" /><?= d
ate( $php_
date_forma
t, $aBlog[
'DateTime_
f'] ) . '
' ?></span
>
|
|
|
377 |
|
</div>
|
|
|
378 |
|
<div c
lass="blog
Snippet">
|
|
|
379 |
|
<?
= $sBlogSn
ippet ?>
|
|
|
380 |
|
</div>
|
|
|
381 |
|
</div>
|
|
|
382 |
|
<div class
="clear_bo
th"></div>
|
|
|
383 |
|
<?
|
|
|
384 |
|
}
|
|
|
385 |
|
?>
|
|
|
386 |
|
</div>
|
|
129 |
|
</div>
|
387 |
|
<?
|
|
130 |
|
EOF;
|
388 |
|
$ret = o
b_get_clea
n();
|
|
|
389 |
|
|
|
|
390 |
|
$show_hi
de = genSh
owHideItem
( 'contain
er_events'
);
|
|
|
391 |
|
|
|
131 |
|
|
|
|
132 |
|
$sho
w_hide = $
this->genS
howHideIte
m( 'contai
ner_events
' );
|
392 |
|
$sShowHi
de = $show
_hide;
|
|
133 |
|
$sSh
owHide = $
show_hide;
|
393 |
|
return $
ret;
|
|
134 |
|
retu
rn $ret;
|
394 |
|
//echo D
esignBoxCo
ntent( _t(
$sCaption
), $ret,
1, $show_h
ide );
|
|
135 |
|
} else
|
|
|
136 |
|
retu
rn '';
|
395 |
|
}
else {
|
|
137 |
|
}
else {
|
396 |
|
return M
sgBox( _t(
'_im_textN
oCurrUser'
) );
|
|
138 |
|
return M
sgBox( _t(
'_im_textN
oCurrUser'
) );
|
397 |
|
}
|
|
139 |
|
}
|
398 |
|
}
|
|
140 |
|
}
|
399 |
|
|
|
141 |
|
|
400 |
|
function
Pa
ge
Co
mp
Groups(
$sCaption,
&$sShowHid
e
)
|
|
142 |
|
function
ge
tBlock
Co
de_
Groups(
)
{
|
401 |
|
{
|
|
143 |
|
if
($
this->iMem
ber
>
0)
{
|
402 |
|
gl
obal $site
;
|
|
144 |
|
$s
ql
Query
=
"
|
403 |
|
gl
obal $shor
t_date_for
mat;
|
|
145 |
|
SELE
CT COUNT(`
Groups`.`I
D`) AS 'Cn
t'
|
404 |
|
$p
hp_date_fo
rmat = get
Param( 'ph
p_date_for
mat' );
|
|
|
405 |
|
//
$iBlogLimi
tChars = (
int)getPar
am("max_cl
assified_p
review");
|
|
|
406 |
|
$i
BlogLimitC
hars = (in
t)getParam
("max_blog
_preview")
;
|
|
|
407 |
|
gl
obal $p_ar
r;
|
|
|
408 |
|
$I
D = $p_arr
['ID'];
|
|
|
409 |
|
if
($
ID
>
0)
{
|
|
|
410 |
|
$s
Query
=
"
|
|
|
411 |
|
SELE
CT DISTINC
T `Groups`
.`ID`, `Gr
oups`.`Nam
e`, `Group
s`.`Desc`,
|
|
|
412 |
|
UNIX
_TIMESTAMP
( `Groups`
.`created`
) as `Dat
eTime_f`,
|
|
|
413 |
|
`Pro
files`.`Ni
ckName`,
|
|
|
414 |
|
`Gro
upsCateg`.
`Name` AS
'CategName
', `Groups
Categ`.`ID
` AS `Cate
gID`
|
|
|
415 |
|
FROM
`GroupsMe
mbers`, `G
roups`
|
|
146 |
|
FROM
`GroupsMe
mbers`, `G
roups`
|
416 |
|
L
E
FT
JOIN
`GroupsCat
eg`
ON
`GroupsCat
eg`.`ID`
=
`Groups`.`
categID`
|
|
147 |
|
INN
E
R
JOIN
`GroupsCat
eg`
ON
`GroupsCat
eg`.`ID`
=
`Groups`.`
categID`
|
417 |
|
LEFT
JOIN `Pro
files` ON
`Profiles`
.`ID` = `G
roups`.`cr
eatorID`
|
|
|
418 |
|
WHER
E
|
|
148 |
|
WHER
E
|
419 |
|
`Gro
upsMembers
`.`memberI
D` = '{$ID
}' AND
|
|
149 |
|
`GroupsMem
bers`.`
memberID`
=
'{$this->i
Member}'
AND
`GroupsMem
bers`.`
groupID`
=
`Groups`.`
ID`
AND
`GroupsMem
bers`.`sta
tus`
=
'Active'
|
420 |
|
`GroupsMem
bers`.`
groupID`
=
`Groups`.`
ID`
AND
|
|
|
421 |
|
`Gro
upsMembers
`.`status`
= 'Acti
ve'
|
|
|
422 |
|
ORDE
R BY `crea
ted` DESC
|
|
|
423 |
|
LIMI
T 5
|
|
|
424 |
|
";
|
|
150 |
|
";
|
|
|
151 |
|
$iBlogs
= db_value
( $sqlQuer
y );
|
425 |
|
|
|
152 |
|
|
426 |
|
$rBlogs
= db_res(
$sQuery );
|
|
153 |
|
if( $iBl
ogs > 0 )
{
|
427 |
|
|
|
154 |
|
$oGr
oups = new
BxDolGrou
ps();
|
428 |
|
if( !mys
ql_num_row
s( $rBlogs
) )
|
|
155 |
|
$sBl
ocks = $oG
roups->Gen
AnyBlockCo
ntent('lat
est', $thi
s->iMember
);
|
429 |
|
retu
rn '';
|
|
156 |
|
$ret
= <<<EOF
|
430 |
|
|
|
|
431 |
|
ob_start
();
|
|
|
432 |
|
?>
|
|
|
433 |
|
<div id=
"container
_groups">
|
|
157 |
|
<div id="c
ontainer_g
roups">
|
434 |
|
<?
|
|
158 |
|
{$sBlo
cks}
|
435 |
|
|
|
|
436 |
|
$oEvents
= new BxD
olEvents()
;
|
|
|
437 |
|
|
|
|
438 |
|
while( $
aBlog = my
sql_fetch_
assoc( $rB
logs ) )
|
|
|
439 |
|
{
|
|
|
440 |
|
$sPi
c = $oEven
ts->GetGro
upPicture(
$aBlog['ID
']);
|
|
|
441 |
|
|
|
|
442 |
|
$sLi
nkMore = '
';
|
|
|
443 |
|
if(
strlen( $a
Blog['Desc
ription'])
> $iBlogL
imitChars
)
|
|
|
444 |
|
//$sLinkMo
re = "...
<a href=\"
".$site['u
rl']."blog
.php?owner
=".$ID."&s
how=blog&b
logID=".$a
Blog['Post
ID']."\">"
._t('_Read
more')."<
/a>";
|
|
|
445 |
|
$sLinkMore
= "... <a
href=\"".
$site['url
']."group.
php?ID=".$
aBlog['ID'
]."\">"._t
('_Read mo
re')."</a>
";
|
|
|
446 |
|
|
|
|
447 |
|
$sBl
ogSnippet
= substr(
strip_tags
( $aBlog['
Desc'] ),
0, $iBlogL
imitChars
) . $sLink
More;
|
|
|
448 |
|
?>
|
|
|
449 |
|
<div class
="icon_blo
ck">
|
|
|
450 |
|
<?= $s
Pic ?>
|
|
|
451 |
|
</div>
|
|
|
452 |
|
<div class
="blog_wra
pper_n">
|
|
|
453 |
|
<div c
lass="blog
_subject_n
">
|
|
|
454 |
|
<?
echo '<a
href="' .
$site['url
'] . 'grou
p.php?ID='
. $aBlog[
'ID'] . '"
class="bo
ttom_text"
>' ?>
|
|
|
455 |
|
<?= $aBl
og['Name']
?>
|
|
|
456 |
|
</
a>
|
|
|
457 |
|
</div>
|
|
|
458 |
|
<div c
lass="blog
Info">
|
|
|
459 |
|
<s
pan><img s
rc="<?= ge
tTemplateI
con( 'cloc
k.gif' ) ?
>" />
|
|
|
460 |
|
<?
= date( $p
hp_date_fo
rmat, $aBl
og['DateTi
me_f'] ) .
' ' ?></s
pan>
|
|
|
461 |
|
<s
pan><?= _t
( '_in Cat
egory', ge
tTemplateI
con( 'fold
er_small.p
ng' ), 'gr
oups_brows
e.php?cate
gID='.$aBl
og['CategI
D'], proce
ss_line_ou
tput($aBlo
g['CategNa
me']) ) ?>
</span>
|
|
|
462 |
|
</div>
|
|
|
463 |
|
<div c
lass="blog
Snippet">
|
|
|
464 |
|
<?
= $sBlogSn
ippet ?>
|
|
|
465 |
|
</div>
|
|
|
466 |
|
</div>
|
|
159 |
|
</div>
|
467 |
|
<div class
="clear_bo
th"></div>
|
|
160 |
|
EOF;
|
468 |
|
<?
|
|
|
469 |
|
}
|
|
|
470 |
|
?>
|
|
|
471 |
|
</div>
|
|
|
472 |
|
<?
|
|
|
473 |
|
$ret = o
b_get_clea
n();
|
|
|
474 |
|
|
|
|
475 |
|
$show_hi
de = genSh
owHideItem
( 'contain
er_groups'
);
|
|
|
476 |
|
|
|
161 |
|
|
|
|
162 |
|
$sho
w_hide = $
this->genS
howHideIte
m( 'contai
ner_groups
' );
|
477 |
|
$sShowHi
de = $show
_hide;
|
|
163 |
|
$sSh
owHide = $
show_hide;
|
478 |
|
return $
ret;
|
|
164 |
|
retu
rn $ret;
|
479 |
|
//echo D
esignBoxCo
ntent( _t(
$sCaption
), $ret,
1, $show_h
ide );
|
|
165 |
|
} else
|
|
|
166 |
|
retu
rn '';
|
480 |
|
}
else {
|
|
167 |
|
}
else {
|
481 |
|
return M
sgBox( _t(
'_im_textN
oCurrUser'
) );
|
|
168 |
|
return M
sgBox( _t(
'_im_textN
oCurrUser'
) );
|
482 |
|
}
|
|
169 |
|
}
|
483 |
|
}
|
|
170 |
|
}
|
484 |
|
|
|
171 |
|
|
485 |
|
function
Pa
ge
Co
mp
MyPhoto
s
(
)
|
|
172 |
|
/*
function
ge
tBlock
Co
de_
MyPhoto
(
$iCol,
$bNoDB
=
false
)
{*/
|
486 |
|
{
|
|
173 |
|
functi
on getBloc
kCode_Tope
st($iCol)
{
|
487 |
|
global
$p_arr;
|
|
174 |
|
if
( $iCol =
= 1 )
|
|
|
175 |
|
$iPID =
$this->iMe
mber;
|
|
|
176 |
|
else
{
|
|
|
177 |
|
if( !$th
is->aMembe
rInfo['Cou
ple'] )
|
|
|
178 |
|
retu
rn '';
|
488 |
|
|
|
179 |
|
|
489 |
|
return
get_membe
r_primary_
photo( $p_
arr['ID'],
'none');
|
|
180 |
|
$iPID =
$this->aMe
mberInfo['
ID'];
|
490 |
|
}
|
|
181 |
|
}
|
491 |
|
|
|
182 |
|
$s
Ret = $thi
s->get_mem
ber_primar
y_photo( $
iPID, 'non
e', $iCol)
;
|
492 |
|
function g
et_member_
primary_ph
oto( $ID,
$float )
|
|
183 |
|
re
turn '<div
class="pa
ge_block_c
ontainer">
' . Design
BoxContent
( _t( '_M
y Photos'
), $sRet,
1) . '</di
v>';
|
493 |
|
{
|
|
184 |
|
//
return
$
sR
et;
|
494 |
|
global
$site;
|
|
|
495 |
|
requir
e_once( BX
_DIRECTORY
_PATH_ROOT
. 'profil
ePhotos.ph
p' );
|
|
|
496 |
|
$oPhot
o = new Pr
ofilePhoto
s( $ID );
|
|
|
497 |
|
$oPhot
o -> getAc
tiveMediaA
rray();
|
|
|
498 |
|
$aFile
= $oPhoto
-> getPri
maryPhotoA
rray();
|
|
|
499 |
|
|
|
|
500 |
|
if( ex
tFileExist
s( $oPhoto
-> sMedia
Dir . 'pho
to_' . $aF
ile['med_f
ile'] ) )
|
|
|
501 |
|
$s
FileName =
$oPhoto -
> sMediaUr
l . 'photo
_' . $aFil
e['med_fil
e'];
|
|
|
502 |
|
else
|
|
|
503 |
|
$s
FileName =
getTempla
teIcon( $o
Photo -> s
SexPic );
|
|
|
504 |
|
|
|
|
505 |
|
$style
=
|
|
|
506 |
|
'w
idth:' . $
oPhoto ->
aMediaConf
ig['size']
['photoWid
th'] . 'px
;' .
|
|
|
507 |
|
'h
eight:' .
$oPhoto ->
aMediaCon
fig['size'
]['photoHe
ight'] . '
px;' .
|
|
|
508 |
|
'b
ackground-
image:url(
' . $sFile
Name . ');
';
|
|
|
509 |
|
|
|
|
510 |
|
$ret =
'';
|
|
|
511 |
|
$ret .
= '<div cl
ass="thumb
nail_block
" style="f
loat:' . $
float . ';
">';
|
|
|
512 |
|
$r
et .= "<a
href=\"{$s
ite['url']
}upload_me
dia.php\">
";
|
|
|
513 |
|
$ret .=
'<img src=
"' . getTe
mplateIcon
( 'spacer.
gif' ) . '
" style="'
. $style
. '" alt="
' . proces
s_line_out
put( $aFil
eName['med
_title'] )
. '" />';
|
|
|
514 |
|
$r
et .= '</a
>';
|
|
|
515 |
|
$ret .
= '</div>'
;
|
|
|
516 |
|
|
|
|
517 |
|
return
$
r
et;
|
|
|
518 |
|
}
|
|
185 |
|
}
|
519 |
|
|
|
186 |
|
|
|
|
187 |
|
functi
on getBloc
kCode_Cont
acts () {
|
|
|
188 |
|
$s
SiteUrl =
$GLOBALS['
site']['ur
l'];
|
520 |
|
|
|
189 |
|
|
521 |
|
function P
ageCompMem
bersStats(
)
|
|
190 |
|
$f
ree_mode =
getParam(
"free_mode
") == "on"
? 1 : 0;
|
522 |
|
{
|
|
|
523 |
|
return
getSiteSt
at();
|
|
|
524 |
|
}
|
|
|
525 |
|
|
|
191 |
|
|
526 |
|
/**
|
|
192 |
|
$i
ChMemberID
= 0;
|
527 |
|
* contr p
anel "cont
acts"
|
|
193 |
|
$i
ChMemberID
= ($this-
>aMemberIn
fo['ID'] >
0) ? $thi
s->aMember
Info['ID']
: $this->
iMember;
|
528 |
|
*/
|
|
194 |
|
if
($iChMemb
erID == 0)
{
|
529 |
|
function P
ageCompCon
tacts()
|
|
195 |
|
return M
sgBox(_t('
_Sorry, no
thing foun
d'));
|
530 |
|
{
|
|
196 |
|
}
|
531 |
|
global
$site;
|
|
|
532 |
|
global
$p_arr;
|
|
|
533 |
|
|
|
197 |
|
|
534 |
|
$free_
mode = get
Param("fre
e_mode") =
= "on" ? 1
: 0;
|
|
198 |
|
/*
if ($_REQU
EST['debug
']=='1') {
|
|
|
199 |
|
}*
/
|
535 |
|
|
|
200 |
|
|
536 |
|
// new
messages
attention
|
|
201 |
|
//
new messa
ges attent
ion
|
537 |
|
$new_mess_
arr
=
db_arr(
"SELECT
ID
FROM
`Messages`
WHERE
Recipient
=
$
p_ar
r
[
ID
]
AND
New
=
'1'
ORDER
BY
Date
DESC
LIMIT
1"
);
|
|
202 |
|
$new_mess_
arr
=
db_arr(
"SELECT
ID
FROM
`Messages`
WHERE
Recipient
=
{
$
iChMembe
r
ID
}
AND
New
=
'1'
ORDER
BY
Date
DESC
LIMIT
1"
);
|
538 |
|
if ( $
new_mess_a
rr )
|
|
203 |
|
if
( $new_me
ss_arr )
|
539 |
|
$m
ess = $new
_mess_arr[
ID];
|
|
204 |
|
$mess =
$new_mess_
arr[ID];
|
540 |
|
|
|
205 |
|
|
541 |
|
// new
kisses at
tention
|
|
206 |
|
//
new kisse
s attentio
n
|
542 |
|
$new_kiss_
arr
=
db_arr(
"SELECT
ID
FROM
`VKisses`
WHERE
Member
=
$
p_ar
r
[
ID
]
AND
New
=
'1'
LIMIT
1"
);
|
|
207 |
|
$new_kiss_
arr
=
db_arr(
"SELECT
ID
FROM
`VKisses`
WHERE
Member
=
{
$
iChMembe
r
ID
}
AND
New
=
'1'
LIMIT
1"
);
|
543 |
|
if ( $
new_kiss_a
rr )
|
|
208 |
|
if
( $new_ki
ss_arr )
|
544 |
|
$v
kiss = 1;
|
|
209 |
|
$vkiss =
1;
|
545 |
|
|
|
210 |
|
|
546 |
|
// new
friends a
ttention
|
|
211 |
|
//
new frien
ds attenti
on
|
547 |
|
$new_frien
d_arr
=
db_arr(
"SELECT
`ID`
FROM
`FriendLis
t`
WHERE
`Profile`
=
$
p_ar
r
[
ID
]
AND
`Check`
=
'0'
LIMIT
1"
);
|
|
212 |
|
$new_frien
d_arr
=
db_arr(
"SELECT
`ID`
FROM
`FriendLis
t`
WHERE
`Profile`
=
{
$
iChMembe
r
ID
}
AND
`Check`
=
'0'
LIMIT
1"
);
|
548 |
|
if ( $
new_friend
_arr )
|
|
213 |
|
if
( $new_fr
iend_arr )
|
549 |
|
$f
rd = 1;
|
|
214 |
|
$frd = 1
;
|
550 |
|
|
|
215 |
|
|
551 |
|
// req
uest for p
rivate pho
to
|
|
216 |
|
//
request f
or private
photo
|
552 |
|
$new_ppr_a
rr
=
db_arr(
"SELECT
IDTo
FROM
`PrivPhoto
sRequests`
WHERE
`IDTo`
=
$
p_ar
r
[
ID
]
AND
`Grant`
=
'0'
LIMIT
1"
);
|
|
217 |
|
$new_ppr_a
rr
=
db_arr(
"SELECT
IDTo
FROM
`PrivPhoto
sRequests`
WHERE
`IDTo`
=
{
$
iChMembe
r
ID
}
AND
`Grant`
=
'0'
LIMIT
1"
);
|
553 |
|
if ( $
new_ppr_ar
r )
|
|
218 |
|
if
( $new_pp
r_arr )
|
554 |
|
$p
pr = 1;
|
|
219 |
|
$ppr = 1
;
|
555 |
|
|
|
220 |
|
|
556 |
|
|
|
221 |
|
|
557 |
|
ob_sta
rt();
|
|
222 |
|
ob
_start();
|
558 |
|
|
|
223 |
|
|
559 |
|
?>
|
|
224 |
|
?>
|
560 |
|
<table
class=con
trol_panel
_table wid
th="100%"
cellspacin
g=0 cellpa
dding=1>
|
|
225 |
|
<t
able class
=control_p
anel_table
width="10
0%" cellsp
acing=0 ce
llpadding=
1>
|
561 |
|
|
|
226 |
|
|
562 |
|
<tr cl
ass=table>
|
|
227 |
|
<t
r class=ta
ble>
|
563 |
|
<td cl
ass=contro
l_panel_td
_1_first v
align=top
align="lef
t"><? echo
_t( "_Mes
sages" );
?>:</td>
|
|
228 |
|
<t
d class=co
ntrol_pane
l_td_1_fir
st valign=
top align=
"left"><?
echo _t( "
_Messages"
); ?>:</t
d>
|
564 |
|
<td cl
ass=contro
l_panel_td
_2_first v
align=top
align="lef
t"><?
|
|
229 |
|
<t
d class=co
ntrol_pane
l_td_2_fir
st valign=
top align=
"left"><?
|
565 |
|
if
( $mess )
|
|
230 |
|
if ( $me
ss )
|
566 |
|
echo
_t(
"_ATT_MESS
AGE",
$mess,
$s
ite
['u
rl
']
);
|
|
231 |
|
echo
_t(
"_ATT_MESS
AGE",
$mess,
$s
S
ite
U
rl
);
|
567 |
|
el
se
|
|
232 |
|
else
|
568 |
|
echo
_t(
"_ATT_MESS
AGE_NONE",
$s
ite
['u
rl
']
);?>
|
|
233 |
|
echo
_t(
"_ATT_MESS
AGE_NONE",
$s
S
ite
U
rl
);?>
|
569 |
|
</td>
|
|
234 |
|
</
td>
|
570 |
|
</tr>
|
|
235 |
|
</
tr>
|
571 |
|
|
|
236 |
|
|
572 |
|
|
|
237 |
|
|
573 |
|
<tr cl
ass=table>
|
|
238 |
|
<t
r class=ta
ble>
|
574 |
|
<td cl
ass=contro
l_panel_td
_1 valign=
top align=
"left"><?
echo _t( "
_Kisses" )
; ?>:</td>
|
|
239 |
|
<t
d class=co
ntrol_pane
l_td_1 val
ign=top al
ign="left"
><? echo _
t( "_Kisse
s" ); ?>:<
/td>
|
575 |
|
<td cl
ass=contro
l_panel_td
_2 valign=
top align=
"left"><?
|
|
240 |
|
<t
d class=co
ntrol_pane
l_td_2 val
ign=top al
ign="left"
><?
|
576 |
|
if
( $vkiss
)
|
|
241 |
|
if ( $vk
iss )
|
577 |
|
echo
_t(
"_ATT_VKIS
S",
$s
ite
['u
rl
']
);
|
|
242 |
|
echo
_t(
"_ATT_VKIS
S",
$s
S
ite
U
rl
);
|
578 |
|
el
se
|
|
243 |
|
else
|
579 |
|
echo
_t(
"_ATT_VKIS
S_NONE",
$s
ite
['u
rl
']
);?>
|
|
244 |
|
echo
_t(
"_ATT_VKIS
S_NONE",
$s
S
ite
U
rl
);?>
|
580 |
|
</td>
|
|
245 |
|
</
td>
|
581 |
|
</tr>
|
|
246 |
|
</
tr>
|
582 |
|
|
|
247 |
|
|
583 |
|
<tr cl
ass=table>
|
|
248 |
|
<t
r class=ta
ble>
|
584 |
|
<td cl
ass=contro
l_panel_td
_1 valign=
top align=
"left"><?
echo _t( "
_Friends"
); ?>:</td
>
|
|
249 |
|
<t
d class=co
ntrol_pane
l_td_1 val
ign=top al
ign="left"
><? echo _
t( "_Frien
ds" ); ?>:
</td>
|
585 |
|
<td cl
ass=contro
l_panel_td
_2 valign=
top align=
"left"><?
|
|
250 |
|
<t
d class=co
ntrol_pane
l_td_2 val
ign=top al
ign="left"
><?
|
586 |
|
if
( $frd )
|
|
251 |
|
if ( $fr
d )
|
587 |
|
echo
_t(
"_ATT_FRIE
ND",
$s
ite
['u
rl
']
);
|
|
252 |
|
echo
_t(
"_ATT_FRIE
ND",
$s
S
ite
U
rl
);
|
588 |
|
el
se
|
|
253 |
|
else
|
589 |
|
echo
_t(
"_ATT_FRIE
ND_NONE",
$s
ite
['u
rl
']
);?>
|
|
254 |
|
echo
_t(
"_ATT_FRIE
ND_NONE",
$s
S
ite
U
rl
);?>
|
590 |
|
</td>
|
|
255 |
|
</
td>
|
591 |
|
</tr>
|
|
256 |
|
</
tr>
|
592 |
|
</tabl
e>
|
|
257 |
|
</
table>
|
593 |
|
|
|
258 |
|
|
594 |
|
<?php
|
|
259 |
|
<?php
|
595 |
|
|
|
260 |
|
|
596 |
|
$ret =
ob_get_co
ntents();
|
|
261 |
|
$r
et = ob_ge
t_contents
();
|
597 |
|
ob_end
_clean();
|
|
262 |
|
ob
_end_clean
();
|
598 |
|
|
|
263 |
|
|
599 |
|
return
$ret;
|
|
264 |
|
re
turn $ret;
|
600 |
|
}
|
|
265 |
|
}
|
601 |
|
|
|
266 |
|
|
602 |
|
/**
|
|
267 |
|
function
ge
tBlock
Co
de_
MemberInfo
()
{
|
603 |
|
* contr p
anel "memb
er info"
|
|
|
604 |
|
*/
|
|
|
605 |
|
function
Pa
ge
Co
mp
MemberInfo
()
|
|
|
606 |
|
{
|
|
|
607 |
|
global
$site;
|
|
|
608 |
|
global
$p_arr;
|
|
|
609 |
|
global
$oTemplCo
nfig;
|
|
268 |
|
gl
obal $oTem
plConfig;
|
610 |
|
global
$en_sdati
ng;
|
|
|
611 |
|
|
|
269 |
|
|
612 |
|
$free_
mode = get
Param("fre
e_mode") =
= "on" ? 1
: 0;
|
|
270 |
|
$f
ree_mode =
getParam(
"free_mode
") == "on
" ? 1 : 0;
|
|
|
271 |
|
$e
n_aff =
getParam(
"enable_af
f") == 'on
' ? 1 : 0;
|
613 |
|
|
|
272 |
|
|
614 |
|
ob_sta
rt();
|
|
273 |
|
ob
_start();
|
615 |
|
|
|
274 |
|
|
616 |
|
?>
|
|
275 |
|
?>
|
617 |
|
<table
class="co
ntrol_pane
l_table" w
idth="100%
" cellspac
ing="0" ce
llpadding=
"1">
|
|
276 |
|
<t
able class
="control_
panel_tabl
e" width="
100%" cell
spacing="0
" cellpadd
ing="1">
|
618 |
|
|
|
277 |
|
|
619 |
|
<tr cl
ass=table>
|
|
278 |
|
<t
r class=ta
ble>
|
620 |
|
|
|
279 |
|
|
621 |
|
<!-- Profi
le Status
-->
|
|
280 |
|
<!-- P
rofile Sta
tus -->
|
622 |
|
|
|
281 |
|
|
623 |
|
<td va
lign="top"
align="le
ft" class=
"control_p
anel_td_1_
first"><?
echo _t( "
_Profile s
tatus" );
?>: </td>
|
|
282 |
|
<t
d valign="
top" align
="left" cl
ass="contr
ol_panel_t
d_1_first"
><? echo _
t( "_Profi
le status"
); ?>: </
td>
|
624 |
|
<td va
lign="top"
align="le
ft" class=
"control_p
anel_td_2_
first">
|
|
283 |
|
<t
d valign="
top" align
="left" cl
ass="contr
ol_panel_t
d_2_first"
>
|
625 |
|
<b><font
class="pro
f_stat_<?
echo
$
p_
a
r
r
['Status']
;
?>">
<?
echo
_t(
"__{$
p_
a
r
r
['Status']
}"
);
?> </
font></b>
|
|
284 |
|
<b><font
class="pro
f_stat_<?
echo
$
this->
a
Membe
r
Info
['Status']
;
?>">
<?
echo
_t(
"__{$
this->
a
Membe
r
Info
['Status']
}"
);
?> </
font></b>
|
626 |
|
<?
|
|
285 |
|
<?
|
627 |
|
|
|
286 |
|
|
628 |
|
switch
(
$
p_
a
r
r
['Status']
)
|
|
287 |
|
switch
(
$
this->
a
Membe
r
Info
['Status']
)
|
629 |
|
{
|
|
288 |
|
{
|
630 |
|
ca
se 'Unconf
irmed': ec
ho _t( "_A
TT_UNCONFI
RMED", $oT
emplConfig
-> popUpW
indowWidth
, $oTemplC
onfig -> p
opUpWindow
Height );
break;
|
|
289 |
|
case 'Un
confirmed'
: echo _t(
"_ATT_UNC
ONFIRMED",
$oTemplCo
nfig -> po
pUpWindowW
idth, $oTe
mplConfig
-> popUpWi
ndowHeight
); break;
|
631 |
|
ca
se 'Approv
al': echo
_t( "_ATT_
APPROVAL",
$oTemplCo
nfig -> po
pUpWindowW
idth, $oTe
mplConfig
-> popUpWi
ndowHeight
); break;
|
|
290 |
|
case 'Ap
proval': e
cho _t( "_
ATT_APPROV
AL", $oTem
plConfig -
> popUpWin
dowWidth,
$oTemplCon
fig -> pop
UpWindowHe
ight ); br
eak;
|
632 |
|
ca
se 'Active
': echo _t
( "_ATT_AC
TIVE", $oT
emplConfig
-> popUpW
indowWidth
, $oTemplC
onfig -> p
opUpWindow
Height );
break;
|
|
291 |
|
case 'Ac
tive': ech
o _t( "_AT
T_ACTIVE",
$oTemplCo
nfig -> po
pUpWindowW
idth, $oTe
mplConfig
-> popUpWi
ndowHeight
); break;
|
633 |
|
ca
se 'Reject
ed': echo
_t( "_ATT_
REJECTED",
$oTemplCo
nfig -> po
pUpWindowW
idth, $oTe
mplConfig
-> popUpWi
ndowHeight
); break;
|
|
292 |
|
case 'Re
jected': e
cho _t( "_
ATT_REJECT
ED", $oTem
plConfig -
> popUpWin
dowWidth,
$oTemplCon
fig -> pop
UpWindowHe
ight ); br
eak;
|
634 |
|
ca
se 'Suspen
ded': echo
_t( "_ATT
_SUSPENDED
", $oTempl
Config ->
popUpWindo
wWidth, $o
TemplConfi
g -> popUp
WindowHeig
ht ); brea
k;
|
|
293 |
|
case 'Su
spended':
echo _t( "
_ATT_SUSPE
NDED", $oT
emplConfig
-> popUpW
indowWidth
, $oTemplC
onfig -> p
opUpWindow
Height );
break;
|
635 |
|
}
|
|
294 |
|
}
|
636 |
|
|
|
295 |
|
|
637 |
|
?>
|
|
296 |
|
?>
|
638 |
|
</td>
|
|
297 |
|
</
td>
|
639 |
|
</tr>
|
|
298 |
|
</
tr>
|
640 |
|
|
|
299 |
|
|
641 |
|
<!-- Membe
rship -->
|
|
300 |
|
<!-- M
embership
-->
|
642 |
|
|
|
301 |
|
|
643 |
|
<?php if (
!$free_mo
de ) { ?>
|
|
302 |
|
<?php
if ( !$fre
e_mode ) {
?>
|
644 |
|
|
|
303 |
|
|
645 |
|
<tr class=
table>
|
|
304 |
|
<tr cl
ass=table>
|
646 |
|
<td va
lign=top a
lign="left
" class=co
ntrol_pane
l_td_1><?
echo _t( "
_Membershi
p2" ); ?>:
</td>
|
|
305 |
|
<t
d valign=t
op align="
left" clas
s=control_
panel_td_1
><? echo _
t( "_Membe
rship2" );
?>:</td>
|
647 |
|
<td va
lign=top a
lign="left
" class=co
ntrol_pane
l_td_2>
|
|
306 |
|
<t
d valign=t
op align="
left" clas
s=control_
panel_td_2
>
|
648 |
|
<?
|
|
307 |
|
<?
|
649 |
|
echo
GetMembers
hipStatus(
$
p_
a
r
r
['ID']);
|
|
308 |
|
echo
GetMembers
hipStatus(
$
this->
a
Membe
r
Info
['ID']);
|
650 |
|
?>
|
|
309 |
|
?>
|
651 |
|
</td>
|
|
310 |
|
</
td>
|
652 |
|
</tr>
|
|
311 |
|
</tr>
|
653 |
|
|
|
312 |
|
|
654 |
|
<?php } ?>
|
|
313 |
|
<?php
} ?>
|
655 |
|
|
|
314 |
|
|
656 |
|
<!-- Last
login -->
|
|
315 |
|
<!-- L
ast login
-->
|
657 |
|
|
|
316 |
|
|
658 |
|
<tr cl
ass=table>
|
|
317 |
|
<t
r class=ta
ble>
|
659 |
|
<t
d valign=t
op align="
left" clas
s=control_
panel_td_1
><? echo _
t( "_Last
login" );
?>: </td>
|
|
318 |
|
<td vali
gn=top ali
gn="left"
class=cont
rol_panel_
td_1><? ec
ho _t( "_L
ast login"
); ?>: </
td>
|
660 |
|
<t
d valign=t
op align="
left" clas
s=control_
panel_td_2
>
|
|
319 |
|
<td vali
gn=top ali
gn="left"
class=cont
rol_panel_
td_2>
|
661 |
|
<?
|
|
320 |
|
<?
|
662 |
|
if
(
!$
p_
a
r
r
['
LastLog
gedI
n']
||
$
p_
a
r
r
['
LastLog
gedI
n']
==
"0000-00-0
0
00:00:00"
)
|
|
321 |
|
if
(
!$
this->
a
Membe
r
Info
['
Date
LastLog
i
n']
||
$
this->
a
Membe
r
Info
['
Date
LastLog
i
n']
==
"0000-00-0
0
00:00:00"
)
|
663 |
|
$
p_
a
r
r
['
LastLog
gedI
n']
=
'never';
|
|
322 |
|
$
this->
a
Membe
r
Info
['
Date
LastLog
i
n']
=
'never';
|
664 |
|
echo
$
p_
a
r
r
['
LastLog
gedI
n'];
|
|
323 |
|
echo
$
this->
a
Membe
r
Info
['
Date
LastLog
i
n'];
|
665 |
|
?>
|
|
324 |
|
?>
|
666 |
|
</
td>
|
|
325 |
|
</td>
|
667 |
|
</tr>
|
|
326 |
|
</
tr>
|
668 |
|
|
|
327 |
|
|
669 |
|
<!-- Speed
Dating inf
o -->
|
|
|
670 |
|
|
|
|
671 |
|
<?
|
|
|
672 |
|
if ( $en_s
dating )
|
|
|
673 |
|
{
|
|
|
674 |
|
?>
|
|
|
675 |
|
<tr cl
ass="table
">
|
|
|
676 |
|
<t
d valign="
top" align
="left" cl
ass="contr
ol_panel_t
d_1"><?= _
t('_SpeedD
ating tick
ets') ?>:
</td>
|
|
|
677 |
|
<t
d valign="
top" align
="left" cl
ass="contr
ol_panel_t
d_2">
|
|
|
678 |
|
<?
|
|
|
679 |
|
$membe
rship_arr
= getMembe
rMembershi
pInfo( $p_
arr['ID']
);
|
|
|
680 |
|
$event
s_query =
"SELECT `S
DatingEven
ts`.`ID`,
`Title`, (
NOW() > `E
ventEnd` A
ND NOW() <
DATE_ADD(
`EventEnd`
, INTERVAL
`ChoosePe
riod` DAY)
) AS `Choo
seActive`,
(`SDating
Participan
ts`.`ID` I
S NOT NULL
) AS `IsPa
rticipant`
|
|
|
681 |
|
FROM `SDat
ingEvents`
|
|
|
682 |
|
LEFT JOIN
`SDatingPa
rticipants
` ON `SDat
ingPartici
pants`.`ID
Event` = `
SDatingEve
nts`.`ID`
AND `SDati
ngParticip
ants`.`IDM
ember` = {
$p_arr['ID
']}
|
|
|
683 |
|
WHERE `SDa
tingEvents
`.`Status`
= 'Active
'
|
|
|
684 |
|
AND NOW()
< DATE_ADD
(`SDatingE
vents`.`Ev
entEnd`, I
NTERVAL `S
DatingEven
ts`.`Choos
ePeriod` D
AY)
|
|
|
685 |
|
AND FIND_I
N_SET('{$p
_arr['Sex'
]}', `SDat
ingEvents`
.`EventSex
Filter`)
|
|
|
686 |
|
AND ( TO_D
AYS('{$p_a
rr['DateOf
Birth']}')
|
|
|
687 |
|
BETWEE
N TO_DAYS(
DATE_SUB(N
OW(), INTE
RVAL `SDat
ingEvents`
.`EventAge
UpperFilte
r` YEAR))
|
|
|
688 |
|
AND TO
_DAYS(DATE
_SUB(NOW()
, INTERVAL
`SDatingE
vents`.`Ev
entAgeLowe
rFilter` Y
EAR)) )
|
|
|
689 |
|
AND ( INST
R(`SDating
Events`.`E
ventMember
shipFilter
`, '\'all\
'') OR INS
TR(`SDatin
gEvents`.`
EventMembe
rshipFilte
r`, '\'{$m
embership_
arr['ID']}
\'') )
|
|
|
690 |
|
ORDER BY `
SDatingEve
nts`.`Even
tStart` DE
SC";
|
|
|
691 |
|
$event
s_res = db
_res( $eve
nts_query
);
|
|
|
692 |
|
if ( m
ysql_num_r
ows($event
s_res) ==
0 )
|
|
|
693 |
|
{
|
|
|
694 |
|
ec
ho _t('_no
ne');
|
|
|
695 |
|
}
|
|
|
696 |
|
else
|
|
|
697 |
|
{
|
|
|
698 |
|
$e
vents_link
s = '';
|
|
|
699 |
|
wh
ile ( $eve
nt_arr = m
ysql_fetch
_assoc($ev
ents_res)
)
|
|
|
700 |
|
{
|
|
|
701 |
|
if ( $ev
ent_arr['I
sParticipa
nt'] )
|
|
|
702 |
|
{
|
|
|
703 |
|
$eve
nts_links
.= strlen(
$events_li
nks) ? ',
' : '';
|
|
|
704 |
|
$eve
nts_links
.= "<a hre
f=\"{$site
['url']}ev
ents.php?a
ction=show
_info&
event_id={
$event_arr
['ID']}\">
". process
_line_outp
ut($event_
arr['Title
']) ."</a>
";
|
|
|
705 |
|
}
|
|
|
706 |
|
}
|
|
|
707 |
|
ec
ho strlen(
$events_li
nks) ? $ev
ents_links
: _t('_no
ne');
|
|
|
708 |
|
}
|
|
|
709 |
|
?>
|
|
|
710 |
|
</
td>
|
|
|
711 |
|
</tr>
|
|
|
712 |
|
<?
|
|
|
713 |
|
}
|
|
|
714 |
|
?>
|
|
|
715 |
|
|
|
|
716 |
|
<!-- Affi
liate Prog
ram starts
here -->
|
|
328 |
|
<!--
Affiliate
Program st
arts here
-->
|
717 |
|
<?
|
|
329 |
|
<?
|
718 |
|
|
|
330 |
|
|
719 |
|
if
(
0
==
$free_mode
)
|
|
331 |
|
if
(
0
==
$free_mode
&&
1
==
$en_aff
)
|
720 |
|
{
|
|
332 |
|
{
|
721 |
|
ec
ho "<tr cl
ass=table>
|
|
333 |
|
echo "<t
r class=ta
ble>
|
722 |
|
<td vali
gn=top ali
gn=\"left\
" class=co
ntrol_pane
l_td_1>" .
_t( "_Aff
iliate Pro
gram" ) .
": </td>
|
|
334 |
|
<td
valign=top
align=\"l
eft\" clas
s=control_
panel_td_1
>" . _t( "
_Affiliate
Program"
) . ": </t
d>
|
723 |
|
<td vali
gn=top ali
gn=\"left\
" class=co
ntrol_pane
l_td_2>";
|
|
335 |
|
<td
valign=top
align=\"l
eft\" clas
s=control_
panel_td_2
>";
|
724 |
|
|
|
336 |
|
|
725 |
|
$ar
=
db_arr
(
"SELECT
aff_num
FROM
Profiles
WHERE
ID='{$
p_
a
r
r
['ID']}'
LIMIT
1"
);
|
|
337 |
|
$ar
=
db_arr
(
"SELECT
aff_num
FROM
Profiles
WHERE
ID='{$
this->
a
Membe
r
Info
['ID']}'
LIMIT
1"
);
|
726 |
|
|
|
338 |
|
|
727 |
|
$res =
db_res (
"SELECT *
FROM membe
rs_as_aff
WHERE num_
of_mem <=
'$ar[0]'"
);
|
|
339 |
|
$r
es = db_re
s ( "SELEC
T * FROM m
embers_as_
aff WHERE
num_of_mem
<= '$ar[0
]'" );
|
728 |
|
|
|
340 |
|
|
729 |
|
$txt =
_t( "_Got
_members_p
art_1" ).$
ar[0]._t (
"_Got_mem
bers_part_
2" );
|
|
341 |
|
$t
xt = _t( "
_Got_membe
rs_part_1"
).$ar[0].
_t ( "_Got
_members_p
art_2" );
|
730 |
|
|
|
342 |
|
|
731 |
|
if ( m
ysql_num_r
ows( $res
) > 0 )
|
|
343 |
|
if
( mysql_n
um_rows( $
res ) > 0
)
|
732 |
|
{
|
|
344 |
|
{
|
733 |
|
$txt =
_t ( "_Con
gratulatio
n" ).$txt;
|
|
345 |
|
$txt
= _t ( "
_Congratul
ation" ).$
txt;
|
734 |
|
$txt .=
_t('_Click
here to c
hange your
membershi
p status')
;
|
|
346 |
|
$txt
.= _t('_C
lick here
to change
your membe
rship stat
us');
|
735 |
|
}
|
|
347 |
|
}
|
736 |
|
else
|
|
348 |
|
el
se
|
737 |
|
{
|
|
349 |
|
{
|
738 |
|
$txt .=
_t ( "_Nee
d_more_mem
bers" );
|
|
350 |
|
$txt
.= _t ( "
_Need_more
_members"
);
|
739 |
|
}
|
|
351 |
|
}
|
740 |
|
|
|
352 |
|
|
741 |
|
echo $
txt;
|
|
353 |
|
ec
ho $txt;
|
742 |
|
|
|
354 |
|
|
743 |
|
ec
ho "</td>
|
|
355 |
|
echo "</
td>
|
744 |
|
</tr>";
|
|
356 |
|
</tr
>";
|
745 |
|
}
|
|
357 |
|
}
|
746 |
|
|
|
358 |
|
|
747 |
|
//<!-- Af
filiate Pr
ogram ends
here -->
|
|
359 |
|
//<!--
Affiliat
e Program
ends here
-->
|
748 |
|
|
|
360 |
|
|
749 |
|
echo "</ta
ble>";
|
|
361 |
|
echo "
</table>";
|
750 |
|
|
|
362 |
|
|
751 |
|
$ret =
ob_get_co
ntents();
|
|
363 |
|
$r
et = ob_ge
t_contents
();
|
752 |
|
ob_end
_clean();
|
|
364 |
|
ob
_end_clean
();
|
753 |
|
|
|
365 |
|
|
754 |
|
return
$ret;
|
|
366 |
|
re
turn $ret;
|
755 |
|
}
|
|
367 |
|
}
|
756 |
|
|
|
368 |
|
|
757 |
|
/**
|
|
369 |
|
functi
on getBloc
kCode_News
() {
|
758 |
|
* contr p
anel "memb
er info"
|
|
370 |
|
global
$
oT
e
mplCo
n
f
i
g;
|
759 |
|
*/
|
|
|
760 |
|
function c
ontr_panel
_member_in
fo_g4()
|
|
|
761 |
|
{
|
|
|
762 |
|
global
$site;
|
|
|
763 |
|
global
$p_arr;
|
|
|
764 |
|
global
$
e
n
_sdat
i
n
g;
|
|
|
765 |
|
|
|
371 |
|
|
766 |
|
$free_
mode = get
Param("fre
e_mode") =
= "on" ? 1
: 0;
|
|
372 |
|
re
turn print
NewsPanel(
$oTemplCon
fig->iMaxN
ewsOnMembe
rPanel);
|
|
|
373 |
|
}
|
767 |
|
|
|
374 |
|
|
768 |
|
// new
messages
attention
|
|
375 |
|
functi
on getBloc
kCode_Shar
ePhotos ()
{
|
769 |
|
$new_m
ess_arr =
db_arr( "S
ELECT ID F
ROM `Messa
ges` WHERE
Recipient
= $p_arr[
ID] AND Ne
w = '1' OR
DER BY Dat
e DESC LIM
IT 1" );
|
|
376 |
|
$a
Mem = arra
y('ID'=>$t
his->iMemb
er);
|
770 |
|
if ( $
new_mess_a
rr )
|
|
377 |
|
$o
New = new
BxDolShare
dMedia('ph
oto', $thi
s->aConfSi
te, $this-
>aConfDir,
$aMem);
|
771 |
|
$m
ess = $new
_mess_arr[
ID];
|
|
378 |
|
$a
Res = $oNe
w->getBloc
kCode_Shar
edMedia($o
New->iView
er);
|
772 |
|
|
|
379 |
|
|
773 |
|
// new
kisses at
tention
|
|
380 |
|
re
turn $aRes
;
|
774 |
|
$new_k
iss_arr =
db_arr( "S
ELECT ID F
ROM `VKiss
es` WHERE
Member = $
p_arr[ID]
AND New =
'1' LIMIT
1" );
|
|
381 |
|
}
|
775 |
|
if ( $
new_kiss_a
rr )
|
|
|
776 |
|
$v
kiss = 1;
|
|
|
777 |
|
|
|
382 |
|
|
778 |
|
// new
friends a
ttention
|
|
383 |
|
functi
on getBloc
kCode_Shar
eVideos ()
{
|
779 |
|
$new_f
riend_arr
= db_arr(
"SELECT `I
D` FROM `F
riendList`
WHERE `Pr
ofile` = $
p_arr[ID]
AND `Chec
k` = '0' L
IMIT 1" );
|
|
384 |
|
$a
Mem = arra
y('ID'=>$t
his->iMemb
er);
|
780 |
|
if ( $
new_friend
_arr )
|
|
385 |
|
$o
New = new
BxDolShare
dMedia('vi
deo', $thi
s->aConfSi
te, $this-
>aConfDir,
$aMem);
|
781 |
|
$f
rd = 1;
|
|
386 |
|
$a
Res = $oNe
w->getBloc
kCode_Shar
edMedia($o
New->iView
er);
|
782 |
|
|
|
387 |
|
|
783 |
|
ob_sta
rt();
|
|
388 |
|
re
turn $aRes
;
|
|
|
389 |
|
}
|
784 |
|
|
|
390 |
|
|
785 |
|
?>
|
|
391 |
|
functi
on getBloc
kCode_Shar
eMusic ()
{
|
786 |
|
<table
width="10
0%" cellsp
acing="0"
cellpaddin
g="3" bord
er="0" cla
ss="cp_tab
le">
|
|
392 |
|
$a
Mem = arra
y('ID'=>$t
his->iMemb
er, 'Passw
ord'=>$thi
s->aMember
Info['Pass
word']);
|
|
|
393 |
|
$o
New = new
BxDolShare
dMedia('mu
sic', $thi
s->aConfSi
te, $this-
>aConfDir,
$aMem);
|
|
|
394 |
|
$a
Res = $oNe
w->getBloc
kCode_Shar
edMedia($o
New->iView
er);
|
787 |
|
|
|
395 |
|
|
788 |
|
<!-- Profi
le status
-->
|
|
396 |
|
re
turn $aRes
;
|
789 |
|
<tr>
|
|
|
790 |
|
<td va
lign="midd
le" class=
"cp_td" al
ign="left"
><img src=
"<? echo $
site['imag
es']; ?>cp
_status.gi
f"></td>
|
|
|
791 |
|
<td va
lign="midd
le" class=
"cp_td" al
ign="left"
><? echo _
t( "_Profi
le status"
); ?>: </
td>
|
|
|
792 |
|
<td va
lign="midd
le" class=
"cp_td_r"
align="lef
t">
|
|
|
793 |
|
<b
><font cla
ss=prof_st
at_<? echo
$p_arr['S
tatus']; ?
>> <?
echo _t(
"__$p_arr[
Status]" )
; ?>
</font></b
>
|
|
|
794 |
|
<?
|
|
|
795 |
|
sw
itch ( $p_
arr['Statu
s'] )
|
|
|
796 |
|
{
|
|
|
797 |
|
case 'Un
confirmed'
: echo _t(
"_ATT_UNC
ONFIRMED")
; break;
|
|
|
798 |
|
case 'Ap
proval': e
cho _t( "_
ATT_APPROV
AL"); brea
k;
|
|
|
799 |
|
case 'Ac
tive': ech
o _t( "_AT
T_ACTIVE")
; break;
|
|
|
800 |
|
case 'Re
jected': e
cho _t( "_
ATT_REJECT
ED"); brea
k;
|
|
|
801 |
|
case 'Su
spended':
echo _t( "
_ATT_SUSPE
NDED"); br
eak;
|
|
|
802 |
|
}
|
|
397 |
|
}
|
803 |
|
?>
|
|
|
804 |
|
</td>
|
|
|
805 |
|
</tr>
|
|
|
806 |
|
<!-- Membe
rship -->
|
|
|
807 |
|
|
|
398 |
|
|
808 |
|
<?php
|
|
399 |
|
functi
on getBloc
kCode_Frie
nds () {
|
809 |
|
if ( !
$free_mode
)
|
|
400 |
|
gl
obal $site
;
|
810 |
|
{
|
|
|
811 |
|
?>
|
|
|
812 |
|
<tr>
|
|
|
813 |
|
<td va
lign="top"
class="cp
_td" width
="22" alig
n="left"><
img src="<
? echo $si
te['images
']; ?>cp_m
embership.
gif"></td>
|
|
|
814 |
|
<td va
lign="top"
class="cp
_td" align
="left" st
yle="paddi
ng-top:7px
;"><? echo
_t( "_Mem
bership2"
); ?>:</td
>
|
|
|
815 |
|
<td va
lign="top"
class="cp
_td_r" ali
gn="left">
|
|
|
816 |
|
<?
|
|
|
817 |
|
ec
ho GetMemb
ershipStat
us($p_arr[
'ID']);
|
|
|
818 |
|
?>
|
|
|
819 |
|
</td>
|
|
|
820 |
|
</tr>
|
|
|
821 |
|
<?php
|
|
|
822 |
|
}
|
|
|
823 |
|
?>
|
|
|
824 |
|
<!-- Last
login -->
|
|
|
825 |
|
<tr>
|
|
|
826 |
|
<td va
lign="midd
le" class=
"cp_td" al
ign="left"
><img src=
"<? echo $
site['imag
es']; ?>cp
_llogin.gi
f"></td>
|
|
|
827 |
|
<td va
lign="midd
le" class=
"cp_td" al
ign="left"
><? echo _
t( "_Last
login" );
?>: </td>
|
|
|
828 |
|
<td va
lign="midd
le" class=
"cp_td_r"
align="lef
t">
|
|
|
829 |
|
<?
|
|
|
830 |
|
if
( !$p_arr
['LastLogg
edIn'] ||
$p_arr['La
stLoggedIn
'] == "000
0-00-00 00
:00:00" )
|
|
|
831 |
|
$p_arr['
LastLogged
In'] = _t(
"_never"
);
|
|
|
832 |
|
ec
ho $p_arr[
'LastLogge
dIn'];
|
|
|
833 |
|
?>
|
|
|
834 |
|
</td>
|
|
|
835 |
|
</tr>
|
|
|
836 |
|
|
|
401 |
|
|
837 |
|
<!-- Speed
Dating inf
o -->
|
|
402 |
|
$s
FriendList
= ShowFri
endList( $
this -> iM
ember);
|
|
|
403 |
|
$i
FriendNums
= getFrie
ndNumber(
$this -> i
Member );
|
838 |
|
|
|
404 |
|
|
839 |
|
<?
|
|
405 |
|
if(
$
sFri
en
d
L
i
st
)
|
840 |
|
if
(
$
en
_s
d
at
i
ng
)
|
|
|
841 |
|
{
|
|
406 |
|
{
|
|
|
407 |
|
ob_start
();
|
|
|
408 |
|
|
842 |
|
?>
|
|
409 |
|
?>
|
843 |
|
<
tr
class="
tab
le
">
|
|
410 |
|
<
div
class="
c
le
ar_both
">
</div>
|
844 |
|
<t
d valign="
middle" cl
ass="cp_td
" align="l
eft"><img
src="<? ec
ho $site['
images'];
?>cp_lchan
ges.gif"><
/td>
|
|
411 |
|
<?=
$sFriendLi
st ?>
|
845 |
|
<t
d valign="
middle" cl
ass="cp_td
" align="l
eft"><?= _
t('_SpeedD
ating tick
ets') ?>:
</td>
|
|
412 |
|
<div
class="cl
ear_both">
</div>
|
846 |
|
<t
d valign="
middle" cl
ass="cp_td
_r" align=
"left">
|
|
|
847 |
|
<?
|
|
413 |
|
<?
|
848 |
|
$membe
rship_arr
= getMembe
rMembershi
pInfo( $p_
arr['ID']
);
|
|
414 |
|
|
849 |
|
$event
s_query =
"SELECT `S
DatingEven
ts`.`ID`,
`Title`, (
NOW() > `E
ventEnd` A
ND NOW() <
DATE_ADD(
`EventEnd`
, INTERVAL
`ChoosePe
riod` DAY)
) AS `Choo
seActive`
|
|
415 |
|
$ret = o
b_get_clea
n();
|
850 |
|
FROM `SDat
ingEvents`
|
|
416 |
|
|
851 |
|
LEFT JOIN
`SDatingPa
rticipants
` ON `SDat
ingPartici
pants`.`ID
Event` = `
SDatingEve
nts`.`ID`
AND `SDati
ngParticip
ants`.`IDM
ember` = {
$p_arr['ID
']}
|
|
417 |
|
$sFriend
Info = '<d
iv class="
caption_it
em"><a hre
f="'.$site
['url'].'v
iewFriends
.php?iUser
='.$this -
> _iProfil
eID.'">'.$
iFriendNum
s.' '._t("
_Friends")
.'</a></di
v>';
|
852 |
|
WHERE `SDa
tingEvents
`.`Status`
= 'Active
'
|
|
418 |
|
|
853 |
|
AND `SDati
ngParticip
ants`.`ID`
IS NOT NU
LL
|
|
419 |
|
$aDbTopM
enu = arra
y(
|
854 |
|
AND NOW()
< DATE_ADD
(`SDatingE
vents`.`Ev
entEnd`, I
NTERVAL `S
DatingEven
ts`.`Choos
ePeriod` D
AY)
|
|
420 |
|
_t("
_Friends")
=> array(
|
855 |
|
AND FIND_I
N_SET('{$p
_arr['Sex'
]}', `SDat
ingEvents`
.`EventSex
Filter`)
|
|
421 |
|
'href' =>
"{$site['u
rl']}viewF
riends.php
?iUser={$t
his -> iMe
mber}"
|
856 |
|
AND ( TO_D
AYS('{$p_a
rr['DateOf
Birth']}')
|
|
422 |
|
)
|
857 |
|
BETWEE
N TO_DAYS(
DATE_SUB(N
OW(), INTE
RVAL `SDat
ingEvents`
.`EventAge
UpperFilte
r` YEAR))
|
|
423 |
|
);
|
858 |
|
AND TO
_DAYS(DATE
_SUB(NOW()
, INTERVAL
`SDatingE
vents`.`Ev
entAgeLowe
rFilter` Y
EAR)) )
|
|
424 |
|
|
859 |
|
AND ( INST
R(`SDating
Events`.`E
ventMember
shipFilter
`, '\'all\
'') OR INS
TR(`SDatin
gEvents`.`
EventMembe
rshipFilte
r`, '\'{$m
embership_
arr['ID']}
\'') )
|
|
425 |
|
return a
rray( $ret
, $aDbTopM
enu );
|
860 |
|
ORDER BY `
SDatingEve
nts`.`Even
tStart` DE
SC";
|
|
|
861 |
|
$event
s_res = db
_res( $eve
nts_query
);
|
|
|
862 |
|
if ( m
ysql_num_r
ows($event
s_res) ==
0 )
|
|
|
863 |
|
{
|
|
|
864 |
|
ec
ho _t('_no
ne');
|
|
|
865 |
|
}
|
|
426 |
|
}
|
866 |
|
else
|
|
|
867 |
|
{
|
|
|
868 |
|
$e
vents_link
s = '';
|
|
|
869 |
|
wh
ile ( $eve
nt_arr = m
ysql_fetch
_assoc($ev
ents_res)
)
|
|
|
870 |
|
{
|
|
|
871 |
|
$events_
links .= s
trlen($eve
nts_links)
? ', ' :
'';
|
|
|
872 |
|
$events_
links .= "
<a href=\"
{$site['ur
l']}events
.php?actio
n=show_inf
o&even
t_id={$eve
nt_arr['ID
']}\">". p
rocess_lin
e_output($
event_arr[
'Title'])
."</a>";
|
|
|
873 |
|
}
|
|
427 |
|
}
|
874 |
|
ec
ho $events
_links;
|
|
428 |
|
|
|
|
429 |
|
functi
on showMyP
hotos($iCo
l) {
|
|
|
430 |
|
if
( $iCol =
= 1 ){
|
|
|
431 |
|
$iPID =
$this->aMe
mberInfo['
ID'];
|
|
|
432 |
|
}
else {
|
|
|
433 |
|
if( !$th
is->aMembe
rInfo['Cou
ple'] )
|
|
|
434 |
|
retu
rn '';
|
|
|
435 |
|
|
|
|
436 |
|
$iPID =
$this->aMe
mberInfo['
ID'];
|
875 |
|
}
|
|
437 |
|
}
|
876 |
|
?>
|
|
438 |
|
|
877 |
|
</
td>
|
|
439 |
|
re
turn $this
->get_memb
er_primary
_photo( $i
PID, 'none
', $iCol);
|
878 |
|
</tr>
|
|
|
879 |
|
<?
|
|
|
880 |
|
}
|
|
440 |
|
}
|
881 |
|
?>
|
|
441 |
|
|
882 |
|
<tr>
|
|
442 |
|
functi
on get_mem
ber_primar
y_photo ($
iPID, $flo
at, $iCol
= 0) {
|
883 |
|
<td va
lign="midd
le" class=
"cp_td" al
ign="left"
><img src=
"<? echo $
site['imag
es']; ?>cp
_messages.
gif"></td>
|
|
443 |
|
re
quire_once
( BX_DIREC
TORY_PATH_
ROOT . 'pr
ofilePhoto
s.php' );
|
884 |
|
<td va
lign="midd
le" class=
"cp_td" al
ign="left"
><? echo _
t( "_Messa
ges" ); ?>
:</td>
|
|
444 |
|
|
885 |
|
<td va
lign="midd
le" class=
"cp_td_r"
align="lef
t"><?
|
|
445 |
|
$o
Photo = ne
w ProfileP
hotos( $iP
ID );
|
886 |
|
if
( $mess )
|
|
446 |
|
$o
Photo -> g
etActiveMe
diaArray()
;
|
887 |
|
echo _t(
"_ATT_MES
SAGE", $me
ss, $site[
'url'] );
|
|
447 |
|
$i
Desc = 0;
|
888 |
|
el
se
|
|
448 |
|
//
echoDbg($t
his->aMemb
erInfo);
|
889 |
|
echo _t(
"_ATT_MES
SAGE_NONE"
, $site['u
rl'] );?>
|
|
449 |
|
if
($this->a
MemberInfo
['Couple']
>0 && $iCo
l == 2) {
|
890 |
|
</td>
|
|
450 |
|
$aCouple
Info = get
ProfileInf
o($this->a
MemberInfo
['Couple']
);
|
891 |
|
</tr>
|
|
451 |
|
$iDesc =
$aCoupleI
nfo['PrimP
hoto'];
|
892 |
|
<tr>
|
|
452 |
|
}
|
893 |
|
<td va
lign="midd
le" class=
"cp_td" al
ign="left"
><img src=
"<? echo $
site['imag
es']; ?>cp
_kisses.gi
f"></td>
|
|
453 |
|
$a
File = $oP
hoto -> ge
tPrimaryPh
otoArray($
iDesc);
|
894 |
|
<td va
lign="midd
le" class=
"cp_td" al
ign="left"
><? echo _
t( "_Kisse
s" ); ?>:<
/td>
|
|
454 |
|
|
895 |
|
<td va
lign="midd
le" class=
"cp_td_r"
align="lef
t"><?
|
|
455 |
|
if
( extFileE
xists( $oP
hoto -> sM
ediaDir .
'photo_' .
$aFile['m
ed_file']
) )
|
896 |
|
if
( $vkiss
)
|
|
456 |
|
$sFileNa
me = $oPho
to -> sMed
iaUrl . 'p
hoto_' . $
aFile['med
_file'];
|
897 |
|
echo _t(
"_ATT_VKI
SS", $site
['url'] );
|
|
|
898 |
|
else
|
|
|
899 |
|
echo _t(
"_ATT_VKI
SS_NONE",
$site['url
'] );?>
|
|
|
900 |
|
</td>
|
|
|
901 |
|
</tr>
|
|
|
902 |
|
<tr>
|
|
|
903 |
|
<td va
lign="midd
le" class=
"cp_td" al
ign="left"
><img src=
"<? echo $
site['imag
es']; ?>cp
_friends.g
if"></td>
|
|
|
904 |
|
<td va
lign="midd
le" class=
"cp_td" al
ign="left"
><? echo _
t( "_Frien
ds" ); ?>:
</td>
|
|
|
905 |
|
<td va
lign="midd
le" class=
"cp_td_r"
align="lef
t"><?
|
|
|
906 |
|
if
( $frd )
|
|
|
907 |
|
echo _t(
"_ATT_FRI
END", $sit
e['url'] )
;
|
|
|
908 |
|
el
se
|
|
457 |
|
el
se
|
909 |
|
echo _t(
"_ATT_FRI
END_NONE",
$site['ur
l'] );?>
|
|
458 |
|
$sFileNa
me = getTe
mplateIcon
( $oPhoto
-> sSexPic
);
|
910 |
|
</td>
|
|
|
911 |
|
</tr>
|
|
|
912 |
|
</tabl
e>
|
|
|
913 |
|
|
|
459 |
|
|
914 |
|
<?php
|
|
460 |
|
$s
tyle =
|
|
|
461 |
|
'width:'
. $oPhoto
-> aMedia
Config['si
ze']['phot
oWidth'] .
'px;' .
|
|
|
462 |
|
'height:
' . $oPhot
o -> aMedi
aConfig['s
ize']['pho
toHeight']
. 'px;' .
|
|
|
463 |
|
'backgro
und-image:
url(' . $s
FileName .
');';
|
915 |
|
|
|
464 |
|
|
916 |
|
$ret =
ob_get_con
tents()
;
|
|
465 |
|
$r
et =
''
;
|
917 |
|
ob_end
_clean();
|
|
466 |
|
$r
et .= '<di
v class="t
humbnail_b
lock" styl
e="float:'
. $float
. '; ">';
|
|
|
467 |
|
$ret .=
"<a href=\
"{$this->a
ConfSite['
url']}uplo
ad_media.p
hp\">";
|
|
|
468 |
|
$ret
.= '<img
src="' . g
etTemplate
Icon( 'spa
cer.gif' )
. '" styl
e="' . $st
yle . '" a
lt="' . pr
ocess_line
_output( $
aFileName[
'med_title
'] ) . '"
/>';
|
|
|
469 |
|
$ret .=
'</a>';
|
|
|
470 |
|
$r
et .= '</d
iv>';
|
918 |
|
|
|
471 |
|
|
919 |
|
return
$ret;
|
|
472 |
|
re
turn $ret;
|
920 |
|
}
|
|
473 |
|
}
|
|
|
474 |
|
}
|
921 |
|
|
|
475 |
|
|
922 |
|
/**
|
|
476 |
|
//--------
----------
----------
----------
----------
----------
----------
----------
----------
----------
-----//
|
923 |
|
* contr p
anel "sear
ch_profile
s"
|
|
|
924 |
|
*/
|
|
|
925 |
|
function c
ontr_panel
_search_pr
ofiles()
|
|
|
926 |
|
{
|
|
|
927 |
|
global
$site;
|
|
|
928 |
|
|
|
477 |
|
|
929 |
|
$ret =
DesignQui
ckSearch()
;
|
|
478 |
|
// -------
-------- p
age variab
les and lo
gin
|
930 |
|
|
|
479 |
|
|
931 |
|
return
$ret;
|
|
480 |
|
$_page['na
me_index']
= 81;
|
932 |
|
}
|
|
481 |
|
$_page['cs
s_name'] =
'member_p
anel.css';
|
933 |
|
|
|
482 |
|
|
934 |
|
/**
|
|
483 |
|
$_page['ex
tra_js'] =
'<script
type="text
/javascrip
t">urlIcon
Loading =
"'.getTemp
lateIcon('
loading.gi
f').'";</s
cript>';
|
935 |
|
* contr p
anel "late
st news"
|
|
|
936 |
|
*/
|
|
|
937 |
|
function P
ageCompNew
s()
|
|
|
938 |
|
{
|
|
|
939 |
|
global
$site;
|
|
|
940 |
|
global
$news_res
l;
|
|
|
941 |
|
global
$oTemplCo
nfig;
|
|
|
942 |
|
|
|
484 |
|
|
|
|
485 |
|
$_page['he
ader'] = _
t( "_My Ac
count" );
|
943 |
|
|
|
486 |
|
|
944 |
|
// new
s
|
|
487 |
|
// -------
-------- G
ET/POST ac
tions
|
945 |
|
//$new
s_limit_ch
ars = getP
aram("max_
news_previ
ew");
|
|
|
946 |
|
$news_
res = db_r
es("SELECT
`ID` AS `
newsID`, `
Header`, `
Snippet` F
ROM `News`
ORDER BY
`Date` DES
C LIMIT "
. $oTemplC
onfig -> i
MaxNewsOnM
emberPanel
. "");
|
|
|
947 |
|
$news_
count = db
_arr("SELE
CT COUNT(`
ID`) FROM
`News`");
|
|
|
948 |
|
|
|
488 |
|
|
|
|
489 |
|
$member['I
D']
= $_POST['
ID'];
|
|
|
490 |
|
$member['P
assword']
= md5( p
rocess_pas
s_data( $_
POST['Pass
word'] ) )
;
|
949 |
|
|
|
491 |
|
|
950 |
|
$ret =
'';
|
|
492 |
|
$bAjxMode
= ( isset(
$_SERVER[
'HTTP_X_RE
QUESTED_WI
TH'] ) and
$_SERVER[
'HTTP_X_RE
QUESTED_WI
TH'] == 'X
MLHttpRequ
est' ) ? t
rue : fals
e;
|
951 |
|
// $i = 1
;
|
|
493 |
|
|
952 |
|
while(
$news_arr
= mysql_f
etch_assoc
($news_res
) )
|
|
494 |
|
if ( !( $_
POST['ID']
&& $_POST
['Password
'] ) && (
$_COOKIE['
memberID']
&& $_COOK
IE['member
Password']
) )
|
953 |
|
{
|
|
|
954 |
|
/* New
s snippets
delimiter
|
|
|
955 |
|
if
( ($i%2) =
= 0 )
|
|
|
956 |
|
{
|
|
495 |
|
{
|
957 |
|
$style_a
dd = '';
|
|
496 |
|
if ( !
( $logged[
'member']
= member_a
uth( 0, fa
lse ) ) )
|
|
|
497 |
|
login_
form( _t(
"_LOGIN_OB
SOLETE" ),
0, $bAjxM
ode );
|
958 |
|
}
|
|
498 |
|
}
|
959 |
|
el
se
|
|
499 |
|
else
|
960 |
|
{
|
|
500 |
|
{
|
961 |
|
$style_a
dd = 'styl
e="border-
bottom:2px
solid #e4
e4e4; marg
in-bottom:
5px;"';
|
|
501 |
|
if ( !
$_POST['ID
'] && !$_P
OST['Passw
ord'] )
|
962 |
|
}
|
|
502 |
|
{
|
963 |
|
News s
nippets de
limiter */
|
|
503 |
|
//
this is d
ynamic pag
e - send
headers to
do not ca
che this p
age
|
964 |
|
//
if ( strle
n($news_ar
r['Text'])
== $news_
limit_char
s ) $news_
arr['Text'
] .= "..."
;
|
|
504 |
|
se
nd_headers
_page_chan
ged();
|
965 |
|
$r
et .= '<di
v class="n
ews_head">
';
|
|
|
966 |
|
//$ret .
= '<img sr
c="' . $si
te['icons'
] . 'news.
gif" alt="
" />';
|
|
|
967 |
|
$ret .=
'<a href="
' . $site[
'url'] . '
news_view.
php?ID=' .
$news_arr
['newsID']
. '">';
|
|
|
968 |
|
$ret
.= proces
s_line_out
put($news_
arr['Heade
r']);
|
|
|
969 |
|
$ret .=
'</a>';
|
|
|
970 |
|
$r
et .= '</d
iv>';
|
|
|
971 |
|
$r
et .= '<di
v class="n
ews_text"
' . $style
_add . '>'
;
|
|
|
972 |
|
$ret .=
process_te
xt_output(
$news_arr[
'Snippet']
);
|
|
|
973 |
|
$r
et .= '</d
iv>';
|
|
|
974 |
|
|
|
505 |
|
|
975 |
|
// $i
++;
|
|
506 |
|
$b
AjxMode =
( isset( $
_SERVER['H
TTP_X_REQU
ESTED_WITH
'] ) and $
_SERVER['H
TTP_X_REQU
ESTED_WITH
'] == 'XML
HttpReques
t' ) ? tru
e : false;
|
|
|
507 |
|
lo
gin_form('
', 0, $bAj
xMode);
|
|
|
508 |
|
|
|
|
509 |
|
} else
{
|
|
|
510 |
|
$m
ember['ID'
] = getID(
$member['
ID'] );
|
|
|
511 |
|
if
(isLogged
Banned($me
mber['ID']
)) {
|
|
|
512 |
|
$_page['
name_index
'] = 55;
|
|
|
513 |
|
$_page['
css_name']
= '';
|
|
|
514 |
|
$_ni = $
_page['nam
e_index'];
|
|
|
515 |
|
$_page_c
ont[$_ni][
'page_main
_code'] =
MsgBox(_t(
'_member_b
anned'));
|
|
|
516 |
|
PageCode
();
|
|
|
517 |
|
exit;
|
976 |
|
}
|
|
518 |
|
}
|
977 |
|
|
|
519 |
|
|
978 |
|
if( $n
ews_count[
'0'] > $ma
x_news_on_
cp )
|
|
520 |
|
//
Check if
ID and Pas
sword are
correct (a
ddslashes
already in
side)
|
|
|
521 |
|
if
( check_l
ogin( $mem
ber['ID'],
$member['
Password']
) )
|
979 |
|
{
|
|
522 |
|
{
|
980 |
|
$r
et .= '<di
v style="p
osition:re
lative; te
xt-align:c
enter; lin
e-height:2
0px;"><a h
ref="' . $
site['url'
] . 'news.
php">' . _
t("_Read n
ews in arc
hive") . '
</a></div>
';
|
|
523 |
|
$iCookie
Time = 0;
|
981 |
|
}
|
|
|
982 |
|
|
|
524 |
|
|
983 |
|
return
$ret;
|
|
525 |
|
if (isse
t($_POST['
rememberMe
']) && $_P
OST['remem
berMe'])
|
|
|
526 |
|
$iCo
okieTime =
time() +
24*60*60*3
0;
|
984 |
|
|
|
527 |
|
|
985 |
|
}
|
|
528 |
|
setcooki
e( "member
ID", $_COO
KIE['membe
rID'], tim
e() - 24*6
0*60, '/'
);
|
|
|
529 |
|
setcooki
e( "member
Password",
$_COOKIE[
'memberPas
sword'], t
ime() - 24
*60*60, '/
' );
|
|
|
530 |
|
setcooki
e( "member
ID", $memb
er['ID'],
$iCookieTi
me, '/' );
|
|
|
531 |
|
setcooki
e( "member
Password",
$member['
Password']
, $iCookie
Time, '/'
);
|
|
|
532 |
|
//setcoo
kie( 'user
Array', 'a
User' . $m
ember['ID'
] );
|
|
|
533 |
|
$update_
res = db_r
es( "UPDAT
E `Profile
s` SET `Da
teLastLogi
n` = NOW()
WHERE `ID
` = {$memb
er['ID']}"
);
|
|
|
534 |
|
createUs
erDataFile
( $member[
'ID'] );
|
986 |
|
|
|
535 |
|
|
987 |
|
function d
isplayRayM
P3Player()
|
|
536 |
|
$p_arr =
getProfil
eInfo( $me
mber['ID']
);
|
988 |
|
{
|
|
|
989 |
|
global
$member;
|
|
|
990 |
|
|
|
537 |
|
|
991 |
|
$chech
ActionRes
= checkAct
ion($membe
r['ID'], A
CTION_ID_U
SE_RAY_MP3
);
|
|
538 |
|
if( !$sU
rlRelocate
= $_REQUE
ST['reloca
te'] or ba
sename( $_
REQUEST['r
elocate']
) == 'inde
x.php' or
basename(
$_REQUEST[
'relocate'
] ) == 'jo
in.php' )
|
|
|
539 |
|
$sU
rlRelocate
= $_SERVE
R['PHP_SEL
F'];
|
992 |
|
|
|
540 |
|
|
993 |
|
if ($c
hechAction
Res[CHECK_
ACTION_RES
ULT] == CH
ECK_ACTION
_RESULT_AL
LOWED)
|
|
541 |
|
$_page['
name_index
'] = 150;
|
994 |
|
{
|
|
542 |
|
$_page['
css_name']
= '';
|
995 |
|
|
|
543 |
|
|
996 |
|
$r
et = '';
|
|
544 |
|
$_ni = $
_page['nam
e_index'];
|
|
|
545 |
|
$_page_c
ont[$_ni][
'page_main
_code'] =
MsgBox( _t
( '_Please
Wait' ) )
;
|
|
|
546 |
|
$_page_c
ont[$_ni][
'url_reloc
ate'] = ht
mlspecialc
hars( $sUr
lRelocate
);
|
|
|
547 |
|
PageCode
();
|
|
|
548 |
|
}
|
|
|
549 |
|
ex
it;
|
|
|
550 |
|
}
|
|
|
551 |
|
}
|
997 |
|
|
|
552 |
|
|
998 |
|
$r
et .= '<di
v id="play
erBlock">'
. "\n";
|
|
553 |
|
$member['I
D'] = (int
)$_COOKIE[
'memberID'
];
|
999 |
|
$ret .=
getRayMP3P
layer( $me
mber['ID']
, getPassw
ord($membe
r['ID']),
$member['I
D']) . "\n
";
|
|
554 |
|
$member['P
assword']
= $_COOKIE
['memberPa
ssword'];
|
1000 |
|
$r
et .= '</d
iv>' . "\n
";
|
|
|
1001 |
|
|
|
555 |
|
|
1002 |
|
$l
angShow =
_t('_Show'
);
|
|
556 |
|
$
_
n
i
=
$
_
page[
'
name
_
i
n
de
x
'
]
;
|
1003 |
|
$
la
n
gH
i
de
=
_
t(
'
_
H
i
de
'
)
;
|
|
|
1004 |
|
|
|
557 |
|
|
1005 |
|
$m
enu = '<di
v class="b
lock_menu"
onclick="
javascript
: if ( \'n
one\' == d
ocument.ge
tElementBy
Id(\'playe
rBlock\').
style.disp
lay ) { do
cument.get
ElementByI
d(\'player
Block\').s
tyle.displ
ay=\'block
\'; this.i
nnerHTML=\
''. $langH
ide .'\';
} else { d
ocument.ge
tElementBy
Id(\'playe
rBlock\').
style.disp
lay=\'none
\'; this.i
nnerHTML=\
''. $langS
how .'\';
}" >'. $la
ngHide .'<
/div>';
|
|
558 |
|
// -------
-------- [
END] page
components
|
1006 |
|
|
|
559 |
|
|
1007 |
|
re
turn Desig
nBoxConten
tBorder( _
t('_mp3_pl
ayer'), $r
et, $menu
);
|
|
560 |
|
// this is
dynamic p
age - sen
d headers
to do not
cache this
page
|
1008 |
|
|
|
561 |
|
|
1009 |
|
}
|
|
562 |
|
// -------
-------- p
age compon
ents funct
ions
|
1010 |
|
|
|
563 |
|
|
1011 |
|
return
'';
|
|
|
1012 |
|
|
|
564 |
|
|
1013 |
|
}
|
|
565 |
|
send_heade
rs_page_ch
anged();
|
1014 |
|
|
|
566 |
|
|
1015 |
|
function P
ageCompSha
reMusic( $
sCaption )
|
|
567 |
|
$oNew = ne
w BxDolMem
ber($membe
r['ID'], $
site, $dir
);
|
1016 |
|
{
|
|
|
1017 |
|
global
$member;
|
|
|
1018 |
|
return
'<div id=
"show_shar
eMusic">'.
PageCompS
hareMusicC
ontent( $s
Caption, $
member['ID
'] ).'</di
v>';
|
|
|
1019 |
|
}
|
|
|
1020 |
|
|
|
568 |
|
|
1021 |
|
function P
ageCompSha
rePhotos(
$sCaption
)
|
|
569 |
|
/*
|
1022 |
|
{
|
|
570 |
|
$sPhotoBlo
ck = '<div
style="wi
dth:49%;">
'.DesignBo
xContent (
_t( '_My
Photos' ),
$oNew->sh
owMyPhotos
(1), 1).'<
/div>';
|
1023 |
|
global
$member;
|
|
571 |
|
if (strlen
($oNew->sh
owMyPhotos
(2)) > 0)
|
1024 |
|
return
'<div id=
"show_shar
ePhotos">'
.PageCompS
harePhotos
Content( $
sCaption,
$member['I
D'] ).'</d
iv>';
|
|
572 |
|
$sPhot
oBlock .=
'<div styl
e="width:4
9%; border
:=1px soli
d red;">'.
DesignBoxC
ontent ( _
t( '_My Ph
otos' ), $
oNew->show
MyPhotos(2
), 1).'</d
iv>';*/
|
1025 |
|
}
|
|
|
1026 |
|
|
|
573 |
|
|
1027 |
|
function P
ageCompSha
reVideos(
$sCaption
)
|
|
574 |
|
$_page_con
t[$_ni]['p
age_main_c
ode'] = $o
New->getCo
de();
|
1028 |
|
{
|
|
575 |
|
PageCode()
;
|
1029 |
|
global
$member;
|
|
|
1030 |
|
return
'<div id=
"show_shar
eVideos">'
.PageCompS
hareVideos
Content( $
sCaption,
$member['I
D'] ).'</d
iv>';
|
|
|
1031 |
|
}
|
|
|
1032 |
|
|
|
576 |
|
|
1033 |
|
?>
|
|
577 |
|
?>
|