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_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 . 'a
dmin.inc.p
hp' );
|
|
23 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'a
dmin.inc.p
hp' );
|
24 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'i
mages.inc.
php' );
|
|
24 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'i
mages.inc.
php' );
|
25 |
|
|
|
25 |
|
|
26 |
|
$_page['na
me_index']
= 82;
|
|
26 |
|
$_page['na
me_index']
= 82;
|
27 |
|
$_page['cs
s_name']
= 'vie
wMusic.css
';
|
|
27 |
|
$_page['cs
s_name']
= 'vie
wMusic.css
';
|
28 |
|
|
|
28 |
|
|
29 |
|
$_page['ex
tra_js'] =
'';
|
|
29 |
|
$_page['ex
tra_js'] =
'';
|
30 |
|
|
|
30 |
|
|
31 |
|
if ( !( $l
ogged['adm
in'] = mem
ber_auth(
1, false )
) )
|
|
31 |
|
if ( !( $l
ogged['adm
in'] = mem
ber_auth(
1, false )
) )
|
32 |
|
{
|
|
32 |
|
{
|
33 |
|
if ( !
( $logged[
'member']
= member_a
uth( 0, fa
lse ) ) )
|
|
33 |
|
if ( !
( $logged[
'member']
= member_a
uth( 0, fa
lse ) ) )
|
34 |
|
{
|
|
34 |
|
{
|
35 |
|
if
( !( $log
ged['aff']
= member_
auth( 2, f
alse ) ) )
|
|
35 |
|
if
( !( $log
ged['aff']
= member_
auth( 2, f
alse ) ) )
|
36 |
|
{
|
|
36 |
|
{
|
37 |
|
$logged[
'moderator
'] = membe
r_auth( 3,
false );
|
|
37 |
|
$logged[
'moderator
'] = membe
r_auth( 3,
false );
|
38 |
|
}
|
|
38 |
|
}
|
39 |
|
}
|
|
39 |
|
}
|
40 |
|
}
|
|
40 |
|
}
|
41 |
|
|
|
41 |
|
|
42 |
|
|
|
42 |
|
|
43 |
|
$_page['he
ader'] = _
t( "_uploa
d Music" )
;
|
|
43 |
|
$_page['he
ader'] = _
t( "_uploa
d Music" )
;
|
44 |
|
$_page['he
ader_text'
] = _t("_u
pload Musi
c");
|
|
44 |
|
$_page['he
ader_text'
] = _t("_u
pload Musi
c");
|
45 |
|
|
|
45 |
|
|
46 |
|
$_ni = $_p
age['name_
index'];
|
|
46 |
|
$_ni = $_p
age['name_
index'];
|
47 |
|
|
|
47 |
|
|
48 |
|
$member['I
D'] = (int
)$_COOKIE[
'memberID'
];
|
|
48 |
|
$member['I
D'] = (int
)$_COOKIE[
'memberID'
];
|
49 |
|
$member['P
assword']
= $_COOKIE
['memberPa
ssword'];
|
|
49 |
|
$member['P
assword']
= $_COOKIE
['memberPa
ssword'];
|
50 |
|
|
|
50 |
|
|
51 |
|
$check_res
= checkAc
tion( $mem
ber['ID'],
ACTION_ID
_UPLOAD_GA
LLERY_MUSI
C );
|
|
51 |
|
$check_res
= checkAc
tion( $mem
ber['ID'],
ACTION_ID
_UPLOAD_GA
LLERY_MUSI
C );
|
52 |
|
if ( $chec
k_res[CHEC
K_ACTION_R
ESULT] !=
CHECK_ACTI
ON_RESULT_
ALLOWED &&
!$logged[
'admin'] &
& !$logged
['moderato
r'] )
|
|
52 |
|
if ( $chec
k_res[CHEC
K_ACTION_R
ESULT] !=
CHECK_ACTI
ON_RESULT_
ALLOWED &&
!$logged[
'admin'] &
& !$logged
['moderato
r'] )
|
53 |
|
{
|
|
53 |
|
{
|
54 |
|
$ret
= "
|
|
54 |
|
$ret
= "
|
55 |
|
<t
able width
=100% heig
ht=100% ce
llpadding=
0 cellspac
ing=0 clas
s=text2>
|
|
55 |
|
<t
able width
=100% heig
ht=100% ce
llpadding=
0 cellspac
ing=0 clas
s=text2>
|
56 |
|
<td alig
n=center b
gcolor=$bo
xbg2>
|
|
56 |
|
<td alig
n=center b
gcolor=$bo
xbg2>
|
57 |
|
". $
check_res[
CHECK_ACTI
ON_MESSAGE
] ."<br />
|
|
57 |
|
". $
check_res[
CHECK_ACTI
ON_MESSAGE
] ."<br />
|
58 |
|
</td>
|
|
58 |
|
</td>
|
59 |
|
</
table>\n";
|
|
59 |
|
</
table>\n";
|
60 |
|
|
|
60 |
|
|
61 |
|
$_page
['name_ind
ex'] = 0;
|
|
61 |
|
$_page
['name_ind
ex'] = 0;
|
62 |
|
$_page
_cont[0]['
page_main_
code'] = $
ret;
|
|
62 |
|
$_page
_cont[0]['
page_main_
code'] = $
ret;
|
63 |
|
PageCo
de();
|
|
63 |
|
PageCo
de();
|
64 |
|
exit()
;
|
|
64 |
|
exit()
;
|
65 |
|
}
|
|
65 |
|
}
|
66 |
|
|
|
66 |
|
|
67 |
|
$_page_con
t[$_ni]['p
age_main_c
ode'] = Pa
geMainCode
();
|
|
67 |
|
$_page_con
t[$_ni]['p
age_main_c
ode'] = Pa
geMainCode
();
|
68 |
|
|
|
68 |
|
|
69 |
|
PageCode()
;
|
|
69 |
|
PageCode()
;
|
70 |
|
|
|
70 |
|
|
71 |
|
function P
ageMainCod
e()
|
|
71 |
|
function P
ageMainCod
e()
|
72 |
|
{
|
|
72 |
|
{
|
73 |
|
global
$site;
|
|
73 |
|
global
$site;
|
74 |
|
global
$member;
|
|
74 |
|
global
$member;
|
75 |
|
|
|
75 |
|
|
76 |
|
$sCode
= '<div i
d="agreeme
nt" style=
"text-alig
n: center;
"><div sty
le="font-w
eight: bol
d;">'._t("
_Media upl
oad Agreem
ent",_t("_
Music")).'
</div><div
><textarea
rows="20"
cols="80"
readonly=
"true">'._
t("_Licens
e Agreemen
t",$site['
url']).'</
textarea><
/div><div>
<input typ
e="submit"
id="agree
" value="'
._t("_I ag
ree").'" o
nclick="do
cument.get
ElementByI
d(\'upload
Form\').st
yle.displa
y = \'bloc
k\';
|
|
76 |
|
$sCode
= '<div i
d="agreeme
nt" style=
"text-alig
n: center;
"><div sty
le="font-w
eight: bol
d;">'._t("
_Media upl
oad Agreem
ent",_t("_
Music")).'
</div><div
><textarea
rows="20"
cols="80"
readonly=
"true">'._
t("_Licens
e Agreemen
t",$site['
url']).'</
textarea><
/div><div>
<input typ
e="submit"
id="agree
" value="'
._t("_I ag
ree").'" o
nclick="do
cument.get
ElementByI
d(\'upload
Form\').st
yle.displa
y = \'bloc
k\';
|
77 |
|
docume
nt.getElem
entById(\'
agreement\
').style.d
isplay = \
'none\';""
></div></d
iv>';
|
|
77 |
|
docume
nt.getElem
entById(\'
agreement\
').style.d
isplay = \
'none\';""
></div></d
iv>';
|
78 |
|
$sCode
.=
'<div
id="upload
Form"
style="tex
t-align:
center;
display:
none;">'.g
etApplicat
ionContent
('music','
editor',ar
ray('id'
=>
$member['I
D'],'passw
ord'=>$mem
ber['Passw
ord'])
).'</div>'
;
|
|
78 |
|
$sCode
.=
'<div
id="upload
Form"
style="tex
t-align:
center;
display:
none;">'.g
etApplicat
ionContent
('music','
editor',ar
ray('id'
=>
$member['I
D'],'passw
ord'=>$mem
ber['Passw
ord'])
,
true
).'</div>'
;
|
79 |
|
|
|
79 |
|
|
80 |
|
return
$sCode;
|
|
80 |
|
return
$sCode;
|
81 |
|
}
|
|
81 |
|
}
|
82 |
|
|
|
82 |
|
|
83 |
|
?>
|
|
83 |
|
?>
|