No regular expressions were active.
1 |
|
<?
|
|
1 |
|
<?
|
2 |
|
require_on
ce(BX_DIRE
CTORY_PATH
_INC . 'he
ader.inc.p
hp' );
|
|
2 |
|
require_on
ce(BX_DIRE
CTORY_PATH
_INC . 'he
ader.inc.p
hp' );
|
3 |
|
require_on
ce(BX_DIRE
CTORY_PATH
_INC . 'db
.inc.php')
;
|
|
3 |
|
require_on
ce(BX_DIRE
CTORY_PATH
_INC . 'db
.inc.php')
;
|
4 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_CLASSES
. "BxDolSh
aredMedia.
php" );
|
|
4 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_CLASSES
. "BxDolSh
aredMedia.
php" );
|
5 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_CLASSES
. "BxDolPa
geView.php
" );
|
|
5 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_CLASSES
. "BxDolPa
geView.php
" );
|
6 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_ROOT . "
templates/
tmpl_{$tmp
l}/scripts
/BxTemplCm
tsView.php
" );
|
|
6 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_ROOT . "
templates/
tmpl_{$tmp
l}/scripts
/BxTemplCm
tsView.php
" );
|
7 |
|
|
|
7 |
|
|
8 |
|
|
|
8 |
|
|
9 |
|
class BxDo
lSharedMed
iaView ext
ends BxDol
PageView
{
|
|
9 |
|
class BxDo
lSharedMed
iaView ext
ends BxDol
PageView
{
|
10 |
|
|
|
10 |
|
|
11 |
|
// fil
e ID
|
|
11 |
|
// fil
e ID
|
12 |
|
var $i
File;
|
|
12 |
|
var $i
File;
|
13 |
|
// fil
e type
|
|
13 |
|
// fil
e type
|
14 |
|
var $s
Type;
|
|
14 |
|
var $s
Type;
|
15 |
|
// fil
e info arr
ay
|
|
15 |
|
// fil
e info arr
ay
|
16 |
|
var $a
Info;
|
|
16 |
|
var $a
Info;
|
17 |
|
// obj
ect sharin
g manipula
tion
|
|
17 |
|
// obj
ect sharin
g manipula
tion
|
18 |
|
var $o
Shared;
|
|
18 |
|
var $o
Shared;
|
19 |
|
|
|
19 |
|
|
20 |
|
var $o
CmtsView;
|
|
20 |
|
var $o
CmtsView;
|
21 |
|
|
|
21 |
|
|
22 |
|
/*
|
|
22 |
|
/*
|
23 |
|
co
nstructor
|
|
23 |
|
co
nstructor
|
24 |
|
*/
|
|
24 |
|
*/
|
25 |
|
|
|
25 |
|
|
26 |
|
functi
on BxDolSh
aredMediaV
iew($iFile
, $sMediaT
ype, &$aSi
te, &$aDir
, &$aMembe
r) {
|
|
26 |
|
functi
on BxDolSh
aredMediaV
iew($iFile
, $sMediaT
ype, &$aSi
te, &$aDir
, &$aMembe
r) {
|
27 |
|
$t
his->iFile
= (int)$i
File;
|
|
27 |
|
$t
his->iFile
= (int)$i
File;
|
28 |
|
$t
his->sType
= process
_db_input(
$sMediaTyp
e);
|
|
28 |
|
$t
his->sType
= process
_db_input(
$sMediaTyp
e);
|
29 |
|
|
|
29 |
|
|
30 |
|
$this->oSh
ared
=
new
BxDolShare
dMedia($sM
ediaType,
&
$aSite,
&
$aDir,
&
$aMember);
|
|
30 |
|
$this->oSh
ared
=
new
BxDolShare
dMedia($sM
ediaType,
$aSite,
$aDir,
$aMember);
|
31 |
|
$t
his->aInfo
= $this
->oShared-
>getFileIn
fo($this->
iFile);
|
|
31 |
|
$t
his->aInfo
= $this
->oShared-
>getFileIn
fo($this->
iFile);
|
32 |
|
sw
itch ($sMe
diaType) {
|
|
32 |
|
sw
itch ($sMe
diaType) {
|
33 |
|
case 'ph
oto':
|
|
33 |
|
case 'ph
oto':
|
34 |
|
$sCo
mms = 'sha
redPhoto';
|
|
34 |
|
$sCo
mms = 'sha
redPhoto';
|
35 |
|
brea
k;
|
|
35 |
|
brea
k;
|
36 |
|
case 'mu
sic':
|
|
36 |
|
case 'mu
sic':
|
37 |
|
$sCo
mms = 'sha
redMusic';
|
|
37 |
|
$sCo
mms = 'sha
redMusic';
|
38 |
|
brea
k;
|
|
38 |
|
brea
k;
|
39 |
|
case 'vi
deo':
|
|
39 |
|
case 'vi
deo':
|
40 |
|
$sCo
mms = 'sha
redVideo';
|
|
40 |
|
$sCo
mms = 'sha
redVideo';
|
41 |
|
brea
k;
|
|
41 |
|
brea
k;
|
42 |
|
}
|
|
42 |
|
}
|
43 |
|
$t
his->oCmts
View = new
BxTemplCm
tsView ($s
Comms, (in
t)$this->i
File);
|
|
43 |
|
$t
his->oCmts
View = new
BxTemplCm
tsView ($s
Comms, (in
t)$this->i
File);
|
44 |
|
|
|
44 |
|
|
45 |
|
pa
rent::BxDo
lPageView(
$sMediaTyp
e);
|
|
45 |
|
pa
rent::BxDo
lPageView(
$sMediaTyp
e);
|
46 |
|
}
|
|
46 |
|
}
|
47 |
|
|
|
47 |
|
|
48 |
|
functi
on getBloc
kCode_Acti
onList() {
|
|
48 |
|
functi
on getBloc
kCode_Acti
onList() {
|
49 |
|
if
(is_array
($this->aI
nfo))
|
|
49 |
|
if
(is_array
($this->aI
nfo))
|
50 |
|
return $
this->oSha
red->showA
ctionList(
$this->aIn
fo);
|
|
50 |
|
return $
this->oSha
red->showA
ctionList(
$this->aIn
fo);
|
51 |
|
}
|
|
51 |
|
}
|
52 |
|
|
|
52 |
|
|
53 |
|
functi
on getBloc
kCode_File
Info() {
|
|
53 |
|
functi
on getBloc
kCode_File
Info() {
|
54 |
|
if
(is_array
($this->aI
nfo))
|
|
54 |
|
if
(is_array
($this->aI
nfo))
|
55 |
|
return $
this->oSha
red->showF
ileInfo($t
his->aInfo
);
|
|
55 |
|
return $
this->oSha
red->showF
ileInfo($t
his->aInfo
);
|
56 |
|
}
|
|
56 |
|
}
|
57 |
|
|
|
57 |
|
|
58 |
|
functi
on getBloc
kCode_Last
Files() {
|
|
58 |
|
functi
on getBloc
kCode_Last
Files() {
|
59 |
|
if
(is_array
($this->aI
nfo))
|
|
59 |
|
if
(is_array
($this->aI
nfo))
|
60 |
|
return $
this->oSha
red->showL
atestFiles
($this->aI
nfo);
|
|
60 |
|
return $
this->oSha
red->showL
atestFiles
($this->aI
nfo);
|
61 |
|
}
|
|
61 |
|
}
|
62 |
|
|
|
62 |
|
|
63 |
|
functi
on getBloc
kCode_Rate
() {
|
|
63 |
|
functi
on getBloc
kCode_Rate
() {
|
64 |
|
re
turn $this
->oShared-
>showRateS
ection($th
is->iFile)
;
|
|
64 |
|
re
turn $this
->oShared-
>showRateS
ection($th
is->iFile)
;
|
65 |
|
}
|
|
65 |
|
}
|
66 |
|
|
|
66 |
|
|
67 |
|
functi
on getBloc
kCode_View
File() {
|
|
67 |
|
functi
on getBloc
kCode_View
File() {
|
68 |
|
re
turn $this
->oShared-
>showFile(
$this->iFi
le);
|
|
68 |
|
re
turn $this
->oShared-
>showFile(
$this->iFi
le);
|
69 |
|
}
|
|
69 |
|
}
|
70 |
|
|
|
70 |
|
|
71 |
|
functi
on getBloc
kCode_View
Comments()
{
|
|
71 |
|
functi
on getBloc
kCode_View
Comments()
{
|
72 |
|
if
(!$this->
oCmtsView-
>isEnabled
()) return
'';
|
|
72 |
|
if
(!$this->
oCmtsView-
>isEnabled
()) return
'';
|
73 |
|
re
turn $this
->oCmtsVie
w->getComm
entsFirst
();
|
|
73 |
|
re
turn $this
->oCmtsVie
w->getComm
entsFirst
();
|
74 |
|
}
|
|
74 |
|
}
|
75 |
|
}
|
|
75 |
|
}
|
76 |
|
?>
|
|
76 |
|
?>
|