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( '../in
c/header.i
nc.php' );
|
|
21 |
|
require_on
ce( '../in
c/header.i
nc.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 . 'p
rofile_dis
p.inc.php'
);
|
|
|
25 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'a
dmin_desig
n.inc.php'
);
|
|
24 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'a
dmin_desig
n.inc.php'
);
|
26 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'u
tils.inc.p
hp' );
|
|
25 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'u
tils.inc.p
hp' );
|
27 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 't
ags.inc.ph
p' );
|
|
26 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 't
ags.inc.ph
p' );
|
28 |
|
|
|
27 |
|
|
29 |
|
$logged[
admin
]
=
member_aut
h(
1
);
|
|
28 |
|
$logged[
'
admin
'
]
=
member_aut
h(
1
,
true,
true
);
|
30 |
|
$ADMIN = $
logged[adm
in];
|
|
29 |
|
$ADMIN = $
logged[adm
in];
|
31 |
|
|
|
30 |
|
|
32 |
|
$_page['cs
s_name'] =
'profiles
.css';
|
|
31 |
|
$_page['cs
s_name'] =
'profiles
.css';
|
33 |
|
|
|
32 |
|
|
34 |
|
|
|
33 |
|
|
35 |
|
if ( $_POS
T['prf_for
m_submit']
&& !$demo
_mode)
|
|
34 |
|
if ( $_POS
T['prf_for
m_submit']
&& !$demo
_mode)
|
36 |
|
{
|
|
35 |
|
{
|
37 |
|
$sel_s
tr = "";
|
|
36 |
|
$sel_s
tr = "";
|
38 |
|
while(
list( $ke
y, $val )
= each( $_
POST ) )
|
|
37 |
|
while(
list( $ke
y, $val )
= each( $_
POST ) )
|
39 |
|
if
( (int)$k
ey && $val
)
|
|
38 |
|
if
( (int)$k
ey && $val
)
|
40 |
|
$s
el_str .=
",$key";
|
|
39 |
|
$s
el_str .=
",$key";
|
41 |
|
$sel_s
tr = subst
r( $sel_st
r, 1 );
|
|
40 |
|
$sel_s
tr = subst
r( $sel_st
r, 1 );
|
42 |
|
$sel_a
rr = explo
de( ",", $
sel_str );
|
|
41 |
|
$sel_a
rr = explo
de( ",", $
sel_str );
|
43 |
|
|
|
42 |
|
|
44 |
|
$owner
= $PARTNE
R ? $_COOK
IE['partne
rID'] : 0;
|
|
43 |
|
$owner
= $PARTNE
R ? $_COOK
IE['partne
rID'] : 0;
|
45 |
|
while(
list( $ke
y, $val )
= each( $s
el_arr ) )
|
|
44 |
|
while(
list( $ke
y, $val )
= each( $s
el_arr ) )
|
46 |
|
{
|
|
45 |
|
{
|
47 |
|
sw
itch ( $_P
OST['prf_f
orm_submit
'] )
|
|
46 |
|
sw
itch ( $_P
OST['prf_f
orm_submit
'] )
|
48 |
|
{
|
|
47 |
|
{
|
49 |
|
case "De
lete":
|
|
48 |
|
case "De
lete":
|
50 |
|
prof
ile_delete
( $val );
|
|
49 |
|
prof
ile_delete
( $val );
|
51 |
|
break;
|
|
50 |
|
break;
|
52 |
|
case "Co
nfirm Emai
l":
|
|
51 |
|
case "Co
nfirm Emai
l":
|
53 |
|
acti
vation_mai
l( $val, 0
);
|
|
52 |
|
acti
vation_mai
l( $val, 0
);
|
54 |
|
break;
|
|
53 |
|
break;
|
55 |
|
case "Se
nd Message
":
|
|
54 |
|
case "Se
nd Message
":
|
56 |
|
prof
ile_send_m
essage( $v
al, $_POST
['Message'
] );
|
|
55 |
|
prof
ile_send_m
essage( $v
al, $_POST
['Message'
] );
|
57 |
|
break;
|
|
56 |
|
break;
|
58 |
|
case 'Ac
tivate':
|
|
57 |
|
case 'Ac
tivate':
|
59 |
|
db_r
es( "UPDAT
E `Profile
s` SET `St
atus` = 'A
ctive' WHE
RE `ID` =
'" . (int)
$val . "'"
);
|
|
58 |
|
db_r
es( "UPDAT
E `Profile
s` SET `St
atus` = 'A
ctive' WHE
RE `ID` =
'" . (int)
$val . "'"
);
|
60 |
|
crea
teUserData
File((int)
$val);
|
|
59 |
|
crea
teUserData
File((int)
$val);
|
61 |
|
repa
rseObjTags
( 'profile
', (int)$v
al );
|
|
60 |
|
repa
rseObjTags
( 'profile
', (int)$v
al );
|
62 |
|
|
|
|
63 |
|
break;
|
|
61 |
|
break;
|
64 |
|
case 'Ap
proval':
|
|
62 |
|
case 'Ap
proval':
|
65 |
|
db_r
es( "UPDAT
E `Profile
s` SET `St
atus` = 'A
pproval' W
HERE `ID`
= '" . (in
t)$val . "
'" );
|
|
63 |
|
db_r
es( "UPDAT
E `Profile
s` SET `St
atus` = 'A
pproval' W
HERE `ID`
= '" . (in
t)$val . "
'" );
|
66 |
|
crea
teUserData
File((int)
$val);
|
|
64 |
|
crea
teUserData
File((int)
$val);
|
67 |
|
repa
rseObjTags
( 'profile
', (int)$v
al );
|
|
65 |
|
repa
rseObjTags
( 'profile
', (int)$v
al );
|
68 |
|
|
|
66 |
|
break;
|
|
|
67 |
|
case 'Ba
n':
|
|
|
68 |
|
if (
(int)$val>
0 && (int)
$_REQUEST[
'time_hrs'
]>0) {
|
|
|
69 |
|
$iBanTime
= ((int)$_
REQUEST['t
ime_hrs'])
* 3600;
|
|
|
70 |
|
$sCheckBan
SQL = "SEL
ECT * FROM
`AdminBan
List` WHER
E `ProfID`
='{$val}'
LIMIT 1";
|
|
|
71 |
|
db_res($sC
heckBanSQL
);
|
|
|
72 |
|
if (mysql_
affected_r
ows()==1)
{
|
|
|
73 |
|
$sBamS
QL = "UPDA
TE `AdminB
anList` SE
T `Time`='
{$iBanTime
}', `DateT
ime`=NOW()
WHERE `Pr
ofID`='{$v
al}'";
|
|
|
74 |
|
} else {
|
|
|
75 |
|
$sBamS
QL = "INSE
RT INTO `A
dminBanLis
t` SET `Ti
me`='{$iBa
nTime}', `
DateTime`=
NOW(), `Pr
ofID`='{$v
al}'";
|
|
|
76 |
|
}
|
|
|
77 |
|
db_res($sB
amSQL);
|
|
|
78 |
|
}
|
|
|
79 |
|
break;
|
|
|
80 |
|
case 'Un
Ban':
|
|
|
81 |
|
if (
(int)$val>
0) {
|
|
|
82 |
|
$sCheckBan
SQL = "DEL
ETE FROM `
AdminBanLi
st` WHERE
`ProfID`='
{$val}' LI
MIT 1";
|
|
|
83 |
|
db_res($sC
heckBanSQL
);
|
|
|
84 |
|
}
|
69 |
|
break;
|
|
85 |
|
break;
|
70 |
|
}
|
|
86 |
|
}
|
71 |
|
}
|
|
87 |
|
}
|
72 |
|
}
|
|
88 |
|
}
|
73 |
|
|
|
89 |
|
|
74 |
|
// - GET v
ariables -
----------
---
|
|
90 |
|
// - GET v
ariables -
----------
---
|
75 |
|
|
|
91 |
|
|
76 |
|
$page
= (i
nt)$_GET['
page'];
|
|
92 |
|
$page
= (i
nt)$_GET['
page'];
|
77 |
|
$p_per_pag
e = (i
nt)$_GET['
p_per_page
'];
|
|
93 |
|
$p_per_pag
e = (i
nt)$_GET['
p_per_page
'];
|
78 |
|
$profiles
= $_
GET['profi
les'];
|
|
94 |
|
$profiles
= $_
GET['profi
les'];
|
79 |
|
$sorttype
= $_
COOKIE['so
rttype'];
|
|
95 |
|
$sorttype
= $_
COOKIE['so
rttype'];
|
80 |
|
$sortor
= $_
GET['sorto
r'] ? $_GE
T['sortor'
] : $_COOK
IE['sortor
'];
|
|
96 |
|
$sortor
= $_
GET['sorto
r'] ? $_GE
T['sortor'
] : $_COOK
IE['sortor
'];
|
81 |
|
$sex
= $_
GET['sex']
;
|
|
97 |
|
$sex
= $_
GET['sex']
;
|
82 |
|
$search
= $_
GET['searc
h'];
|
|
98 |
|
$search
= $_
GET['searc
h'];
|
83 |
|
$showAffMe
mbers = (i
nt)$_GET['
showAffMem
bers'];
|
|
99 |
|
$showAffMe
mbers = (i
nt)$_GET['
showAffMem
bers'];
|
84 |
|
|
|
100 |
|
|
85 |
|
if ( !$pag
e )
|
|
101 |
|
if ( !$pag
e )
|
86 |
|
$page
= 1;
|
|
102 |
|
$page
= 1;
|
87 |
|
|
|
103 |
|
|
88 |
|
if ( !$p_p
er_page )
|
|
104 |
|
if ( !$p_p
er_page )
|
89 |
|
$p_per
_page = 30
;
|
|
105 |
|
$p_per
_page = 30
;
|
90 |
|
|
|
106 |
|
|
91 |
|
if ( $show
AffMembers
> 0 )
|
|
107 |
|
if ( $show
AffMembers
> 0 )
|
92 |
|
{
|
|
108 |
|
{
|
93 |
|
$aff_p
art_w = "
AND idAff
= $showAff
Members AN
D idProfil
e = ID";
|
|
109 |
|
$aff_p
art_w = "
AND idAff
= $showAff
Members AN
D idProfil
e = ID";
|
94 |
|
$aff_p
art_f = ",
aff_member
s ";
|
|
110 |
|
$aff_p
art_f = ",
aff_member
s ";
|
95 |
|
}
|
|
111 |
|
}
|
96 |
|
|
|
112 |
|
|
97 |
|
switch( $p
rofiles )
|
|
113 |
|
switch( $p
rofiles )
|
98 |
|
{
|
|
114 |
|
{
|
99 |
|
case '
Active':
|
|
115 |
|
case '
Active':
|
100 |
|
$p
rof_part =
"AND `Sta
tus` = '$p
rofiles'";
|
|
116 |
|
$p
rof_part =
"AND `Sta
tus` = '$p
rofiles'";
|
101 |
|
br
eak;
|
|
117 |
|
br
eak;
|
102 |
|
case '
Unconfirme
d':
|
|
118 |
|
case '
Unconfirme
d':
|
103 |
|
case '
Approval':
|
|
119 |
|
case '
Approval':
|
104 |
|
case '
Rejected':
|
|
120 |
|
case '
Rejected':
|
105 |
|
case '
Suspended'
:
|
|
121 |
|
case '
Suspended'
:
|
106 |
|
$p
rof_part =
"AND `Sta
tus` <> 'A
ctive'";
|
|
122 |
|
$p
rof_part =
"AND `Sta
tus` <> 'A
ctive'";
|
107 |
|
br
eak;
|
|
123 |
|
br
eak;
|
108 |
|
defaul
t:
|
|
124 |
|
defaul
t:
|
109 |
|
$p
rof_part =
"";
|
|
125 |
|
$p
rof_part =
"";
|
110 |
|
}
|
|
126 |
|
}
|
111 |
|
|
|
127 |
|
|
112 |
|
if ( strle
n($sex) )
|
|
128 |
|
if ( strle
n($sex) )
|
113 |
|
$sex_p
art = "AND
Sex = '"
. process_
db_input($
sex, 1) .
"'";
|
|
129 |
|
$sex_p
art = "AND
Sex = '"
. process_
db_input($
sex, 1) .
"'";
|
114 |
|
|
|
130 |
|
|
115 |
|
|
|
131 |
|
|
116 |
|
if (strlen
($search))
|
|
132 |
|
if (strlen
($search))
|
117 |
|
{
|
|
133 |
|
{
|
118 |
|
if ($_
GET['s_mai
l'])
|
|
134 |
|
if ($_
GET['s_mai
l'])
|
119 |
|
$e
mail_part
= " AND `E
mail` LIKE
'%$search
%' ";
|
|
135 |
|
$e
mail_part
= " AND `E
mail` LIKE
'%$search
%' ";
|
120 |
|
elseif
($_GET['s
_nickname'
])
|
|
136 |
|
elseif
($_GET['s
_nickname'
])
|
121 |
|
$e
mail_part
= " AND `N
ickName` L
IKE '%$sea
rch%' ";
|
|
137 |
|
$e
mail_part
= " AND `N
ickName` L
IKE '%$sea
rch%' ";
|
122 |
|
elseif
($_GET[s_
id])
|
|
138 |
|
elseif
($_GET[s_
id])
|
123 |
|
$e
mail_part
= " AND `I
D` = '$sea
rch' ";
|
|
139 |
|
$e
mail_part
= " AND `I
D` = '$sea
rch' ";
|
124 |
|
|
|
140 |
|
|
125 |
|
}
|
|
141 |
|
}
|
126 |
|
|
|
142 |
|
|
127 |
|
if (isset(
$_GET['med
ia']) && i
sset($_GET
['status']
))
|
|
143 |
|
if (isset(
$_GET['med
ia']) && i
sset($_GET
['status']
))
|
128 |
|
{
|
|
144 |
|
{
|
129 |
|
$sType
= h
tmlspecial
chars_adv(
$_GET['med
ia']);
|
|
145 |
|
$sType
= h
tmlspecial
chars_adv(
$_GET['med
ia']);
|
130 |
|
$sStat
us =
htmlspecia
lchars_adv
($_GET['st
atus']);
|
|
146 |
|
$sStat
us =
htmlspecia
lchars_adv
($_GET['st
atus']);
|
131 |
|
$sqlJo
inPart = "
LEFT JOIN
`media` ON
(`media`.
`med_prof_
id` = `Pro
files`.`ID
`)";
|
|
147 |
|
$sqlJo
inPart = "
LEFT JOIN
`media` ON
(`media`.
`med_prof_
id` = `Pro
files`.`ID
`)";
|
132 |
|
$sqlWh
ere = "
AND `med_
status` =
'$sStatus'
AND `med_
type`='$sT
ype'";
|
|
148 |
|
$sqlWh
ere = "
AND `med_
status` =
'$sStatus'
AND `med_
type`='$sT
ype'";
|
133 |
|
$sqlGr
oup = "
GROUP BY
`Profiles`
.`ID`";
|
|
149 |
|
$sqlGr
oup = "
GROUP BY
`Profiles`
.`ID`";
|
134 |
|
}
|
|
150 |
|
}
|
135 |
|
|
|
151 |
|
|
|
|
152 |
|
|
|
|
153 |
|
$sqlCouple
= "(`Coup
le`=0 OR `
Couple`>`P
rofiles`.`
ID`)";
|
|
|
154 |
|
$sqlWhere
.= ' AND '
. $sqlCou
ple;
|
|
|
155 |
|
|
136 |
|
// -------
----------
----------
---
|
|
156 |
|
// -------
----------
----------
---
|
137 |
|
|
|
157 |
|
|
138 |
|
$sQuery
=
"SELECT
`
ID`,
|
|
158 |
|
$sQuery
=
"SELECT
`
Profiles`.
`ID`
as
`
ID`,
|
139 |
|
`N
ickName`,
|
|
159 |
|
`N
ickName`,
|
140 |
|
`E
mail`,
|
|
160 |
|
`E
mail`,
|
141 |
|
`S
ex`,
|
|
161 |
|
`S
ex`,
|
142 |
|
DATE_FORMA
T(`
LastLog
gedI
n`,
'$date_for
mat'
)
AS
`
LastLog
gedI
nCur`,
|
|
162 |
|
DATE_FORMA
T(`
Date
LastLog
i
n`,
'$date_for
mat'
)
AS
`
Date
LastLog
i
nCur`,
|
143 |
|
DATE_FORMA
T(`
L
a
s
t
Reg`,
'$date_for
mat'
)
AS
`
L
a
s
t
Reg`,
|
|
163 |
|
DATE_FORMA
T(`
D
a
t
e
Reg`,
'$date_for
mat'
)
AS
`
D
a
t
e
Reg`,
|
144 |
|
`
Status`
|
|
164 |
|
`
Status`
|
|
|
165 |
|
$
sMemField
|
145 |
|
F
ROM `Profi
les` $aff_
part_f
|
|
166 |
|
F
ROM `Profi
les` $aff_
part_f
|
146 |
|
$
sqlJoinPar
t
|
|
167 |
|
$
sqlJoinPar
t
|
|
|
168 |
|
$
sMemJoin
|
147 |
|
W
HERE 1 $em
ail_part $
aff_part_w
$prof_par
t $sex_par
t $sqlWher
e $sqlGrou
p";
|
|
169 |
|
W
HERE 1 $em
ail_part $
aff_part_w
$prof_par
t $sex_par
t $sqlWher
e $sqlGrou
p";
|
148 |
|
|
|
170 |
|
|
149 |
|
$rData = d
b_res($sQu
ery);
|
|
171 |
|
$rData = d
b_res($sQu
ery);
|
150 |
|
$p_num = m
ysql_num_r
ows($rData
);
|
|
172 |
|
$p_num = m
ysql_num_r
ows($rData
);
|
151 |
|
$pages_num
= ceil( $
p_num / $p
_per_page
);
|
|
173 |
|
$pages_num
= ceil( $
p_num / $p
_per_page
);
|
152 |
|
|
|
174 |
|
|
153 |
|
$real_firs
t_p = (int
)($page -
1) * $p_pe
r_page;
|
|
175 |
|
$real_firs
t_p = (int
)($page -
1) * $p_pe
r_page;
|
154 |
|
$page_firs
t_p = $rea
l_first_p
+ 1;
|
|
176 |
|
$page_firs
t_p = $rea
l_first_p
+ 1;
|
155 |
|
|
|
177 |
|
|
156 |
|
/* checkin
g for inco
ming value
for sort
order
|
|
178 |
|
/* checkin
g for inco
ming value
for sort
order
|
157 |
|
* if we o
pen this p
age withou
t sortor p
aram
|
|
179 |
|
* if we o
pen this p
age withou
t sortor p
aram
|
158 |
|
* we use
ID as defa
ult
|
|
180 |
|
* we use
ID as defa
ult
|
159 |
|
* after t
hat we put
old value
to cookie
|
|
181 |
|
* after t
hat we put
old value
to cookie
|
160 |
|
* $sortod
er - stand
s for valu
e for ORDE
R BY query
|
|
182 |
|
* $sortod
er - stand
s for valu
e for ORDE
R BY query
|
161 |
|
*/
|
|
183 |
|
*/
|
162 |
|
|
|
184 |
|
|
163 |
|
if ( $sort
or == "" )
|
|
185 |
|
if ( $sort
or == "" )
|
164 |
|
{
|
|
186 |
|
{
|
165 |
|
$sortor
=
"
LastLog
gedI
n";
|
|
187 |
|
$sortor
=
"
Date
LastLog
i
n";
|
166 |
|
}
|
|
188 |
|
}
|
167 |
|
setcookie(
"sortor",
$sortor )
;
|
|
189 |
|
setcookie(
"sortor",
$sortor )
;
|
168 |
|
|
|
190 |
|
|
169 |
|
/* here we
make chec
k for the
first clic
k on the v
alue
|
|
191 |
|
/* here we
make chec
k for the
first clic
k on the v
alue
|
170 |
|
* in case
we change
our incom
ing value
we set ord
er type to
ASCENDING
|
|
192 |
|
* in case
we change
our incom
ing value
we set ord
er type to
ASCENDING
|
171 |
|
* in othe
r case we
check for
additional
clicks an
d change t
he image
|
|
193 |
|
* in othe
r case we
check for
additional
clicks an
d change t
he image
|
172 |
|
* $sortty
pe - ASCEN
DING or DE
SCENDING
|
|
194 |
|
* $sortty
pe - ASCEN
DING or DE
SCENDING
|
173 |
|
*/
|
|
195 |
|
*/
|
174 |
|
if ( $_GET
['sortor']
&& ($_GET
['sortor']
!= $_COOK
IE['sortor
']) )
|
|
196 |
|
if ( $_GET
['sortor']
&& ($_GET
['sortor']
!= $_COOK
IE['sortor
']) )
|
175 |
|
{
|
|
197 |
|
{
|
176 |
|
$sortt
ype = "DES
C";
|
|
198 |
|
$sortt
ype = "DES
C";
|
177 |
|
}
|
|
199 |
|
}
|
178 |
|
elseif ( $
_GET['sort
or'] )
|
|
200 |
|
elseif ( $
_GET['sort
or'] )
|
179 |
|
{
|
|
201 |
|
{
|
180 |
|
if ( $
_COOKIE['s
orttype']
== "ASC" )
|
|
202 |
|
if ( $
_COOKIE['s
orttype']
== "ASC" )
|
181 |
|
{
|
|
203 |
|
{
|
182 |
|
$s
orttype =
"DESC";
|
|
204 |
|
$s
orttype =
"DESC";
|
183 |
|
$s
ortor_imag
e = "<img
src=\"./im
ages/desc_
order.gif\
">";
|
|
205 |
|
$s
ortor_imag
e = "<img
src=\"./im
ages/desc_
order.gif\
">";
|
184 |
|
}
|
|
206 |
|
}
|
185 |
|
else
|
|
207 |
|
else
|
186 |
|
{
|
|
208 |
|
{
|
187 |
|
$s
orttype =
"ASC";
|
|
209 |
|
$s
orttype =
"ASC";
|
188 |
|
$s
ortor_imag
e = "<img
src=\"./im
ages/asc_o
rder.gif\"
>";
|
|
210 |
|
$s
ortor_imag
e = "<img
src=\"./im
ages/asc_o
rder.gif\"
>";
|
189 |
|
}
|
|
211 |
|
}
|
190 |
|
}
|
|
212 |
|
}
|
191 |
|
setcookie(
"sorttype
", $sortty
pe );
|
|
213 |
|
setcookie(
"sorttype
", $sortty
pe );
|
192 |
|
|
|
214 |
|
|
193 |
|
/* the che
ck for mem
ber status
|
|
215 |
|
/* the che
ck for mem
ber status
|
194 |
|
* in case
we have t
he full me
mber list
without an
y statuses
we set it
to nothin
g
|
|
216 |
|
* in case
we have t
he full me
mber list
without an
y statuses
we set it
to nothin
g
|
195 |
|
* in othe
r case we
add anothe
r option t
o the quer
y
|
|
217 |
|
* in othe
r case we
add anothe
r option t
o the quer
y
|
196 |
|
* $inc_pr
ofiles - v
ariable re
turning th
e incoming
parameter
for profi
le status
|
|
218 |
|
* $inc_pr
ofiles - v
ariable re
turning th
e incoming
parameter
for profi
le status
|
197 |
|
*/
|
|
219 |
|
*/
|
198 |
|
if ( $prof
iles != ""
)
|
|
220 |
|
if ( $prof
iles != ""
)
|
199 |
|
{
|
|
221 |
|
{
|
200 |
|
$inc_p
rofiles =
"profiles=
$profiles&
";
|
|
222 |
|
$inc_p
rofiles =
"profiles=
$profiles&
";
|
201 |
|
}
|
|
223 |
|
}
|
202 |
|
else
|
|
224 |
|
else
|
203 |
|
{
|
|
225 |
|
{
|
204 |
|
$inc_p
rofiles =
"";
|
|
226 |
|
$inc_p
rofiles =
"";
|
205 |
|
}
|
|
227 |
|
}
|
206 |
|
$n_arr
=
db_arr(
'SELECT
COUNT(*)
FROM
`Profiles`
'
);
|
|
228 |
|
$n_arr
=
db_arr(
'SELECT
COUNT(*)
FROM
`Profiles`
'
.
"
WHERE
{$sqlCoupl
e}"
);
|
207 |
|
$status_ar
r[0] = "Ac
tive";
|
|
229 |
|
$status_ar
r[0] = "Ac
tive";
|
208 |
|
$status_ar
r[1] = "Ap
proval";
|
|
230 |
|
$status_ar
r[1] = "Ap
proval";
|
209 |
|
$status_ar
r[2] = "Un
confirmed"
;
|
|
231 |
|
$status_ar
r[2] = "Un
confirmed"
;
|
210 |
|
$status_ar
r[3] = "Re
jected";
|
|
232 |
|
$status_ar
r[3] = "Re
jected";
|
211 |
|
$status_ar
r[4] = "Su
spended";
|
|
233 |
|
$status_ar
r[4] = "Su
spended";
|
212 |
|
|
|
234 |
|
|
213 |
|
$sQuery
=
"SELECT
`
ID`,
|
|
235 |
|
if (getPar
am("free_m
ode") != '
on') {
|
|
|
236 |
|
$sMemF
ield = ",
`IDLevel`,
IF(ISNULL
(`MemLevel
s`.`Name`)
,'', `MemL
evels`.`Na
me`) AS `M
emName`";
|
|
|
237 |
|
$sMemJ
oin = "LE
FT JOIN `P
rofileMemL
evels` ON
`ProfileMe
mLevels`.`
IDLevel`=`
Profiles`.
`ID`
|
|
|
238 |
|
LE
FT JOIN `M
emLevels`
ON `Profil
eMemLevels
`.`IDLevel
` = `MemLe
vels`.`ID`
";
|
|
|
239 |
|
$sMemL
evelShow =
'style="d
isplay:blo
ck;"';
|
|
|
240 |
|
}
|
|
|
241 |
|
else
|
|
|
242 |
|
$sMemL
evelShow =
'style="d
isplay:non
e;"';
|
|
|
243 |
|
|
|
|
244 |
|
|
|
|
245 |
|
$sQuery
=
"SELECT
`
Profiles`.
`ID`
as
`
ID`,
|
214 |
|
`N
ickName`,
|
|
246 |
|
`N
ickName`,
|
215 |
|
`E
mail`,
|
|
247 |
|
`E
mail`,
|
216 |
|
`S
ex`,
|
|
248 |
|
`S
ex`,
|
217 |
|
DATE_FORMA
T(`
LastLog
gedI
n`,
'$date_for
mat'
)
AS
`
LastLog
gedI
nCur`,
|
|
249 |
|
DATE_FORMA
T(`
Date
LastLog
i
n`,
'$date_for
mat'
)
AS
`
Date
LastLog
i
nCur`,
|
218 |
|
DATE_FORMA
T(`
L
a
s
t
Reg`,
'$date_for
mat'
)
AS
`
L
a
s
t
Reg`,
|
|
250 |
|
DATE_FORMA
T(`
D
a
t
e
Reg`,
'$date_for
mat'
)
AS
`
D
a
t
e
Reg`,
|
219 |
|
`
Status`
|
|
251 |
|
`
Status`
|
|
|
252 |
|
$
sMemField
|
220 |
|
F
ROM `Profi
les` $aff_
part_f
|
|
253 |
|
F
ROM `Profi
les` $aff_
part_f
|
221 |
|
$
sqlJoinPar
t
|
|
254 |
|
$
sqlJoinPar
t
|
|
|
255 |
|
$
sMemJoin
|
222 |
|
W
HERE 1 $em
ail_part $
aff_part_w
$prof_par
t $sex_par
t $sqlWher
e $sqlGrou
p ORDER BY
$sortor $
sorttype L
IMIT $real
_first_p,
$p_per_pag
e;";
|
|
256 |
|
W
HERE 1 $em
ail_part $
aff_part_w
$prof_par
t $sex_par
t $sqlWher
e $sqlGrou
p ORDER BY
$sortor $
sorttype L
IMIT $real
_first_p,
$p_per_pag
e;";
|
223 |
|
|
|
257 |
|
|
224 |
|
$result =
db_res($sQ
uery);
|
|
258 |
|
$result =
db_res($sQ
uery);
|
225 |
|
|
|
259 |
|
|
226 |
|
$_page['he
ader'] = "
Members' P
rofiles";
|
|
260 |
|
$_page['he
ader'] = "
Members' P
rofiles";
|
227 |
|
$_page['he
ader_text'
] = "Membe
rs profile
s sorted b
y modifica
tion date"
;
|
|
261 |
|
$_page['he
ader_text'
] = "Membe
rs profile
s sorted b
y modifica
tion date"
;
|
228 |
|
$_page['js
'] = 1;
|
|
262 |
|
$_page['js
'] = 1;
|
229 |
|
TopCodeAdm
in();
|
|
263 |
|
TopCodeAdm
in();
|
230 |
|
|
|
264 |
|
|
231 |
|
|
|
265 |
|
|
232 |
|
ContentBlo
ckHead("To
tal regist
ered membe
rs");
|
|
266 |
|
ContentBlo
ckHead("To
tal regist
ered membe
rs");
|
233 |
|
?>
|
|
267 |
|
?>
|
234 |
|
<center>
<table cel
lspacing="
1" cellpad
ding="2" b
order="0"
width="70%
" align="c
enter" bgc
olor="#ccc
ccc" >
|
|
268 |
|
<center>
<table cel
lspacing="
1" cellpad
ding="2" b
order="0"
width="70%
" align="c
enter" bgc
olor="#ccc
ccc" >
|
235 |
|
<tr>
|
|
269 |
|
<tr>
|
236 |
|
<td bgcolo
r="#E5E5E5
" class="t
ext" align
="left"><a
href="<?p
hp echo $s
ite['url_a
dmin']; ?>
profiles.p
hp">Total
registered
members:<
/a></td>
|
|
270 |
|
<td bgcolo
r="#E5E5E5
" class="t
ext" align
="left"><a
href="<?p
hp echo $s
ite['url_a
dmin']; ?>
profiles.p
hp">Total
registered
members:<
/a></td>
|
237 |
|
<td bgcolo
r="#E5E5E5
" width="5
0" class="
text" alig
n="right">
<b><?php e
cho $n_arr
[0]; ?></b
></td>
|
|
271 |
|
<td bgcolo
r="#E5E5E5
" width="5
0" class="
text" alig
n="right">
<b><?php e
cho $n_arr
[0]; ?></b
></td>
|
238 |
|
</tr
>
|
|
272 |
|
</tr
>
|
239 |
|
<?php
|
|
273 |
|
<?php
|
240 |
|
$i = 0;
|
|
274 |
|
$i = 0;
|
241 |
|
$iK = 1;
|
|
275 |
|
$iK = 1;
|
242 |
|
|
|
276 |
|
|
243 |
|
$sActEmCol
or = " #FF
FFFF";
|
|
277 |
|
$sActEmCol
or = " #FF
FFFF";
|
244 |
|
|
|
278 |
|
|
245 |
|
while( lis
t( $key, $
val ) = ea
ch( $statu
s_arr ) )
|
|
279 |
|
while( lis
t( $key, $
val ) = ea
ch( $statu
s_arr ) )
|
246 |
|
{
|
|
280 |
|
{
|
247 |
|
if ( $
val == 'Ac
tive' )
|
|
281 |
|
if ( $
val == 'Ac
tive' )
|
248 |
|
{
|
|
282 |
|
{
|
249 |
|
$sAdd
=
"
`Status`
=
'$val'
";
|
|
283 |
|
$sAdd
=
"
`Status`
=
'$val'
AND
{$sqlCoupl
e}
";
|
250 |
|
$s
Capt = $va
l;
|
|
284 |
|
$s
Capt = $va
l;
|
251 |
|
}
|
|
285 |
|
}
|
252 |
|
else
|
|
286 |
|
else
|
253 |
|
{
|
|
287 |
|
{
|
254 |
|
if
( $iK <=
1 )
|
|
288 |
|
if
( $iK <=
1 )
|
255 |
|
{
|
|
289 |
|
{
|
256 |
|
$sAdd
=
"
`Status`
<>
'Active'
";
|
|
290 |
|
$sAdd
=
"
`Status`
<>
'Active'
AND
{$sqlCoupl
e}
";
|
257 |
|
$iK++;
|
|
291 |
|
$iK++;
|
258 |
|
$sCapt =
'Inactive
';
|
|
292 |
|
$sCapt =
'Inactive
';
|
259 |
|
}
|
|
293 |
|
}
|
260 |
|
el
se
|
|
294 |
|
el
se
|
261 |
|
{
|
|
295 |
|
{
|
262 |
|
continue
;
|
|
296 |
|
continue
;
|
263 |
|
}
|
|
297 |
|
}
|
264 |
|
}
|
|
298 |
|
}
|
265 |
|
|
|
299 |
|
|
266 |
|
$n_arr
= db_arr(
"SELECT C
OUNT(*) FR
OM `Profil
es` WHERE
$sAdd" );
|
|
300 |
|
$n_arr
= db_arr(
"SELECT C
OUNT(*) FR
OM `Profil
es` WHERE
$sAdd" );
|
267 |
|
|
|
301 |
|
|
268 |
|
if ( $
n_arr[0])
|
|
302 |
|
if ( $
n_arr[0])
|
269 |
|
{
|
|
303 |
|
{
|
270 |
|
?>
|
|
304 |
|
?>
|
271 |
|
<tr>
|
|
305 |
|
<tr>
|
272 |
|
<td class=
"text" bg
color="#ff
ffff" alig
n="left" v
align="mid
dle"> 
; &nb
sp; <
img src=im
ages/arrow
.gif>
|
|
306 |
|
<td class=
"text" bg
color="#ff
ffff" alig
n="left" v
align="mid
dle"> 
; &nb
sp; <
img src=im
ages/arrow
.gif>
|
273 |
|
<a hre
f="profile
s.php?prof
iles=<? ec
ho $val; ?
>"><? echo
$sCapt; ?
></a>
|
|
307 |
|
<a hre
f="profile
s.php?prof
iles=<? ec
ho $val; ?
>"><? echo
$sCapt; ?
></a>
|
274 |
|
</td>
|
|
308 |
|
</td>
|
275 |
|
<td class=
"prof_stat
_<? echo $
val; ?>" w
idth="50"
align="rig
ht"><? ech
o $n_arr[0
]; ?></td>
|
|
309 |
|
<td class=
"prof_stat
_<? echo $
val; ?>" w
idth="50"
align="rig
ht"><? ech
o $n_arr[0
]; ?></td>
|
276 |
|
</tr
>
|
|
310 |
|
</tr
>
|
277 |
|
<?
|
|
311 |
|
<?
|
278 |
|
}
|
|
312 |
|
}
|
279 |
|
if ( g
etParam("a
utoApprova
l_ifNoConf
Email") !=
'on' && $
val != 'Ac
tive' )
|
|
313 |
|
if ( g
etParam("a
utoApprova
l_ifNoConf
Email") !=
'on' && $
val != 'Ac
tive' )
|
280 |
|
{
|
|
314 |
|
{
|
281 |
|
$s
ActEmColor
= ' #66CC
66';
|
|
315 |
|
$s
ActEmColor
= ' #66CC
66';
|
282 |
|
$n
_arr = db_
arr( "SELE
CT COUNT(*
) FROM `Pr
ofiles` WH
ERE `Statu
s`='Unconf
irmed'" );
|
|
316 |
|
$n
_arr = db_
arr( "SELE
CT COUNT(*
) FROM `Pr
ofiles` WH
ERE `Statu
s`='Unconf
irmed'" );
|
283 |
|
|
|
317 |
|
|
284 |
|
if
( $n_arr[
0])
|
|
318 |
|
if
( $n_arr[
0])
|
285 |
|
{
|
|
319 |
|
{
|
286 |
|
?>
|
|
320 |
|
?>
|
287 |
|
<tr>
|
|
321 |
|
<tr>
|
288 |
|
<td cl
ass="text"
bgcolor=
"#ffffff"
align="lef
t" valign=
"middle">&
nbsp; 
; &nb
sp;<img sr
c=images/a
rrow.gif>
|
|
322 |
|
<td cl
ass="text"
bgcolor=
"#ffffff"
align="lef
t" valign=
"middle">&
nbsp; 
; &nb
sp;<img sr
c=images/a
rrow.gif>
|
289 |
|
<a
href="pro
files.php?
profiles=U
nconfirmed
">With unc
onfirmed e
mails</a>
|
|
323 |
|
<a
href="pro
files.php?
profiles=U
nconfirmed
">With unc
onfirmed e
mails</a>
|
290 |
|
</td>
|
|
324 |
|
</td>
|
291 |
|
<td cl
ass="prof_
stat_<? ec
ho $val; ?
>" width="
50" align=
"right"><?
echo $n_a
rr[0]; ?><
/td>
|
|
325 |
|
<td cl
ass="prof_
stat_<? ec
ho $val; ?
>" width="
50" align=
"right"><?
echo $n_a
rr[0]; ?><
/td>
|
292 |
|
</tr>
|
|
326 |
|
</tr>
|
293 |
|
<?
|
|
327 |
|
<?
|
294 |
|
}
|
|
328 |
|
}
|
295 |
|
}
|
|
329 |
|
}
|
296 |
|
}
|
|
330 |
|
}
|
297 |
|
$aMedia =
array('pho
to');
|
|
331 |
|
$aMedia =
array('pho
to');
|
298 |
|
foreach ($
aMedia as
$iK=>$sVal
)
|
|
332 |
|
foreach ($
aMedia as
$iK=>$sVal
)
|
299 |
|
{
|
|
333 |
|
{
|
300 |
|
$sqlUn
p = "SELEC
T * FROM `
media` WHE
RE `med_st
atus` = 'p
assive' AN
D `med_typ
e`= '$sVal
' GROUP BY
`med_prof
_id`";
|
|
334 |
|
$sqlUn
p = "SELEC
T * FROM `
media` WHE
RE `med_st
atus` = 'p
assive' AN
D `med_typ
e`= '$sVal
' GROUP BY
`med_prof
_id`";
|
301 |
|
$rUnp
= db_res($
sqlUnp);
|
|
335 |
|
$rUnp
= db_res($
sqlUnp);
|
302 |
|
|
|
336 |
|
|
303 |
|
if ($r
Unp && mys
ql_num_row
s($rUnp))
|
|
337 |
|
if ($r
Unp && mys
ql_num_row
s($rUnp))
|
304 |
|
{
|
|
338 |
|
{
|
305 |
|
?>
|
|
339 |
|
?>
|
306 |
|
<t
r>
|
|
340 |
|
<t
r>
|
307 |
|
<td clas
s="text"
bgcolor="#
ffffff" al
ign="left"
valign="m
iddle">&nb
sp; &
nbsp; 
;<img src=
images/arr
ow.gif>
|
|
341 |
|
<td clas
s="text"
bgcolor="#
ffffff" al
ign="left"
valign="m
iddle">&nb
sp; &
nbsp; 
;<img src=
images/arr
ow.gif>
|
308 |
|
<a h
ref="profi
les.php?me
dia=photo&
status=pas
sive"><? e
cho 'With
unapproved
'.$sVal;
?></a>
|
|
342 |
|
<a h
ref="profi
les.php?me
dia=photo&
status=pas
sive"><? e
cho 'With
unapproved
'.$sVal;
?></a>
|
309 |
|
</td>
|
|
343 |
|
</td>
|
310 |
|
<td clas
s="text" w
idth="50"
align="rig
ht"><? ech
o mysql_nu
m_rows($rU
np); ?></t
d>
|
|
344 |
|
<td clas
s="text" w
idth="50"
align="rig
ht"><? ech
o mysql_nu
m_rows($rU
np); ?></t
d>
|
311 |
|
</
tr>
|
|
345 |
|
</
tr>
|
312 |
|
<?
|
|
346 |
|
<?
|
313 |
|
}
|
|
347 |
|
}
|
314 |
|
}
|
|
348 |
|
}
|
315 |
|
|
|
349 |
|
|
316 |
|
?>
|
|
350 |
|
?>
|
317 |
|
</table>
</center>
|
|
351 |
|
</table>
</center>
|
318 |
|
|
|
352 |
|
|
319 |
|
<?
|
|
353 |
|
<?
|
320 |
|
ContentBlo
ckFoot();
|
|
354 |
|
ContentBlo
ckFoot();
|
321 |
|
ContentBlo
ckHead("Se
arch profi
le");
|
|
355 |
|
ContentBlo
ckHead("Se
arch profi
le");
|
322 |
|
?>
|
|
356 |
|
?>
|
323 |
|
<table
cellspacin
g=0
cellpaddin
g=0
border="0"
align="rig
ht"
class="tex
t"><tr><td
><a
href="<?
echo
$site[url]
;
?>
pr
o
file_ed
i
t
.php">Add
a
new
profile</a
></td></tr
></table><
br>
|
|
357 |
|
<table
cellspacin
g=0
cellpaddin
g=0
border="0"
align="rig
ht"
class="tex
t"><tr><td
><a
href="<?
echo
$site[url]
;
?>
j
o
i
n
.php">Add
a
new
profile</a
></td></tr
></table><
br>
|
324 |
|
|
|
358 |
|
|
325 |
|
<form meth
od="get" a
ction="pro
files.php"
>
|
|
359 |
|
<form meth
od="get" a
ction="pro
files.php"
>
|
326 |
|
<table ali
gn="center
" width="1
00%" cells
pacing=2 c
ellpadding
=2 border
=0>
|
|
360 |
|
<table ali
gn="center
" width="1
00%" cells
pacing=2 c
ellpadding
=2 border
=0>
|
327 |
|
<tr>
|
|
361 |
|
<tr>
|
328 |
|
<td al
ign=center
colspan="
3"> <input
class=tex
t name='se
arch' size
=50> </td>
|
|
362 |
|
<td al
ign=center
colspan="
3"> <input
class=tex
t name='se
arch' size
=50> </td>
|
329 |
|
</tr>
|
|
363 |
|
</tr>
|
330 |
|
<tr>
|
|
364 |
|
<tr>
|
331 |
|
<td al
ign="right
"> <input
name='s_ni
ckname' ty
pe=submit
value="Sea
rch by Nic
kname"> </
td>
|
|
365 |
|
<td al
ign="right
"> <input
name='s_ni
ckname' ty
pe=submit
value="Sea
rch by Nic
kname"> </
td>
|
332 |
|
<td al
ign="cente
r"> <input
name='s_m
ail' type=
submit val
ue="Search
by Email"
> </td>
|
|
366 |
|
<td al
ign="cente
r"> <input
name='s_m
ail' type=
submit val
ue="Search
by Email"
> </td>
|
333 |
|
<td al
ign=left>
<input nam
e='s_id' t
ype=submit
value="Se
arch by ID
"> </td>
|
|
367 |
|
<td al
ign=left>
<input nam
e='s_id' t
ype=submit
value="Se
arch by ID
"> </td>
|
334 |
|
</tr>
|
|
368 |
|
</tr>
|
335 |
|
</table>
|
|
369 |
|
</table>
|
336 |
|
</form>
|
|
370 |
|
</form>
|
337 |
|
<?
|
|
371 |
|
<?
|
338 |
|
ContentBlo
ckFoot();
|
|
372 |
|
ContentBlo
ckFoot();
|
339 |
|
ContentBlo
ckHead("Pr
ofiles");
|
|
373 |
|
ContentBlo
ckHead("Pr
ofiles");
|
340 |
|
?>
|
|
374 |
|
?>
|
341 |
|
|
|
375 |
|
|
342 |
|
|
|
376 |
|
|
343 |
|
<center>
|
|
377 |
|
<center>
|
344 |
|
<? echo R
esNavigati
onRet( 'Pr
ofilesUppe
r', 0 ); ?
>
|
|
378 |
|
<? echo R
esNavigati
onRet( 'Pr
ofilesUppe
r', 0 ); ?
>
|
345 |
|
</center>
|
|
379 |
|
</center>
|
346 |
|
<form acti
on="profil
es.php<? $
get_vars =
get_vars(
); echo su
bstr($get_
vars, 0, s
trlen($get
_vars) - 1
); ?>" met
hod=post n
ame="prf_f
orm">
|
|
380 |
|
<form acti
on="profil
es.php<? $
get_vars =
get_vars(
); echo su
bstr($get_
vars, 0, s
trlen($get
_vars) - 1
); ?>" met
hod=post n
ame="prf_f
orm">
|
347 |
|
<table ali
gn="center
" width=59
0 cellspac
ing=1 cell
padding=0
class=smal
l1 border=
0 bgcolor=
"#EEEEEE">
|
|
381 |
|
<table ali
gn="center
" width=59
0 cellspac
ing=1 cell
padding=0
class=smal
l1 border=
0 bgcolor=
"#EEEEEE">
|
348 |
|
<?
|
|
382 |
|
<?
|
349 |
|
if ( !$p_n
um )
|
|
383 |
|
if ( !$p_n
um )
|
350 |
|
echo "
<td class=
panel>No p
rofiles av
ailable</t
d>";
|
|
384 |
|
echo "
<td class=
panel>No p
rofiles av
ailable</t
d>";
|
351 |
|
else
|
|
385 |
|
else
|
352 |
|
{
|
|
386 |
|
{
|
353 |
|
?>
|
|
387 |
|
?>
|
354 |
|
<tr class=
panel>
|
|
388 |
|
<tr class=
panel>
|
355 |
|
<td>&n
bsp;</td>
|
|
389 |
|
<td>&n
bsp;</td>
|
356 |
|
<td al
ign=center
> <a
href="prof
iles.php?<
? echo "$i
nc_profile
s"?>sortor
=ID&p_per_
page=<? ec
ho "$p_per
_page"?>">
ID</a>&nbs
p;<? if (
$sortor=="
ID" ) echo
"$sortor_
image" ?><
/td>
|
|
390 |
|
<td al
ign=center
> <a
href="prof
iles.php?<
? echo "$i
nc_profile
s"?>sortor
=ID&p_per_
page=<? ec
ho "$p_per
_page"?>">
ID</a>&nbs
p;<? if (
$sortor=="
ID" ) echo
"$sortor_
image" ?><
/td>
|
357 |
|
|
|
391 |
|
|
358 |
|
<td al
ign=center
> <a
href="prof
iles.php?<
? echo "$i
nc_profile
s"?>sortor
=NickName&
p_per_page
=<? echo "
$p_per_pag
e"?>">Nick
Name</a>&n
bsp;<? if
( $sortor
=="NickNam
e" ) echo
"$sortor_i
mage" ?></
td>
|
|
392 |
|
<td al
ign=center
> <a
href="prof
iles.php?<
? echo "$i
nc_profile
s"?>sortor
=NickName&
p_per_page
=<? echo "
$p_per_pag
e"?>">Nick
Name</a>&n
bsp;<? if
( $sortor
=="NickNam
e" ) echo
"$sortor_i
mage" ?></
td>
|
359 |
|
|
|
393 |
|
|
360 |
|
<td al
ign=center
> E-m
ail <
/td>
|
|
394 |
|
<td al
ign=center
> E-m
ail <
/td>
|
361 |
|
|
|
395 |
|
|
362 |
|
<td al
ign=center
>Registere
d</td>
|
|
396 |
|
<td al
ign=center
>Registere
d</td>
|
363 |
|
|
|
397 |
|
|
364 |
|
<td
align=cent
er> <
a
href="prof
iles.php?<
?
echo
"$inc_prof
iles"?>sor
tor=
LastLog
gedI
n&p_per_pa
ge=<?
echo
"$p_per_pa
ge"?>">Las
t
Visited</a
> <?
if
(
$sortor=="
LastLog
gedI
n"
)
echo
"$sortor_i
mage"
?></td>
|
|
398 |
|
<td
align=cent
er> <
a
href="prof
iles.php?<
?
echo
"$inc_prof
iles"?>sor
tor=
Date
LastLog
i
n&p_per_pa
ge=<?
echo
"$p_per_pa
ge"?>">Las
t
Visited</a
> <?
if
(
$sortor=="
Date
LastLog
i
n"
)
echo
"$sortor_i
mage"
?></td>
|
365 |
|
|
|
399 |
|
|
366 |
|
<td al
ign=center
>Photos</t
d>
|
|
400 |
|
<td al
ign=center
>Photos</t
d>
|
367 |
|
|
|
401 |
|
|
368 |
|
<td al
ign=center
>Audio</td
>
|
|
402 |
|
<td al
ign=center
>Audio</td
>
|
369 |
|
|
|
403 |
|
|
370 |
|
<td al
ign=center
>BGs</td>
|
|
404 |
|
<td al
ign=center
>BGs</td>
|
|
|
405 |
|
|
|
|
406 |
|
<td al
ign=center
<?=$sMemL
evelShow?>
style="dis
play:none;
">Membersh
ip</td>
|
371 |
|
</tr>
|
|
407 |
|
</tr>
|
372 |
|
<?
|
|
408 |
|
<?
|
373 |
|
|
|
409 |
|
|
374 |
|
while
( $p_arr =
mysql_fet
ch_array(
$result )
)
|
|
410 |
|
while
( $p_arr =
mysql_fet
ch_array(
$result )
)
|
375 |
|
{
|
|
411 |
|
{
|
376 |
|
$c
ol = "tabl
e";
|
|
412 |
|
$c
ol = "tabl
e";
|
377 |
|
$s
Email = $p
_arr['Stat
us'] == 'U
nconfirmed
' ? '<span
style="ba
ckground-c
olor: #FF6
666;">'.$p
_arr['Emai
l'].'</spa
n>' : '<sp
an style="
background
-color:'.$
sActEmColo
r.';">'.$p
_arr['Emai
l'].'</spa
n>';
|
|
413 |
|
$s
Email = $p
_arr['Stat
us'] == 'U
nconfirmed
' ? '<span
style="ba
ckground-c
olor: #FF6
666;">'.$p
_arr['Emai
l'].'</spa
n>' : '<sp
an style="
background
-color:'.$
sActEmColo
r.';">'.$p
_arr['Emai
l'].'</spa
n>';
|
|
|
414 |
|
$s
BannedColo
r = (isLog
gedBanned(
$p_arr['ID
'])==true)
? '#F99'
: '#fff';
|
378 |
|
?>
|
|
415 |
|
?>
|
379 |
|
<tr
class=<?
echo
$col
;
?>
bgcolor="
#ffffff
">
|
|
416 |
|
<tr
class=<?
=
$col
?>
bgcolor="
<?=
$sBannedCo
lor
?>
">
|
380 |
|
<td al
ign=center
><input ty
pe=checkbo
x name="<?
echo $p_a
rr[ID]?>">
</td>
|
|
417 |
|
<td al
ign=center
><input ty
pe=checkbo
x name="<?
echo $p_a
rr[ID]?>">
</td>
|
381 |
|
|
|
418 |
|
|
382 |
|
<td>
<a
href="../p
rofile_
edit.php?I
D=<?
echo
$p_arr[ID]
;
?>"><?
echo
$p_arr[ID]
;
?></a>&nbs
p;</td>
|
|
419 |
|
<td>
<a
href="../p
edit.php?I
D=<?
echo
$p_arr[ID]
;
?>"><?
echo
$p_arr[ID]
;
?></a>&nbs
p;</td>
|
383 |
|
|
|
420 |
|
|
384 |
|
<td>
<?
echo
$p_arr['Ni
ckName']
;
?> </
td>
|
|
421 |
|
<td>
<?
=
$p_arr['Ni
ckName']
?> </
td>
|
385 |
|
|
|
422 |
|
|
386 |
|
<td>
<?
echo
$sEmail
;
?> </
td>
|
|
423 |
|
<td>
<?
=
$sEmail
?> </
td>
|
387 |
|
|
|
424 |
|
|
388 |
|
<td
align=
center
><?
echo
$p_arr['
L
a
s
t
Reg']?></t
d>
|
|
425 |
|
<td
align=
"
center
"
><?
=
$p_arr['
D
a
t
e
Reg']?></t
d>
|
389 |
|
|
|
426 |
|
|
390 |
|
<td
align=
center
><?
echo
$p_arr['
LastLog
gedI
nCur']
;
?></td>
|
|
427 |
|
<td
align=
"
center
"
><?
=
$p_arr['
Date
LastLog
i
nCur']
?></td>
|
391 |
|
|
|
428 |
|
|
392 |
|
<td><?
echo
getUserMed
ia($p_arr[
'ID'],
'photo')
;
?></td>
|
|
429 |
|
<td><?
=
getUserMed
ia($p_arr[
'ID'],
'photo')
?></td>
|
393 |
|
|
|
430 |
|
|
394 |
|
<td
align="cen
ter"><?
echo
getUserMed
ia($p_arr[
'ID'],
'audio')
;
?></td>
|
|
431 |
|
<td
align="cen
ter"><?
=
getUserMed
ia($p_arr[
'ID'],
'audio')
?></td>
|
395 |
|
|
|
432 |
|
|
396 |
|
<td
align="cen
ter"
"
><?
echo
getUserMed
ia($p_arr[
'ID'],
'bg')
;
?></td>
|
|
433 |
|
<td
align="cen
ter"
><?
=
getUserMed
ia($p_arr[
'ID'],
'bg')
?></td>
|
|
|
434 |
|
<td al
ign="cente
r" <?=$sMe
mLevelShow
?>><? if (
strlen($p_
arr['MemNa
me']) > 0)
{echo $p_
arr['MemNa
me'];} els
e echo 'St
andard';?>
</td>
|
397 |
|
|
|
435 |
|
|
398 |
|
</tr>
|
|
436 |
|
</tr>
|
399 |
|
<?
|
|
437 |
|
<?
|
400 |
|
}
|
|
438 |
|
}
|
401 |
|
}
|
|
439 |
|
}
|
402 |
|
?>
|
|
440 |
|
?>
|
403 |
|
</table>
|
|
441 |
|
</table>
|
404 |
|
|
|
442 |
|
|
405 |
|
<table cla
ss=text bo
rder=0 wid
th=590 ali
gn=center>
|
|
443 |
|
<table cla
ss=text bo
rder=0 wid
th=590 ali
gn=center>
|
406 |
|
<tr>
|
|
444 |
|
<tr>
|
407 |
|
<td>
|
|
445 |
|
<td>
|
408 |
|
<t
able cellp
adding="0"
cellspaci
ng="0" bor
der="0">
|
|
446 |
|
<t
able cellp
adding="0"
cellspaci
ng="0" bor
der="0">
|
409 |
|
<tr>
|
|
447 |
|
<tr>
|
410 |
|
<td
width="60"
> <a
href="java
script: vo
id(0);" on
click="set
Checkboxes
( 'prf_for
m', true )
; return f
alse;">Che
ck all</a>
</td>
|
|
448 |
|
<td
width="60"
> <a
href="java
script: vo
id(0);" on
click="set
Checkboxes
( 'prf_for
m', true )
; return f
alse;">Che
ck all</a>
</td>
|
411 |
|
<td
align="lef
t" width="
140"> <a h
ref="javas
cript: voi
d(0);" onc
lick="setC
heckboxes(
'prf_form
', false )
; return f
alse;">Unc
heck all</
a> </
td>
|
|
449 |
|
<td
align="lef
t" width="
140"> <a h
ref="javas
cript: voi
d(0);" onc
lick="setC
heckboxes(
'prf_form
', false )
; return f
alse;">Unc
heck all</
a> </
td>
|
412 |
|
<td
width="90"
align="ce
nter"><inp
ut class=t
ext type=s
ubmit name
="prf_form
_submit" v
alue="Dele
te"></td>
|
|
450 |
|
<td
width="90"
align="ce
nter"><inp
ut class=t
ext type=s
ubmit name
="prf_form
_submit" v
alue="Dele
te"></td>
|
413 |
|
<td
width="90"
align="ce
nter"><inp
ut class=t
ext type=s
ubmit name
="prf_form
_submit" v
alue="Conf
irm Email"
></td>
|
|
451 |
|
<td
width="90"
align="ce
nter"><inp
ut class=t
ext type=s
ubmit name
="prf_form
_submit" v
alue="Conf
irm Email"
></td>
|
414 |
|
<td
width="90"
align="ce
nter"><inp
ut class=t
ext type=s
ubmit name
="prf_form
_submit" v
alue="Acti
vate"></td
>
|
|
452 |
|
<td
width="90"
align="ce
nter"><inp
ut class=t
ext type=s
ubmit name
="prf_form
_submit" v
alue="Acti
vate"></td
>
|
415 |
|
<td
width="90"
align="ce
nter"><inp
ut class=t
ext type=s
ubmit name
="prf_form
_submit" v
alue="Appr
oval"></td
>
|
|
453 |
|
<td
width="90"
align="ce
nter"><inp
ut class=t
ext type=s
ubmit name
="prf_form
_submit" v
alue="Appr
oval"></td
>
|
416 |
|
</tr>
|
|
454 |
|
</tr>
|
|
|
455 |
|
<tr>
|
|
|
456 |
|
<td>
</td>
|
|
|
457 |
|
<td>
</td>
|
|
|
458 |
|
<td>
</td>
|
|
|
459 |
|
<td
align="cen
ter">Ban t
ime<br />(
in hours)<
input clas
s=text typ
e=text nam
e="time_hr
s" value="
1" style="
width:70px
;"></td>
|
|
|
460 |
|
<td
align="cen
ter"><inpu
t class=te
xt type=su
bmit name=
"prf_form_
submit" va
lue="Ban">
</td>
|
|
|
461 |
|
<td
align="cen
ter"><inpu
t class=te
xt type=su
bmit name=
"prf_form_
submit" va
lue="UnBan
"></td>
|
|
|
462 |
|
</tr>
|
417 |
|
</
table>
|
|
463 |
|
</
table>
|
418 |
|
</td>
|
|
464 |
|
</td>
|
419 |
|
</tr>
|
|
465 |
|
</tr>
|
420 |
|
<tr>
|
|
466 |
|
<tr>
|
421 |
|
|
|
467 |
|
|
422 |
|
<td a
lign="cent
er"><hr st
yle="width
:90%; colo
r:#e4e4e4;
height:1p
x;"><texta
rea name="
Message" s
tyle="widt
h:540px; h
eight:100p
x;"></text
area></td>
|
|
468 |
|
<td a
lign="cent
er"><hr st
yle="width
:90%; colo
r:#e4e4e4;
height:1p
x;"><texta
rea name="
Message" s
tyle="widt
h:540px; h
eight:100p
x;"></text
area></td>
|
423 |
|
</tr>
|
|
469 |
|
</tr>
|
424 |
|
<tr>
|
|
470 |
|
<tr>
|
425 |
|
<td a
lign="cent
er"><input
class=tex
t type=sub
mit name="
prf_form_s
ubmit" val
ue="Send M
essage"></
td>
|
|
471 |
|
<td a
lign="cent
er"><input
class=tex
t type=sub
mit name="
prf_form_s
ubmit" val
ue="Send M
essage"></
td>
|
426 |
|
</tr>
|
|
472 |
|
</tr>
|
427 |
|
</table>
|
|
473 |
|
</table>
|
428 |
|
</form>
|
|
474 |
|
</form>
|
429 |
|
<center>
|
|
475 |
|
<center>
|
430 |
|
<?
|
|
476 |
|
<?
|
431 |
|
echo ResNa
vigationRe
t( 'Profil
esLower',
0 );
|
|
477 |
|
echo ResNa
vigationRe
t( 'Profil
esLower',
0 );
|
432 |
|
?>
|
|
478 |
|
?>
|
433 |
|
</center>
|
|
479 |
|
</center>
|
434 |
|
<?
|
|
480 |
|
<?
|
435 |
|
ContentBlo
ckFoot();
|
|
481 |
|
ContentBlo
ckFoot();
|
436 |
|
ContentBlo
ckFoot();
|
|
482 |
|
ContentBlo
ckFoot();
|
437 |
|
BottomCode
();
|
|
483 |
|
BottomCode
();
|
438 |
|
|
|
484 |
|
|
439 |
|
function g
etUserMedi
a($ID, $sT
ype = '')
|
|
485 |
|
function g
etUserMedi
a($ID, $sT
ype = '')
|
440 |
|
{
|
|
486 |
|
{
|
441 |
|
switch
($sType)
|
|
487 |
|
switch
($sType)
|
442 |
|
{
|
|
488 |
|
{
|
443 |
|
ca
se 'video'
:
|
|
489 |
|
ca
se 'video'
:
|
444 |
|
break;
|
|
490 |
|
break;
|
445 |
|
ca
se 'audio'
:
|
|
491 |
|
ca
se 'audio'
:
|
446 |
|
$sAct
= " AND `
Owner`='$I
D'";
|
|
492 |
|
$sAct
= " AND `
Owner`='$I
D'";
|
447 |
|
$sPas
= " AND `
Owner`='$I
D'";
|
|
493 |
|
$sPas
= " AND `
Owner`='$I
D'";
|
448 |
|
$sqlAct
= "SELECT
COUNT(*)
as `Num` F
ROM `RayMp
3Files` WH
ERE 1 $sAc
t";
|
|
494 |
|
$sqlAct
= "SELECT
COUNT(*)
as `Num` F
ROM `RayMp
3Files` WH
ERE 1 $sAc
t";
|
449 |
|
//$sqlPa
s = "SELE
CT COUNT(*
) as `Num`
FROM `Ray
Mp3Files`
WHERE 1 $s
Pas";
|
|
495 |
|
//$sqlPa
s = "SELE
CT COUNT(*
) as `Num`
FROM `Ray
Mp3Files`
WHERE 1 $s
Pas";
|
450 |
|
$sqlPas
= "SELECT
COUNT(*)
as `Num` F
ROM `RayMp
3Files` WH
ERE 0";
|
|
496 |
|
$sqlPas
= "SELECT
COUNT(*)
as `Num` F
ROM `RayMp
3Files` WH
ERE 0";
|
451 |
|
$sHrefA
= 'post_m
od_audio.p
hp?iUser='
.$ID;
|
|
497 |
|
$sHrefA
= 'post_m
od_audio.p
hp?iUser='
.$ID;
|
452 |
|
$sHrefP
= 'post_m
od_audio.p
hp?iUser='
.$ID;
|
|
498 |
|
$sHrefP
= 'post_m
od_audio.p
hp?iUser='
.$ID;
|
453 |
|
break;
|
|
499 |
|
break;
|
454 |
|
ca
se 'photo'
:
|
|
500 |
|
ca
se 'photo'
:
|
455 |
|
$sAct
= " AND `
med_status
`='active'
AND `med_
prof_id`='
$ID'";
|
|
501 |
|
$sAct
= " AND `
med_status
`='active'
AND `med_
prof_id`='
$ID'";
|
456 |
|
$sPas
= " AND `
med_status
`='passive
' AND `med
_prof_id`=
'$ID'";
|
|
502 |
|
$sPas
= " AND `
med_status
`='passive
' AND `med
_prof_id`=
'$ID'";
|
457 |
|
$sqlAct
= "SELECT
COUNT(*)
as `Num` F
ROM `media
` WHERE `m
ed_type`='
$sType' $s
Act";
|
|
503 |
|
$sqlAct
= "SELECT
COUNT(*)
as `Num` F
ROM `media
` WHERE `m
ed_type`='
$sType' $s
Act";
|
458 |
|
$sqlPas
= "SELECT
COUNT(*)
as `Num` F
ROM `media
` WHERE `m
ed_type`='
$sType' $s
Pas";
|
|
504 |
|
$sqlPas
= "SELECT
COUNT(*)
as `Num` F
ROM `media
` WHERE `m
ed_type`='
$sType' $s
Pas";
|
459 |
|
$sHrefA
= 'post_m
od_photos.
php?media=
photo&stat
us=active&
iUser='.$I
D;
|
|
505 |
|
$sHrefA
= 'post_m
od_photos.
php?media=
photo&stat
us=active&
iUser='.$I
D;
|
460 |
|
$sHrefP
= 'post_m
od_photos.
php?media=
photo&stat
us=passive
&iUser='.$
ID;
|
|
506 |
|
$sHrefP
= 'post_m
od_photos.
php?media=
photo&stat
us=passive
&iUser='.$
ID;
|
461 |
|
break;
|
|
507 |
|
break;
|
462 |
|
|
|
508 |
|
|
463 |
|
ca
se 'bg':
|
|
509 |
|
ca
se 'bg':
|
464 |
|
$sqlAct
= "SELECT
COUNT(*)
as `Num` F
ROM `Profi
lesSetting
s` WHERE `
IDmember`=
'$ID' AND
`Status`='
Active' AN
D `Backgro
undFilenam
e`<>''";
|
|
510 |
|
$sqlAct
= "SELECT
COUNT(*)
as `Num` F
ROM `Profi
lesSetting
s` WHERE `
IDmember`=
'$ID' AND
`Status`='
Active' AN
D `Backgro
undFilenam
e`<>''";
|
465 |
|
$sqlPas
= "SELECT
COUNT(*)
as `Num` F
ROM `Profi
lesSetting
s` WHERE `
IDmember`=
'$ID' AND
(`Status`
IS NULL OR
`Status`<
>'Active')
AND `Back
groundFile
name`<>''"
;
|
|
511 |
|
$sqlPas
= "SELECT
COUNT(*)
as `Num` F
ROM `Profi
lesSetting
s` WHERE `
IDmember`=
'$ID' AND
(`Status`
IS NULL OR
`Status`<
>'Active')
AND `Back
groundFile
name`<>''"
;
|
466 |
|
$sHrefA
= 'post_m
od_profile
s.php?iUse
r='.$ID.'&
status=act
ive';
|
|
512 |
|
$sHrefA
= 'post_m
od_profile
s.php?iUse
r='.$ID.'&
status=act
ive';
|
467 |
|
$sHrefP
= 'post_m
od_profile
s.php?iUse
r='.$ID;
|
|
513 |
|
$sHrefP
= 'post_m
od_profile
s.php?iUse
r='.$ID;
|
468 |
|
break;
|
|
514 |
|
break;
|
469 |
|
}
|
|
515 |
|
}
|
470 |
|
$sActP
art = db_v
alue($sqlA
ct) > 0 ?
'<div clas
s="activeM
edia"><a h
ref="'.$sH
refA.'">'.
db_value($
sqlAct).'<
/a></div>'
: '';
|
|
516 |
|
$sActP
art = db_v
alue($sqlA
ct) > 0 ?
'<div clas
s="activeM
edia"><a h
ref="'.$sH
refA.'">'.
db_value($
sqlAct).'<
/a></div>'
: '';
|
471 |
|
$sPasP
art = strl
en($sqlPas
) && db_va
lue($sqlPa
s) > 0 ? '
<div class
="passiveM
edia"><a h
ref="'.$sH
refP.'">'.
db_value($
sqlPas).'<
/a></div>'
: '';
|
|
517 |
|
$sPasP
art = strl
en($sqlPas
) && db_va
lue($sqlPa
s) > 0 ? '
<div class
="passiveM
edia"><a h
ref="'.$sH
refP.'">'.
db_value($
sqlPas).'<
/a></div>'
: '';
|
472 |
|
|
|
518 |
|
|
473 |
|
return
$sActPart
.$sPasPart
;
|
|
519 |
|
return
$sActPart
.$sPasPart
;
|
474 |
|
}
|
|
520 |
|
}
|
475 |
|
|
|
521 |
|
|
476 |
|
?>
|
|
522 |
|
?>
|