No regular expressions were active.
1 |
|
<?php
|
|
1 |
|
<?php
|
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/he
ader.inc.p
hp');
|
|
21 |
|
require_on
ce('inc/he
ader.inc.p
hp');
|
22 |
|
require_on
ce(BX_DIRE
CTORY_PATH
_INC . 'sh
aring.inc.
php');
|
|
22 |
|
require_on
ce(BX_DIRE
CTORY_PATH
_INC . 'sh
aring.inc.
php');
|
23 |
|
require_on
ce(BX_DIRE
CTORY_PATH
_CLASSES .
'BxDolSha
redMediaVi
ew.php');
|
|
23 |
|
require_on
ce(BX_DIRE
CTORY_PATH
_CLASSES .
'BxDolSha
redMediaVi
ew.php');
|
24 |
|
|
|
24 |
|
|
25 |
|
$iFile = 0
;
|
|
25 |
|
$iFile = 0
;
|
26 |
|
if (isset(
$_GET['fil
eUri']))
|
|
26 |
|
if (isset(
$_GET['fil
eUri']))
|
27 |
|
$iFile
= getFile
IdByUri($_
GET['fileU
ri'], 'mus
ic');
|
|
27 |
|
$iFile
= getFile
IdByUri($_
GET['fileU
ri'], 'mus
ic');
|
28 |
|
elseif (is
set($_GET[
'fileID'])
)
|
|
28 |
|
elseif (is
set($_GET[
'fileID'])
)
|
29 |
|
$iFile
= (int)$_
GET['fileI
D'];
|
|
29 |
|
$iFile
= (int)$_
GET['fileI
D'];
|
30 |
|
|
|
30 |
|
|
31 |
|
$member['I
D'] = (int
)$_COOKIE[
'memberID'
];
|
|
31 |
|
$member['I
D'] = (int
)$_COOKIE[
'memberID'
];
|
32 |
|
$member['P
assword']
= $_COOKIE
['memberPa
ssword'];
|
|
32 |
|
$member['P
assword']
= $_COOKIE
['memberPa
ssword'];
|
33 |
|
|
|
33 |
|
|
|
|
34 |
|
check_logg
ed();
|
|
|
35 |
|
|
34 |
|
$oNew = ne
w BxDolSha
redMediaVi
ew($iFile,
'music',
$site, $di
r, $member
);
|
|
36 |
|
$oNew = ne
w BxDolSha
redMediaVi
ew($iFile,
'music',
$site, $di
r, $member
);
|
35 |
|
|
|
37 |
|
|
36 |
|
$oVotingVi
ew = new B
xTemplVoti
ngView('gm
usic', 0,
0);
|
|
38 |
|
$oVotingVi
ew = new B
xTemplVoti
ngView('gm
usic', 0,
0);
|
37 |
|
$_page['ex
tra_js']
= $oVoting
View->getE
xtraJs();
|
|
39 |
|
$_page['ex
tra_js']
= $oVoting
View->getE
xtraJs();
|
38 |
|
|
|
40 |
|
|
39 |
|
$_page['na
me_index']
= 81;
|
|
41 |
|
$_page['na
me_index']
= 81;
|
40 |
|
$_ni = $_p
age['name_
index'];
|
|
42 |
|
$_ni = $_p
age['name_
index'];
|
41 |
|
$_page['cs
s_name'] =
$oNew->oS
hared->sCs
sName;
|
|
43 |
|
$_page['cs
s_name'] =
$oNew->oS
hared->sCs
sName;
|
42 |
|
$_page['ex
tra_css']
= $oNew->o
CmtsView->
getExtraCs
s();
|
|
44 |
|
$_page['ex
tra_css']
= $oNew->o
CmtsView->
getExtraCs
s();
|
43 |
|
$_page['ex
tra_js']
.= $oNew->
oCmtsView-
>getExtraJ
s();
|
|
45 |
|
$_page['ex
tra_js']
.= $oNew->
oCmtsView-
>getExtraJ
s();
|
44 |
|
|
|
46 |
|
|
45 |
|
check_logg
ed();
|
|
|
46 |
|
|
|
|
47 |
|
$_page['he
ader'] = _
t( "_view
Music" );
|
|
47 |
|
$_page['he
ader'] = _
t( "_view
Music" );
|
48 |
|
$_ni = $_p
age['name_
index'];
|
|
48 |
|
$_ni = $_p
age['name_
index'];
|
49 |
|
|
|
49 |
|
|
50 |
|
$check_res
= checkAc
tion( $mem
ber['ID'],
$oNew->oS
hared->sVi
ewActionNa
me);
|
|
50 |
|
$check_res
= checkAc
tion( $mem
ber['ID'],
$oNew->oS
hared->sVi
ewActionNa
me );
|
51 |
|
if
(
$check_res
[CHECK_ACT
ION_RESULT
]
!=
CHECK_ACTI
ON_RESULT_
ALLOWED
&&
!$logged['
admin']
&&
!$logged['
moderator'
]
&&
$aFile['me
dProfId']
!=
$member['I
D']
)
{
|
|
51 |
|
if
(
$check_res
[CHECK_ACT
ION_RESULT
]
!=
CHECK_ACTI
ON_RESULT_
ALLOWED
&&
!$logged['
admin']
&&
!$logged['
moderator'
]
)
{
|
52 |
|
$sCode
= "
|
|
52 |
|
$sCode
= "
|
53 |
|
<t
able width
=100% heig
ht=100% ce
llpadding=
0 cellspac
ing=0 clas
s=text2>
|
|
53 |
|
<t
able width
=100% heig
ht=100% ce
llpadding=
0 cellspac
ing=0 clas
s=text2>
|
54 |
|
<td alig
n=center b
gcolor=$bo
xbg2>
|
|
54 |
|
<td alig
n=center b
gcolor=$bo
xbg2>
|
55 |
|
". $
check_res[
CHECK_ACTI
ON_MESSAGE
] ."<br />
|
|
55 |
|
". $
check_res[
CHECK_ACTI
ON_MESSAGE
] ."<br />
|
56 |
|
</td>
|
|
56 |
|
</td>
|
57 |
|
</
table>\n";
|
|
57 |
|
</
table>\n";
|
58 |
|
|
|
58 |
|
|
59 |
|
$_page
['name_ind
ex'] = 0;
|
|
59 |
|
$_page
['name_ind
ex'] = 0;
|
60 |
|
$_page
_cont[0]['
page_main_
code'] = $
sCode;
|
|
60 |
|
$_page
_cont[0]['
page_main_
code'] = $
sCode;
|
61 |
|
PageCo
de();
|
|
61 |
|
PageCo
de();
|
62 |
|
exit()
;
|
|
62 |
|
exit()
;
|
63 |
|
}
|
|
63 |
|
}
|
64 |
|
|
|
64 |
|
|
65 |
|
if (!is_ar
ray($oNew-
>aInfo)) {
|
|
65 |
|
if (!is_ar
ray($oNew-
>aInfo)) {
|
66 |
|
$sCode
= MsgBox(
_t( '_No
file' ) );
|
|
66 |
|
$sCode
= MsgBox(
_t( '_No
file' ) );
|
67 |
|
$_page
['name_ind
ex'] = 0;
|
|
67 |
|
$_page
['name_ind
ex'] = 0;
|
68 |
|
$_page
_cont[0]['
page_main_
code'] = $
sCode;
|
|
68 |
|
$_page
_cont[0]['
page_main_
code'] = $
sCode;
|
69 |
|
PageCo
de();
|
|
69 |
|
PageCo
de();
|
70 |
|
exit()
;
|
|
70 |
|
exit()
;
|
71 |
|
}
|
|
71 |
|
}
|
72 |
|
else {
|
|
72 |
|
else {
|
73 |
|
$_page
['header']
= $oNew->
aInfo['med
Title'];
|
|
73 |
|
$_page
['header']
= $oNew->
aInfo['med
Title'];
|
74 |
|
db_res
("UPDATE `
{$oNew->oS
hared->sMa
inTable}`
SET `{$oNe
w->oShared
->aTableFi
elds['medV
iews']}` =
`{$oNew->
oShared->a
TableField
s['medView
s']}` + 1
WHERE `{$o
New->oShar
ed->aTable
Fields['me
dID']}`='$
iFile'");
|
|
74 |
|
db_res
("UPDATE `
{$oNew->oS
hared->sMa
inTable}`
SET `{$oNe
w->oShared
->aTableFi
elds['medV
iews']}` =
`{$oNew->
oShared->a
TableField
s['medView
s']}` + 1
WHERE `{$o
New->oShar
ed->aTable
Fields['me
dID']}`='$
iFile'");
|
75 |
|
$_page
_cont[$_ni
]['page_ma
in_code']
= $oNew->g
etCode();
|
|
75 |
|
$_page
_cont[$_ni
]['page_ma
in_code']
= $oNew->g
etCode();
|
76 |
|
PageCo
de();
|
|
76 |
|
PageCo
de();
|
|
|
77 |
|
|
|
|
78 |
|
checkA
ction( $me
mber['ID']
, $oNew->o
Shared->sV
iewActionN
ame, true
);
|
77 |
|
}
|
|
79 |
|
}
|
78 |
|
|
|
80 |
|
|
79 |
|
?>
|
|
81 |
|
?>
|