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 |
|
|
|
26 |
|
|
28 |
|
if (getPar
am("enable
_aff") !=
'on')
|
|
27 |
|
if (getPar
am("enable
_aff") !=
'on')
|
29 |
|
{
|
|
28 |
|
{
|
30 |
|
$sCode
= MsgBox(
_t( '_aff
iliate_sys
tem_was_di
sabled' )
);
|
|
29 |
|
$sCode
= MsgBox(
_t( '_aff
iliate_sys
tem_was_di
sabled' )
);
|
31 |
|
$_page
['name_ind
ex'] = 0;
|
|
30 |
|
$_page
['name_ind
ex'] = 0;
|
32 |
|
$_page
_cont[0]['
page_main_
code'] = $
sCode;
|
|
31 |
|
$_page
_cont[0]['
page_main_
code'] = $
sCode;
|
33 |
|
PageCo
de();
|
|
32 |
|
PageCo
de();
|
34 |
|
exit()
;
|
|
33 |
|
exit()
;
|
35 |
|
}
|
|
34 |
|
}
|
36 |
|
|
|
35 |
|
|
37 |
|
$logged['a
ff'] = mem
ber_auth(
2 );
|
|
36 |
|
$logged['a
ff'] = mem
ber_auth(
2 );
|
38 |
|
$AFF = (in
t)$_COOKIE
['affID'];
|
|
37 |
|
$AFF = (in
t)$_COOKIE
['affID'];
|
39 |
|
|
|
38 |
|
|
40 |
|
// - GET v
ariables -
----------
---
|
|
39 |
|
// - GET v
ariables -
----------
---
|
41 |
|
|
|
40 |
|
|
42 |
|
$page
= (int)$
_GET['page
'];
|
|
41 |
|
$page
= (int)$
_GET['page
'];
|
43 |
|
$p_per_pag
e = (int)$
_GET['p_pe
r_page'];
|
|
42 |
|
$p_per_pag
e = (int)$
_GET['p_pe
r_page'];
|
44 |
|
$profiles
= $_GET[
'profiles'
];
|
|
43 |
|
$profiles
= $_GET[
'profiles'
];
|
45 |
|
$sex
= $_GET[
'sex'];
|
|
44 |
|
$sex
= $_GET[
'sex'];
|
46 |
|
|
|
45 |
|
|
47 |
|
if ( !$pag
e )
|
|
46 |
|
if ( !$pag
e )
|
48 |
|
$page
= 1;
|
|
47 |
|
$page
= 1;
|
49 |
|
|
|
48 |
|
|
50 |
|
if ( !$p_p
er_page )
|
|
49 |
|
if ( !$p_p
er_page )
|
51 |
|
$p_per
_page = 30
;
|
|
50 |
|
$p_per
_page = 30
;
|
52 |
|
|
|
51 |
|
|
53 |
|
switch( $p
rofiles )
|
|
52 |
|
switch( $p
rofiles )
|
54 |
|
{
|
|
53 |
|
{
|
55 |
|
case '
Unconfirme
d':
|
|
54 |
|
case '
Unconfirme
d':
|
56 |
|
case '
Approval':
|
|
55 |
|
case '
Approval':
|
57 |
|
case '
Active':
|
|
56 |
|
case '
Active':
|
58 |
|
case '
Rejected':
|
|
57 |
|
case '
Rejected':
|
59 |
|
case '
Suspended'
:
|
|
58 |
|
case '
Suspended'
:
|
60 |
|
$p
rof_part =
"AND Stat
us = '$pro
files'";
|
|
59 |
|
$p
rof_part =
"AND Stat
us = '$pro
files'";
|
61 |
|
br
eak;
|
|
60 |
|
br
eak;
|
62 |
|
defaul
t:
|
|
61 |
|
defaul
t:
|
63 |
|
$p
rof_part =
'';
|
|
62 |
|
$p
rof_part =
'';
|
64 |
|
}
|
|
63 |
|
}
|
65 |
|
|
|
64 |
|
|
66 |
|
if ( strle
n($sex) )
|
|
65 |
|
if ( strle
n($sex) )
|
67 |
|
$sex_p
art = "AND
Sex = '"
. process_
db_input($
sex, 1) .
"'";
|
|
66 |
|
$sex_p
art = "AND
Sex = '"
. process_
db_input($
sex, 1) .
"'";
|
68 |
|
else
|
|
67 |
|
else
|
69 |
|
$sex_p
art = '';
|
|
68 |
|
$sex_p
art = '';
|
70 |
|
|
|
69 |
|
|
71 |
|
// -------
----------
----------
---
|
|
70 |
|
// -------
----------
----------
---
|
72 |
|
|
|
71 |
|
|
73 |
|
$p_num = d
b_arr( "SE
LECT COUNT
(*) FROM `
Profiles`
INNER JOIN
`aff_memb
ers` ON (`
idProfile`
= `ID`) W
HERE `idAf
f` = $AFF
$prof_part
$sex_part
" );
|
|
72 |
|
$p_num = d
b_arr( "SE
LECT COUNT
(*) FROM `
Profiles`
INNER JOIN
`aff_memb
ers` ON (`
idProfile`
= `ID`) W
HERE `idAf
f` = $AFF
$prof_part
$sex_part
" );
|
74 |
|
$p_num = $
p_num[0];
|
|
73 |
|
$p_num = $
p_num[0];
|
75 |
|
$pages_num
= ceil( $
p_num / $p
_per_page
);
|
|
74 |
|
$pages_num
= ceil( $
p_num / $p
_per_page
);
|
76 |
|
|
|
75 |
|
|
77 |
|
$real_firs
t_p = (int
)($page -
1) * $p_pe
r_page;
|
|
76 |
|
$real_firs
t_p = (int
)($page -
1) * $p_pe
r_page;
|
78 |
|
$page_firs
t_p = $rea
l_first_p
+ 1;
|
|
77 |
|
$page_firs
t_p = $rea
l_first_p
+ 1;
|
79 |
|
|
|
78 |
|
|
80 |
|
$result
=
db_res(
"SELECT
`Profiles`
.*
FROM
`Profiles`
INNER
JOIN
`aff_membe
rs`
ON
(`idProfil
e`
=
`ID`)
WHERE
`idAff`
=
$AFF
$prof_part
$sex_part
ORDER
BY
`
Last
Mo
di
fied
`
DESC
LIMIT
$real_firs
t_p,
$p_per_pag
e;"
);
|
|
79 |
|
$result
=
db_res(
"SELECT
`Profiles`
.*
FROM
`Profiles`
INNER
JOIN
`aff_membe
rs`
ON
(`idProfil
e`
=
`ID`)
WHERE
`idAff`
=
$AFF
$prof_part
$sex_part
ORDER
BY
`
Date
Last
E
di
t
`
DESC
LIMIT
$real_firs
t_p,
$p_per_pag
e;"
);
|
81 |
|
$page_p_nu
m = mysql_
num_rows(
$result );
|
|
80 |
|
$page_p_nu
m = mysql_
num_rows(
$result );
|
82 |
|
|
|
81 |
|
|
83 |
|
$_page['he
ader'] = "
Members' P
rofiles";
|
|
82 |
|
$_page['he
ader'] = "
Members' P
rofiles";
|
84 |
|
$_page['he
ader_text'
] = "Membe
rs profile
s sorted b
y modifica
tion date"
;
|
|
83 |
|
$_page['he
ader_text'
] = "Membe
rs profile
s sorted b
y modifica
tion date"
;
|
85 |
|
$_page['js
'] = 1;
|
|
84 |
|
$_page['js
'] = 1;
|
86 |
|
|
|
85 |
|
|
87 |
|
TopCodeAdm
in();
|
|
86 |
|
TopCodeAdm
in();
|
88 |
|
ContentBlo
ckHead("Pr
ofiles");
|
|
87 |
|
ContentBlo
ckHead("Pr
ofiles");
|
89 |
|
?>
|
|
88 |
|
?>
|
90 |
|
<center>
|
|
89 |
|
<center>
|
91 |
|
<? echo Re
sNavigatio
nRet( 'Pro
filesUpper
', 0 ); ?>
|
|
90 |
|
<? echo Re
sNavigatio
nRet( 'Pro
filesUpper
', 0 ); ?>
|
92 |
|
</center>
|
|
91 |
|
</center>
|
93 |
|
<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">
|
|
92 |
|
<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">
|
94 |
|
<table ali
gn="center
" width=58
0 cellspac
ing=1 cell
padding=0
class=smal
l>
|
|
93 |
|
<table ali
gn="center
" width=58
0 cellspac
ing=1 cell
padding=0
class=smal
l>
|
95 |
|
<?
|
|
94 |
|
<?
|
96 |
|
|
|
95 |
|
|
97 |
|
if ( !$p_n
um )
|
|
96 |
|
if ( !$p_n
um )
|
98 |
|
echo "
<td class=
panel>No p
rofiles av
ailable</t
d>";
|
|
97 |
|
echo "
<td class=
panel>No p
rofiles av
ailable</t
d>";
|
99 |
|
else
|
|
98 |
|
else
|
100 |
|
{
|
|
99 |
|
{
|
101 |
|
?>
|
|
100 |
|
?>
|
102 |
|
<tr class=
panel>
|
|
101 |
|
<tr class=
panel>
|
103 |
|
<td align=
center>&nb
sp;ID 
;</td>
|
|
102 |
|
<td align=
center>&nb
sp;ID 
;</td>
|
104 |
|
<td align=
center>&nb
sp;Photo&n
bsp;</td>
|
|
103 |
|
<td align=
center>&nb
sp;Photo&n
bsp;</td>
|
105 |
|
<td align=
center>&nb
sp;Last Vi
sited 
;</td>
|
|
104 |
|
<td align=
center>&nb
sp;Last Vi
sited 
;</td>
|
106 |
|
<td align=
center>&nb
sp;NickNam
e </t
d>
|
|
105 |
|
<td align=
center>&nb
sp;NickNam
e </t
d>
|
107 |
|
<td align=
center>&nb
sp;Sex&nbs
p;</td>
|
|
106 |
|
<td align=
center>&nb
sp;Sex&nbs
p;</td>
|
108 |
|
<td align=
center col
span=2>&nb
sp;Contact
s </td
>
|
|
107 |
|
<td align=
center col
span=2>&nb
sp;Contact
s </td
>
|
109 |
|
</tr>
|
|
108 |
|
</tr>
|
110 |
|
<?
|
|
109 |
|
<?
|
111 |
|
while
( $p_arr =
mysql_fet
ch_array(
$result )
)
|
|
110 |
|
while
( $p_arr =
mysql_fet
ch_array(
$result )
)
|
112 |
|
{
|
|
111 |
|
{
|
113 |
|
$c
ol = "prof
_stat_$p_a
rr[Status]
";
|
|
112 |
|
$c
ol = "prof
_stat_$p_a
rr[Status]
";
|
114 |
|
|
|
113 |
|
|
115 |
|
if
( $col ==
"prof_sta
t_Active"
)
|
|
114 |
|
if
( $col ==
"prof_sta
t_Active"
)
|
116 |
|
$col = "
table";
|
|
115 |
|
$col = "
table";
|
117 |
|
?>
|
|
116 |
|
?>
|
118 |
|
<tr class=
<? echo $c
ol; ?>>
|
|
117 |
|
<tr class=
<? echo $c
ol; ?>>
|
119 |
|
<td height
="20">&nbs
p;<a href=
"../profil
e.php?ID=<
? echo $p_
arr[ID]; ?
>"><? echo
$id_addon
_arr[$p_ar
r[Affiliat
eID]] . $p
_arr[ID];
?></a>&nbs
p;</td>
|
|
118 |
|
<td height
="20">&nbs
p;<a href=
"../profil
e.php?ID=<
? echo $p_
arr[ID]; ?
>"><? echo
$id_addon
_arr[$p_ar
r[Affiliat
eID]] . $p
_arr[ID];
?></a>&nbs
p;</td>
|
120 |
|
<td height
="20" alig
n=center><
?
|
|
119 |
|
<td height
="20" alig
n=center><
?
|
121 |
|
if
( $p_arr[
Picture] )
|
|
120 |
|
if
( $p_arr[
Picture] )
|
122 |
|
echo "Ye
s";
|
|
121 |
|
echo "Ye
s";
|
123 |
|
?></td>
|
|
122 |
|
?></td>
|
124 |
|
<td
height="20
"
align=cent
er><?
echo
$p_arr[
LastLog
gedI
n];
?></td>
|
|
123 |
|
<td
height="20
"
align=cent
er><?
echo
$p_arr[
Date
LastLog
i
n];
?></td>
|
125 |
|
<td height
="20">&nbs
p;<? echo
$p_arr[Nic
kName]; ?>
</td
>
|
|
124 |
|
<td height
="20">&nbs
p;<? echo
$p_arr[Nic
kName]; ?>
</td
>
|
126 |
|
<td height
="20" alig
n=center><
? echo _t(
"_a_".$p_a
rr[Sex]);
?></td>
|
|
125 |
|
<td height
="20" alig
n=center><
? echo _t(
"_a_".$p_a
rr[Sex]);
?></td>
|
127 |
|
<td height
="20" alig
n=center><
? $c = Mem
berContact
ed( $p_arr
[ID] ); if
( $c ) ec
ho $c; els
e echo "-"
; ?></td>
|
|
126 |
|
<td height
="20" alig
n=center><
? $c = Mem
berContact
ed( $p_arr
[ID] ); if
( $c ) ec
ho $c; els
e echo "-"
; ?></td>
|
128 |
|
<td height
="20" alig
n=center><
? $wc = Me
mberWasCon
tacted( $p
_arr[ID] )
; if ( $wc
) echo $w
c; else ec
ho "-"; ?>
</td>
|
|
127 |
|
<td height
="20" alig
n=center><
? $wc = Me
mberWasCon
tacted( $p
_arr[ID] )
; if ( $wc
) echo $w
c; else ec
ho "-"; ?>
</td>
|
129 |
|
</tr>
|
|
128 |
|
</tr>
|
130 |
|
<?
|
|
129 |
|
<?
|
131 |
|
}
|
|
130 |
|
}
|
132 |
|
}
|
|
131 |
|
}
|
133 |
|
?>
|
|
132 |
|
?>
|
134 |
|
</table>
|
|
133 |
|
</table>
|
135 |
|
|
|
134 |
|
|
136 |
|
<center>
|
|
135 |
|
<center>
|
137 |
|
<? echo Re
sNavigatio
nRet( 'Pro
filesLower
', 0 ); ?>
|
|
136 |
|
<? echo Re
sNavigatio
nRet( 'Pro
filesLower
', 0 ); ?>
|
138 |
|
</center>
|
|
137 |
|
</center>
|
139 |
|
<?
|
|
138 |
|
<?
|
140 |
|
ContentBlo
ckFoot();
|
|
139 |
|
ContentBlo
ckFoot();
|
141 |
|
ContentBlo
ckHead("Le
gend");
|
|
140 |
|
ContentBlo
ckHead("Le
gend");
|
142 |
|
?>
|
|
141 |
|
?>
|
143 |
|
<cente
r>
|
|
142 |
|
<cente
r>
|
144 |
|
<table c
ellpadding
="1" cells
pacing="2"
border="0
" width="4
0%" align=
"center" c
lass="brd"
>
|
|
143 |
|
<table c
ellpadding
="1" cells
pacing="2"
border="0
" width="4
0%" align=
"center" c
lass="brd"
>
|
145 |
|
<tr><t
d colspan=
"2" class=
"panel" al
ign="right
">Status o
f profile<
/td></tr>
|
|
144 |
|
<tr><t
d colspan=
"2" class=
"panel" al
ign="right
">Status o
f profile<
/td></tr>
|
146 |
|
<tr>
|
|
145 |
|
<tr>
|
147 |
|
<td
class="pro
f_stat_Unc
onfirmed"
width="30"
style="bo
rder: 1px
solid silv
er;"> 
;</td>
|
|
146 |
|
<td
class="pro
f_stat_Unc
onfirmed"
width="30"
style="bo
rder: 1px
solid silv
er;"> 
;</td>
|
148 |
|
<td
class="brd
" align="r
ight">Unco
nfirmed</t
d>
|
|
147 |
|
<td
class="brd
" align="r
ight">Unco
nfirmed</t
d>
|
149 |
|
</tr>
|
|
148 |
|
</tr>
|
150 |
|
<tr>
|
|
149 |
|
<tr>
|
151 |
|
<td
class="pro
f_stat_App
roval" wid
th="30" st
yle="borde
r: 1px sol
id silver;
"> </
td>
|
|
150 |
|
<td
class="pro
f_stat_App
roval" wid
th="30" st
yle="borde
r: 1px sol
id silver;
"> </
td>
|
152 |
|
<td
class="brd
" align="r
ight">Appr
oval</td>
|
|
151 |
|
<td
class="brd
" align="r
ight">Appr
oval</td>
|
153 |
|
</tr>
|
|
152 |
|
</tr>
|
154 |
|
<tr>
|
|
153 |
|
<tr>
|
155 |
|
<td
bgcolor="#
ffffff" wi
dth="30" s
tyle="bord
er: 1px so
lid silver
;"> <
/td>
|
|
154 |
|
<td
bgcolor="#
ffffff" wi
dth="30" s
tyle="bord
er: 1px so
lid silver
;"> <
/td>
|
156 |
|
<td
class="brd
" align="r
ight">Acti
ve</td>
|
|
155 |
|
<td
class="brd
" align="r
ight">Acti
ve</td>
|
157 |
|
</tr>
|
|
156 |
|
</tr>
|
158 |
|
<tr>
|
|
157 |
|
<tr>
|
159 |
|
<td
class="pro
f_stat_Rej
ected" wid
th="30" st
yle="borde
r: 1px sol
id silver;
"> </
td>
|
|
158 |
|
<td
class="pro
f_stat_Rej
ected" wid
th="30" st
yle="borde
r: 1px sol
id silver;
"> </
td>
|
160 |
|
<td
class="brd
" align="r
ight">Reje
cted</td>
|
|
159 |
|
<td
class="brd
" align="r
ight">Reje
cted</td>
|
161 |
|
</tr>
|
|
160 |
|
</tr>
|
162 |
|
<tr>
|
|
161 |
|
<tr>
|
163 |
|
<td
class="pro
f_stat_Sus
pended" wi
dth="30" s
tyle="bord
er: 1px so
lid silver
;"> <
/td>
|
|
162 |
|
<td
class="pro
f_stat_Sus
pended" wi
dth="30" s
tyle="bord
er: 1px so
lid silver
;"> <
/td>
|
164 |
|
<td
class="brd
" align="r
ight">Susp
ended</td>
|
|
163 |
|
<td
class="brd
" align="r
ight">Susp
ended</td>
|
165 |
|
</tr>
|
|
164 |
|
</tr>
|
166 |
|
|
|
165 |
|
|
167 |
|
</table>
|
|
166 |
|
</table>
|
168 |
|
</cent
er>
|
|
167 |
|
</cent
er>
|
169 |
|
<?
|
|
168 |
|
<?
|
170 |
|
ContentBlo
ckFoot();
|
|
169 |
|
ContentBlo
ckFoot();
|
171 |
|
BottomCode
();
|
|
170 |
|
BottomCode
();
|
172 |
|
?>
|
|
171 |
|
?>
|