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 . 'u
tils.inc.p
hp' );
|
|
23 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'u
tils.inc.p
hp' );
|
24 |
|
|
|
24 |
|
|
25 |
|
// -------
-------- p
age variab
les and lo
gin
|
|
25 |
|
// -------
-------- p
age variab
les and lo
gin
|
26 |
|
|
|
26 |
|
|
27 |
|
|
|
27 |
|
|
28 |
|
$_page['na
me_index']
= 79;
|
|
28 |
|
$_page['na
me_index']
= 79;
|
29 |
|
$_page['cs
s_name']
= 'qse
arch.css';
|
|
29 |
|
$_page['cs
s_name']
= 'qse
arch.css';
|
30 |
|
|
|
30 |
|
|
31 |
|
|
|
31 |
|
|
32 |
|
$logged['m
ember'] =
member_aut
h( 0, fals
e );
|
|
32 |
|
$logged['m
ember'] =
member_aut
h( 0, fals
e );
|
33 |
|
|
|
33 |
|
|
34 |
|
$memberID
= (int)$_C
OOKIE['mem
berID'];
|
|
34 |
|
$memberID
= (int)$_C
OOKIE['mem
berID'];
|
35 |
|
|
|
35 |
|
|
36 |
|
$_page['he
ader'] = $
site['titl
e'].". ".
_t( "_Quic
k Search M
embers" );
|
|
36 |
|
$_page['he
ader'] = $
site['titl
e'].". ".
_t( "_Quic
k Search M
embers" );
|
37 |
|
//$_page['
header_tex
t'] = _t(
"_Quick Se
arch Membe
rs" );
|
|
37 |
|
//$_page['
header_tex
t'] = _t(
"_Quick Se
arch Membe
rs" );
|
38 |
|
|
|
38 |
|
|
39 |
|
// -------
-------- p
age compon
ents
|
|
39 |
|
// -------
-------- p
age compon
ents
|
40 |
|
|
|
40 |
|
|
41 |
|
$_ni = $_p
age['name_
index'];
|
|
41 |
|
$_ni = $_p
age['name_
index'];
|
42 |
|
$_page_con
t[$_ni]['c
lose_windo
w'] = "<a
href=\"jav
ascript:wi
ndow.close
();\">"._t
('_close w
indow')."<
/a>";
|
|
42 |
|
$_page_con
t[$_ni]['c
lose_windo
w'] = "<a
href=\"jav
ascript:wi
ndow.close
();\">"._t
('_close w
indow')."<
/a>";
|
43 |
|
|
|
43 |
|
|
44 |
|
if( $_REQU
EST['do_su
bmit'] and
$_REQUEST
['keyword'
] )
|
|
44 |
|
if( $_REQU
EST['do_su
bmit'] and
$_REQUEST
['keyword'
] )
|
45 |
|
{
|
|
45 |
|
{
|
46 |
|
$_page
['header_t
ext']
= _t('_Qui
ck search
results');
|
|
46 |
|
$_page
['header_t
ext']
= _t('_Qui
ck search
results');
|
47 |
|
$_page
['extra_js
']
= <<<EOJ
|
|
47 |
|
$_page
['extra_js
']
= <<<EOJ
|
48 |
|
<script ty
pe="text/j
avascript"
>
|
|
48 |
|
<script ty
pe="text/j
avascript"
>
|
49 |
|
hMembe
rAction =
window.ope
ner.{$_REQ
UEST['hand
ler']}; //
Member Act
ion Handle
r
|
|
49 |
|
hMembe
rAction =
window.ope
ner.{$_REQ
UEST['hand
ler']}; //
Member Act
ion Handle
r
|
50 |
|
</script>
|
|
50 |
|
</script>
|
51 |
|
EOJ;
|
|
51 |
|
EOJ;
|
52 |
|
|
|
52 |
|
|
53 |
|
$_page
_cont[$_ni
]['page_ma
in_code']
= PageComp
SearchResu
lts();
|
|
53 |
|
$_page
_cont[$_ni
]['page_ma
in_code']
= PageComp
SearchResu
lts();
|
54 |
|
}
|
|
54 |
|
}
|
55 |
|
else
|
|
55 |
|
else
|
56 |
|
{
|
|
56 |
|
{
|
57 |
|
$_page
['header_t
ext']
= _t('_Ent
er search
parameters
');
|
|
57 |
|
$_page
['header_t
ext']
= _t('_Ent
er search
parameters
');
|
58 |
|
$_page
_cont[$_ni
]['page_ma
in_code']
= PageComp
SearchForm
();
|
|
58 |
|
$_page
_cont[$_ni
]['page_ma
in_code']
= PageComp
SearchForm
();
|
59 |
|
}
|
|
59 |
|
}
|
60 |
|
|
|
60 |
|
|
61 |
|
// -------
-------- [
END] page
components
|
|
61 |
|
// -------
-------- [
END] page
components
|
62 |
|
|
|
62 |
|
|
63 |
|
PageCode()
;
|
|
63 |
|
PageCode()
;
|
64 |
|
|
|
64 |
|
|
65 |
|
// -------
-------- p
age compon
ents funct
ions
|
|
65 |
|
// -------
-------- p
age compon
ents funct
ions
|
66 |
|
|
|
66 |
|
|
67 |
|
/**
|
|
67 |
|
/**
|
68 |
|
* page co
de functio
n
|
|
68 |
|
* page co
de functio
n
|
69 |
|
*/
|
|
69 |
|
*/
|
70 |
|
function P
ageCompSea
rchForm()
|
|
70 |
|
function P
ageCompSea
rchForm()
|
71 |
|
{
|
|
71 |
|
{
|
72 |
|
ob_sta
rt();
|
|
72 |
|
ob_sta
rt();
|
73 |
|
?>
|
|
73 |
|
?>
|
74 |
|
<f
orm action
="<?=$_SER
VER['PHP_S
ELF']?>" m
ethod="GET
">
|
|
74 |
|
<f
orm action
="<?=$_SER
VER['PHP_S
ELF']?>" m
ethod="GET
">
|
75 |
|
<input t
ype="hidde
n" name="h
andler" va
lue="<?=$_
REQUEST['h
andler']?>
" />
|
|
75 |
|
<input t
ype="hidde
n" name="h
andler" va
lue="<?=$_
REQUEST['h
andler']?>
" />
|
76 |
|
<div cla
ss="qsearc
h_form">
|
|
76 |
|
<div cla
ss="qsearc
h_form">
|
77 |
|
<div
class="qs
earch_labe
l"><?=_t('
_Enter mem
ber NickNa
me or ID')
?>:</div>
|
|
77 |
|
<div
class="qs
earch_labe
l"><?=_t('
_Enter mem
ber NickNa
me or ID')
?>:</div>
|
78 |
|
<inp
ut type="t
ext" name=
"keyword"
/>
|
|
78 |
|
<inp
ut type="t
ext" name=
"keyword"
/>
|
79 |
|
<inp
ut type="s
ubmit" nam
e="do_subm
it" value=
"<?=_t('_S
earch')?>"
/>
|
|
79 |
|
<inp
ut type="s
ubmit" nam
e="do_subm
it" value=
"<?=_t('_S
earch')?>"
/>
|
80 |
|
</div>
|
|
80 |
|
</div>
|
81 |
|
</
form>
|
|
81 |
|
</
form>
|
82 |
|
<?php
|
|
82 |
|
<?php
|
83 |
|
return
ob_get_cl
ean();
|
|
83 |
|
return
ob_get_cl
ean();
|
84 |
|
}
|
|
84 |
|
}
|
85 |
|
|
|
85 |
|
|
86 |
|
function P
ageCompSea
rchResults
()
|
|
86 |
|
function P
ageCompSea
rchResults
()
|
87 |
|
{
|
|
87 |
|
{
|
88 |
|
global
$dir;
|
|
|
89 |
|
global
$tmpl;
|
|
88 |
|
global
$tmpl;
|
90 |
|
|
|
89 |
|
|
91 |
|
$keywo
rd = proce
ss_db_inpu
t($_REQUES
T['keyword
']);
|
|
90 |
|
$keywo
rd = proce
ss_db_inpu
t($_REQUES
T['keyword
']);
|
92 |
|
|
|
91 |
|
|
93 |
|
$sMemb
ersQuery =
"
|
|
92 |
|
$sMemb
ersQuery =
"
|
94 |
|
SE
LECT *
|
|
93 |
|
SE
LECT *
|
95 |
|
FR
OM `Profil
es`
|
|
94 |
|
FR
OM `Profil
es`
|
96 |
|
WH
ERE
|
|
95 |
|
WH
ERE
|
97 |
|
"
.
|
|
96 |
|
"
.
|
98 |
|
(
is_numeric
( $keyword
) ?
|
|
97 |
|
(
is_numeric
( $keyword
) ?
|
99 |
|
"`ID` = '$
keyword'"
:
|
|
98 |
|
"`ID` = '$
keyword'"
:
|
100 |
|
"`NickName
` LIKE '%$
keyword%'"
) .
|
|
99 |
|
"`NickName
` LIKE '%$
keyword%'"
) .
|
101 |
|
""
;
|
|
100 |
|
""
;
|
102 |
|
|
|
101 |
|
|
103 |
|
$rMemb
ers = db_r
es( $sMemb
ersQuery )
;
|
|
102 |
|
$rMemb
ers = db_r
es( $sMemb
ersQuery )
;
|
104 |
|
|
|
103 |
|
|
105 |
|
if( !m
ysql_num_r
ows( $rMem
bers ) )
|
|
104 |
|
if( !m
ysql_num_r
ows( $rMem
bers ) )
|
106 |
|
re
turn '<div
class="qs
earch_notf
ound">'._t
('_Sorry,
no members
found').'
</div>';
|
|
105 |
|
re
turn '<div
class="qs
earch_notf
ound">'._t
('_Sorry,
no members
found').'
</div>';
|
107 |
|
|
|
106 |
|
|
108 |
|
$sRowTmpl
=
file_get_c
ontents(
"
{$dir['roo
t']}
templates/
tmpl_$tmpl
/qsearch_r
ow.html"
);
|
|
107 |
|
$sRowTmpl
=
file_get_c
ontents(
BX_DIRECTO
RY_PATH_RO
OT
.
"
templates/
tmpl_$tmpl
/qsearch_r
ow.html"
);
|
109 |
|
|
|
108 |
|
|
110 |
|
$ret =
'';
|
|
109 |
|
$ret =
'';
|
111 |
|
while(
$aMember
= mysql_fe
tch_assoc(
$rMembers
) )
|
|
110 |
|
while(
$aMember
= mysql_fe
tch_assoc(
$rMembers
) )
|
112 |
|
{
|
|
111 |
|
{
|
113 |
|
$a
RowTmpl =
array();
|
|
112 |
|
$a
RowTmpl =
array();
|
114 |
|
|
|
113 |
|
|
115 |
|
$a
RowTmpl['t
humbnail']
= get_mem
ber_thumbn
ail( $aMem
ber['ID'],
'none' );
|
|
114 |
|
$a
RowTmpl['t
humbnail']
= get_mem
ber_thumbn
ail( $aMem
ber['ID'],
'none' );
|
116 |
|
$a
RowTmpl['N
ickName']
= "<a hre
f=\"".getP
rofileLink
($aMember[
'ID'])."\"
target=\"
_blank\">"
.htmlspeci
alchars_ad
v( $aMembe
r['NickNam
e'] )."</a
>";
|
|
115 |
|
$a
RowTmpl['N
ickName']
= "<a hre
f=\"".getP
rofileLink
($aMember[
'ID'])."\"
target=\"
_blank\">"
.htmlspeci
alchars_ad
v( $aMembe
r['NickNam
e'] )."</a
>";
|
117 |
|
$a
RowTmpl['a
ctions']
= "<a hre
f=\"javasc
ript:void(
0);\" oncl
ick=\"hMem
berAction(
{$aMember[
'ID']}, '{
$aMember['
NickName']
}')\">"._t
('_Add mem
ber')."</a
>";
|
|
116 |
|
$a
RowTmpl['a
ctions']
= "<a hre
f=\"javasc
ript:void(
0);\" oncl
ick=\"hMem
berAction(
{$aMember[
'ID']}, '{
$aMember['
NickName']
}')\">"._t
('_Add mem
ber')."</a
>";
|
118 |
|
|
|
117 |
|
|
119 |
|
$s
Row = $sRo
wTmpl;
|
|
118 |
|
$s
Row = $sRo
wTmpl;
|
120 |
|
fo
reach( $aR
owTmpl as
$what => $
to )
|
|
119 |
|
fo
reach( $aR
owTmpl as
$what => $
to )
|
121 |
|
$sRow =
str_replac
e( "__{$wh
at}__", $t
o, $sRow )
;
|
|
120 |
|
$sRow =
str_replac
e( "__{$wh
at}__", $t
o, $sRow )
;
|
122 |
|
|
|
121 |
|
|
123 |
|
$r
et .= $sRo
w;
|
|
122 |
|
$r
et .= $sRo
w;
|
124 |
|
}
|
|
123 |
|
}
|
125 |
|
return
$ret;
|
|
124 |
|
return
$ret;
|
126 |
|
}
|
|
125 |
|
}
|
127 |
|
|
|
126 |
|
|
128 |
|
?>
|
|
127 |
|
?>
|