No regular expressions were active.
1 |
|
<?
|
|
1 |
|
<?
|
2 |
|
|
|
2 |
|
|
3 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_CLASSES
. 'BxDolPr
ofile.php'
);
|
|
3 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_CLASSES
. 'BxDolPr
ofile.php'
);
|
|
|
4 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_CLASSES
. 'BxDolPr
ofileField
s.php' );
|
4 |
|
|
|
5 |
|
|
5 |
|
class BxDo
lProfileVi
ew extends
BxDolProf
ile
|
|
6 |
|
class BxDo
lProfileVi
ew extends
BxDolProf
ile
|
6 |
|
{
|
|
7 |
|
{
|
7 |
|
var $o
TemplConfi
g;
|
|
8 |
|
var $o
TemplConfi
g;
|
8 |
|
|
|
|
9 |
|
var $s
ColumnsOrd
er;
|
|
9 |
|
var $s
ColumnsOrd
er;
|
|
|
10 |
|
var $o
PF; // pro
file field
s object
|
|
|
11 |
|
var $a
PFBlocks;
//profile
fields blo
cks
|
|
|
12 |
|
var $a
CoupleMutu
alItems;
|
10 |
|
|
|
13 |
|
|
11 |
|
functi
on BxDolPr
ofileView(
$ID )
|
|
14 |
|
functi
on BxDolPr
ofileView(
$ID )
|
12 |
|
{
|
|
15 |
|
{
|
13 |
|
gl
obal $site
;
|
|
16 |
|
gl
obal $site
;
|
14 |
|
gl
obal $logg
ed;
|
|
17 |
|
gl
obal $logg
ed;
|
15 |
|
|
|
18 |
|
|
16 |
|
Bx
DolProfile
::BxDolPro
file( $ID,
0 );
|
|
19 |
|
Bx
DolProfile
::BxDolPro
file( $ID,
0 );
|
17 |
|
|
|
20 |
|
|
18 |
|
//
$this -> I
D = $this
-> _iProfi
leID;
|
|
21 |
|
//
$this -> I
D = $this
-> _iProfi
leID;
|
19 |
|
|
|
22 |
|
|
20 |
|
$t
his -> oTe
mplConfig
= new BxTe
mplConfig(
$site );
|
|
23 |
|
$t
his -> oTe
mplConfig
= new BxTe
mplConfig(
$site );
|
21 |
|
$t
his -> sCo
lumnsOrder
= getPara
m( 'profil
e_view_col
s' );
|
|
24 |
|
$t
his -> sCo
lumnsOrder
= getPara
m( 'profil
e_view_col
s' );
|
22 |
|
|
|
25 |
|
|
23 |
|
if(
$this
->
_iProfileI
D
)
|
|
26 |
|
if(
$this
->
_iProfileI
D
)
{
|
24 |
|
{
|
|
|
25 |
|
$this ->
getProfil
eData();
|
|
27 |
|
$this ->
getProfil
eData();
|
26 |
|
|
|
28 |
|
|
27 |
|
if(
$this
->
_aProfile
)
|
|
29 |
|
if(
$this
->
_aProfile
)
{
|
28 |
|
{
|
|
30 |
|
if(
$logged['m
ember']
)
{
|
29 |
|
if(
$logged['m
ember']
)
|
|
|
30 |
|
{
|
|
|
31 |
|
if( (int)$
_COOKIE['m
emberID']
== $this -
> _iProfil
eID )
|
|
31 |
|
if( (int)$
_COOKIE['m
emberID']
== $this -
> _iProfil
eID )
|
32 |
|
$this
-> owner =
true;
|
|
32 |
|
$this
-> owner =
true;
|
33 |
|
}
|
|
33 |
|
|
34 |
|
}
|
|
34 |
|
$iPFArea =
6;
|
|
|
35 |
|
} el
seif( $log
ged['admin
'] )
|
|
|
36 |
|
$iPFArea =
5;
|
|
|
37 |
|
else
if( $logge
d['moderat
or'] )
|
|
|
38 |
|
$iPFArea =
7;
|
35 |
|
else
|
|
39 |
|
else
|
|
|
40 |
|
$iPFArea =
8;
|
|
|
41 |
|
|
|
|
42 |
|
$thi
s -> oPF =
new BxDol
ProfileFie
lds( $iPFA
rea );
|
|
|
43 |
|
if(
!$this ->
oPF -> aBl
ocks)
|
36 |
|
retu
rn false;
|
|
44 |
|
return fal
se;
|
37 |
|
}
|
|
45 |
|
|
38 |
|
else
|
|
46 |
|
$thi
s -> aPFBl
ocks = $th
is -> oPF
-> aBlocks
;
|
|
|
47 |
|
//ec
hoDbg( $th
is -> aPFB
locks );
|
|
|
48 |
|
|
|
|
49 |
|
if(
$this -> b
Couple )
|
|
|
50 |
|
$this -> a
CoupleMutu
alItems =
$this -> o
PF -> getC
oupleMutua
lFields();
|
|
|
51 |
|
|
|
|
52 |
|
} else
|
|
|
53 |
|
retu
rn false;
|
|
|
54 |
|
}
else
|
39 |
|
return f
alse;
|
|
55 |
|
return f
alse;
|
40 |
|
}
|
|
56 |
|
}
|
41 |
|
|
|
57 |
|
|
42 |
|
}
|
|
58 |
|
}
|
43 |
|
?>
|
|
59 |
|
?>
|