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( '../in
c/header.i
nc.php' );
|
|
21 |
|
require_on
ce( '../in
c/header.i
nc.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 . 'a
dmin_desig
n.inc.php'
);
|
|
23 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'a
dmin_desig
n.inc.php'
);
|
24 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'u
tils.inc.p
hp' );
|
|
24 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 'u
tils.inc.p
hp' );
|
25 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 's
haring.inc
.php' );
|
|
25 |
|
require_on
ce( BX_DIR
ECTORY_PAT
H_INC . 's
haring.inc
.php' );
|
26 |
|
|
|
26 |
|
|
27 |
|
$logged[
admin
]
=
member_aut
h(
1
);
|
|
27 |
|
$logged[
'
admin
'
]
=
member_aut
h(
1
,
true,
true
);
|
28 |
|
$ADMIN = $
logged[adm
in];
|
|
28 |
|
$ADMIN = $
logged[adm
in];
|
29 |
|
|
|
29 |
|
|
30 |
|
$_page['cs
s_name']
= 'pos
t_moderati
on.css';
|
|
30 |
|
$_page['cs
s_name']
= 'pos
t_moderati
on.css';
|
31 |
|
|
|
31 |
|
|
32 |
|
$_page['he
ader'] = "
Profile Mu
sic Postmo
deration";
|
|
32 |
|
$_page['he
ader'] = "
Profile Mu
sic Postmo
deration";
|
33 |
|
$_page['he
ader_text'
] = "";
|
|
33 |
|
$_page['he
ader_text'
] = "";
|
34 |
|
|
|
34 |
|
|
35 |
|
if (isset(
$_GET['iUs
er']))
|
|
35 |
|
if (isset(
$_GET['iUs
er']))
|
36 |
|
{
|
|
36 |
|
{
|
37 |
|
$iUser
= (int)$_
GET['iUser
'];
|
|
37 |
|
$iUser
= (int)$_
GET['iUser
'];
|
38 |
|
}
|
|
38 |
|
}
|
39 |
|
|
|
39 |
|
|
40 |
|
if (isset(
$_POST['ch
eck']) &&
is_array($
_POST['che
ck']))
|
|
40 |
|
if (isset(
$_POST['ch
eck']) &&
is_array($
_POST['che
ck']))
|
41 |
|
{
|
|
41 |
|
{
|
42 |
|
foreac
h($_POST['
check'] as
$iKey =>
$iVal)
|
|
42 |
|
foreac
h($_POST['
check'] as
$iKey =>
$iVal)
|
43 |
|
{
|
|
43 |
|
{
|
44 |
|
sw
itch (true
)
|
|
44 |
|
sw
itch (true
)
|
45 |
|
{
|
|
45 |
|
{
|
46 |
|
case iss
et($_POST[
'Delete'])
:
|
|
46 |
|
case iss
et($_POST[
'Delete'])
:
|
47 |
|
dele
teAudio((i
nt)$iVal);
|
|
47 |
|
dele
teAudio((i
nt)$iVal);
|
48 |
|
brea
k;
|
|
48 |
|
brea
k;
|
49 |
|
case iss
et($_POST[
'Approve']
):
|
|
49 |
|
case iss
et($_POST[
'Approve']
):
|
50 |
|
appr
oveAudio((
int)$iVal)
;
|
|
50 |
|
appr
oveAudio((
int)$iVal)
;
|
51 |
|
brea
k;
|
|
51 |
|
brea
k;
|
52 |
|
}
|
|
52 |
|
}
|
53 |
|
}
|
|
53 |
|
}
|
54 |
|
}
|
|
54 |
|
}
|
55 |
|
|
|
55 |
|
|
56 |
|
$sqlQuery
= "SELECT
|
|
56 |
|
$sqlQuery
= "SELECT
|
57 |
|
`Ray
Mp3Files`.
`ID` as `m
edID`,
|
|
57 |
|
`Ray
Mp3Files`.
`ID` as `m
edID`,
|
58 |
|
`Ray
Mp3Files`.
`Title` as
`medTitle
`,
|
|
58 |
|
`Ray
Mp3Files`.
`Title` as
`medTitle
`,
|
59 |
|
`Ray
Mp3Files`.
`Descripti
on` as `me
dDesc`,
|
|
59 |
|
`Ray
Mp3Files`.
`Descripti
on` as `me
dDesc`,
|
60 |
|
`Ray
Mp3Files`.
`Owner` as
`medProfI
d`,
|
|
60 |
|
`Ray
Mp3Files`.
`Owner` as
`medProfI
d`,
|
61 |
|
`Ray
Mp3Files`.
`Date` as
`medDate`,
|
|
61 |
|
`Ray
Mp3Files`.
`Date` as
`medDate`,
|
62 |
|
`Ray
Mp3Files`.
`Approved`
,
|
|
62 |
|
`Ray
Mp3Files`.
`Approved`
,
|
63 |
|
`Pro
files`.`Ni
ckName`
|
|
63 |
|
`Pro
files`.`Ni
ckName`
|
64 |
|
FROM
`RayMp3Fi
les`
|
|
64 |
|
FROM
`RayMp3Fi
les`
|
65 |
|
LEFT
JOIN `Pro
files` ON
`Profiles`
.`ID`=`Ray
Mp3Files`.
`Owner`
|
|
65 |
|
LEFT
JOIN `Pro
files` ON
`Profiles`
.`ID`=`Ray
Mp3Files`.
`Owner`
|
66 |
|
";
|
|
66 |
|
";
|
67 |
|
$sqlWhere
= $iUser =
= 0 ? "WHE
RE `Owner`
<>'0'" : "
WHERE `Own
er`='$iUse
r'";
|
|
67 |
|
$sqlWhere
= $iUser =
= 0 ? "WHE
RE `Owner`
<>'0'" : "
WHERE `Own
er`='$iUse
r'";
|
68 |
|
|
|
68 |
|
|
69 |
|
$iTotalNum
= db_valu
e( "SELECT
COUNT( *
) FROM `Ra
yMp3Files`
LEFT JOIN
`Profiles
` ON `Prof
iles`.`ID`
=`RayMp3Fi
les`.`Owne
r` $sqlWhe
re" );
|
|
69 |
|
$iTotalNum
= db_valu
e( "SELECT
COUNT( *
) FROM `Ra
yMp3Files`
LEFT JOIN
`Profiles
` ON `Prof
iles`.`ID`
=`RayMp3Fi
les`.`Owne
r` $sqlWhe
re" );
|
70 |
|
$iPerPage
= 10;
|
|
70 |
|
$iPerPage
= 10;
|
71 |
|
$iTotalPag
es = ceil(
$iTotalNu
m / $iPerP
age );
|
|
71 |
|
$iTotalPag
es = ceil(
$iTotalNu
m / $iPerP
age );
|
72 |
|
$iCurPage
= (int)$_G
ET['page']
;
|
|
72 |
|
$iCurPage
= (int)$_G
ET['page']
;
|
73 |
|
|
|
73 |
|
|
74 |
|
if( $iCurP
age > $iTo
talPages )
|
|
74 |
|
if( $iCurP
age > $iTo
talPages )
|
75 |
|
$iCurP
age = $iTo
talPages;
|
|
75 |
|
$iCurP
age = $iTo
talPages;
|
76 |
|
|
|
76 |
|
|
77 |
|
if( $iCurP
age < 1 )
|
|
77 |
|
if( $iCurP
age < 1 )
|
78 |
|
$iCurP
age = 1;
|
|
78 |
|
$iCurP
age = 1;
|
79 |
|
|
|
79 |
|
|
80 |
|
$sLimitFro
m = ( $iCu
rPage - 1
) * $iPerP
age;
|
|
80 |
|
$sLimitFro
m = ( $iCu
rPage - 1
) * $iPerP
age;
|
81 |
|
$sqlLimit
= "LIMIT $
sLimitFrom
, $iPerPag
e";
|
|
81 |
|
$sqlLimit
= "LIMIT $
sLimitFrom
, $iPerPag
e";
|
82 |
|
|
|
82 |
|
|
83 |
|
$res = db_
res( $sqlQ
uery.$sqlW
here.$sqlL
imit );
|
|
83 |
|
$res = db_
res( $sqlQ
uery.$sqlW
here.$sqlL
imit );
|
84 |
|
$aFiles =
fill_assoc
_array( $r
es );
|
|
84 |
|
$aFiles =
fill_assoc
_array( $r
es );
|
85 |
|
|
|
85 |
|
|
86 |
|
TopCodeAdm
in();
|
|
86 |
|
TopCodeAdm
in();
|
87 |
|
ContentBlo
ckHead("")
;
|
|
87 |
|
ContentBlo
ckHead("")
;
|
88 |
|
echo g
etPostModM
ediaPage($
iUser);
|
|
88 |
|
echo g
etPostModM
ediaPage($
iUser);
|
89 |
|
ContentBlo
ckFoot();
|
|
89 |
|
ContentBlo
ckFoot();
|
90 |
|
BottomCode
();
|
|
90 |
|
BottomCode
();
|
91 |
|
|
|
91 |
|
|
92 |
|
|
|
92 |
|
|
93 |
|
function g
etPostModM
ediaPage(
$iUser = 0
)
|
|
93 |
|
function g
etPostModM
ediaPage(
$iUser = 0
)
|
94 |
|
{
|
|
94 |
|
{
|
95 |
|
global
$dir, $si
te, $max_t
humb_width
, $max_thu
mb_height,
$max_phot
o_width, $
max_photo_
height;
|
|
95 |
|
global
$dir, $si
te, $max_t
humb_width
, $max_thu
mb_height,
$max_phot
o_width, $
max_photo_
height;
|
96 |
|
global
$aFiles;
|
|
96 |
|
global
$aFiles;
|
97 |
|
global
$iTotalPa
ges, $iCur
Page;
|
|
97 |
|
global
$iTotalPa
ges, $iCur
Page;
|
98 |
|
|
|
98 |
|
|
99 |
|
$ret =
'';
|
|
99 |
|
$ret =
'';
|
100 |
|
|
|
100 |
|
|
101 |
|
$ret .
= "<script
>
|
|
101 |
|
$ret .
= "<script
>
|
102 |
|
functi
on checkAl
l( _pref,
do_check )
|
|
102 |
|
functi
on checkAl
l( _pref,
do_check )
|
103 |
|
{
|
|
103 |
|
{
|
104 |
|
aE
lems = doc
ument.getE
lementsByT
agName( 'i
nput' );
|
|
104 |
|
aE
lems = doc
ument.getE
lementsByT
agName( 'i
nput' );
|
105 |
|
|
|
105 |
|
|
106 |
|
fo
r( i = 0;
i < aElems
.length; i
++ )
|
|
106 |
|
fo
r( i = 0;
i < aElems
.length; i
++ )
|
107 |
|
{
|
|
107 |
|
{
|
108 |
|
elt = aE
lems[i];
|
|
108 |
|
elt = aE
lems[i];
|
109 |
|
if( elt.
name.subst
r( 0, _pre
f.length )
== _pref
)
|
|
109 |
|
if( elt.
name.subst
r( 0, _pre
f.length )
== _pref
)
|
110 |
|
elt.
checked =
do_check;
|
|
110 |
|
elt.
checked =
do_check;
|
111 |
|
}
|
|
111 |
|
}
|
112 |
|
}
|
|
112 |
|
}
|
113 |
|
</scri
pt>"
|
|
113 |
|
</scri
pt>"
|
114 |
|
;
|
|
114 |
|
;
|
115 |
|
$ret .
= '<div><f
orm method
="post" ac
tion="'.$_
HTTP['REFE
RER'].'">'
;
|
|
115 |
|
$ret .
= '<div><f
orm method
="post" ac
tion="'.$_
HTTP['REFE
RER'].'">'
;
|
116 |
|
|
|
116 |
|
|
117 |
|
$iCoun
ter = 1;
|
|
117 |
|
$iCoun
ter = 1;
|
118 |
|
foreac
h( $aFiles
as $aMedi
a )
|
|
118 |
|
foreac
h( $aFiles
as $aMedi
a )
|
119 |
|
{
|
|
119 |
|
{
|
120 |
|
$s
Pic = '<im
g src="'.$
site['admi
n'] . 'ima
ges/music.
png">';
|
|
120 |
|
$s
Pic = '<im
g src="'.$
site['admi
n'] . 'ima
ges/music.
png">';
|
121 |
|
$s
MediaLink
= "<a href
=\"javascr
ipt:openRa
yWidget('m
p3','playe
r','".$aMe
dia['medID
']."','1',
'1','true'
)\">".$aMe
dia['medTi
tle']."</a
>";
|
|
121 |
|
$s
MediaLink
= "<a href
=\"javascr
ipt:openRa
yWidget('m
p3','playe
r','".$aMe
dia['medID
']."','1',
'1','true'
)\">".$aMe
dia['medTi
tle']."</a
>";
|
122 |
|
$sProf
=
'<a
href="'.$s
ite['url']
.'p
rofile_
edit.php?I
D='.$aMedi
a['medProf
Id'].'">'.
$aMedia['N
ickName'].
'</a>';
|
|
122 |
|
$sProf
=
'<a
href="'.$s
ite['url']
.'p
edit.php?I
D='.$aMedi
a['medProf
Id'].'">'.
$aMedia['N
ickName'].
'</a>';
|
123 |
|
|
|
123 |
|
|
124 |
|
$s
Style = $a
Media['App
roved'] ==
'true' ?
' style="b
order: 2px
solid #00
CC00;"' :
' style="b
order: 2px
solid #CC
0000;"' ;
|
|
124 |
|
$s
Style = $a
Media['App
roved'] ==
'true' ?
' style="b
order: 2px
solid #00
CC00;"' :
' style="b
order: 2px
solid #CC
0000;"' ;
|
125 |
|
$r
et .= '<di
v class="m
ainBlock"'
.$sStyle.'
>';
|
|
125 |
|
$r
et .= '<di
v class="m
ainBlock"'
.$sStyle.'
>';
|
126 |
|
$ret .=
'<div clas
s="checkBo
x">
|
|
126 |
|
$ret .=
'<div clas
s="checkBo
x">
|
127 |
|
<input
type="che
ckbox" nam
e="check[]
" id="ch'.
$aMedia['m
edID'].'"
value="'.$
aMedia['me
dID'].'">
|
|
127 |
|
<input
type="che
ckbox" nam
e="check[]
" id="ch'.
$aMedia['m
edID'].'"
value="'.$
aMedia['me
dID'].'">
|
128 |
|
</div>';
|
|
128 |
|
</div>';
|
129 |
|
$ret .=
'<div clas
s="picture
">';
|
|
129 |
|
$ret .=
'<div clas
s="picture
">';
|
130 |
|
$ret
.= $sPic;
|
|
130 |
|
$ret
.= $sPic;
|
131 |
|
$ret .=
'</div>';
|
|
131 |
|
$ret .=
'</div>';
|
132 |
|
$ret .=
'<div clas
s="fileInf
o">';
|
|
132 |
|
$ret .=
'<div clas
s="fileInf
o">';
|
133 |
|
$ret
.= '<div>
';
|
|
133 |
|
$ret
.= '<div>
';
|
134 |
|
$ret .= $s
MediaLink;
|
|
134 |
|
$ret .= $s
MediaLink;
|
135 |
|
$ret
.= '</div
>';
|
|
135 |
|
$ret
.= '</div
>';
|
136 |
|
$ret
.= '<div>
by '.$sPro
f.'</div>'
;
|
|
136 |
|
$ret
.= '<div>
by '.$sPro
f.'</div>'
;
|
137 |
|
$ret
.= '<div>
Added: '.d
efineTimeI
nterval($a
Media['med
Date']).'<
/div>';
|
|
137 |
|
$ret
.= '<div>
Added: '.d
efineTimeI
nterval($a
Media['med
Date']).'<
/div>';
|
138 |
|
$ret .=
'</div>';
|
|
138 |
|
$ret .=
'</div>';
|
139 |
|
$r
et .= '</d
iv>';
|
|
139 |
|
$r
et .= '</d
iv>';
|
140 |
|
if
( ( $iCoun
ter % 2 )
== 0 )
|
|
140 |
|
if
( ( $iCoun
ter % 2 )
== 0 )
|
141 |
|
$ret .=
'<div clas
s="clear_b
oth"></div
>';
|
|
141 |
|
$ret .=
'<div clas
s="clear_b
oth"></div
>';
|
142 |
|
$i
Counter++;
|
|
142 |
|
$i
Counter++;
|
143 |
|
}
|
|
143 |
|
}
|
144 |
|
if( !e
mpty( $aFi
les ) )
|
|
144 |
|
if( !e
mpty( $aFi
les ) )
|
145 |
|
{
|
|
145 |
|
{
|
146 |
|
$s
Check = c
ount($aFil
es) > 1 ?
'<input ty
pe="checkb
ox" name=\
"ch_all" o
nclick="ch
eckAll( \'
ch\', this
.checked )
" />Check
all' : '';
|
|
146 |
|
$s
Check = c
ount($aFil
es) > 1 ?
'<input ty
pe="checkb
ox" name=\
"ch_all" o
nclick="ch
eckAll( \'
ch\', this
.checked )
" />Check
all' : '';
|
147 |
|
$r
et .= '<di
v style="c
lear:both;
font-weig
ht:bold; t
ext-align:
center;">'
.$sCheck.'
<input typ
e="submit"
name="App
rove" valu
e="Change
status">
|
|
147 |
|
$r
et .= '<di
v style="c
lear:both;
font-weig
ht:bold; t
ext-align:
center;">'
.$sCheck.'
<input typ
e="submit"
name="App
rove" valu
e="Change
status">
|
148 |
|
<i
nput type=
"submit" n
ame="Delet
e" value="
Delete"></
div>';
|
|
148 |
|
<i
nput type=
"submit" n
ame="Delet
e" value="
Delete"></
div>';
|
|
|
149 |
|
} else
{
|
|
|
150 |
|
$r
et .= MsgB
ox( 'Sorry
, nothing
found' );
|
149 |
|
}
|
|
151 |
|
}
|
150 |
|
|
|
152 |
|
|
151 |
|
if( $i
TotalPages
> 1)
|
|
153 |
|
if( $i
TotalPages
> 1)
|
152 |
|
{
|
|
154 |
|
{
|
153 |
|
$s
Request =
$_SERVER['
PHP_SELF']
. '?page=
{page}';
|
|
155 |
|
$s
Request =
$_SERVER['
PHP_SELF']
. '?page=
{page}';
|
154 |
|
$p
agination
= '<div st
yle="text-
align:cent
er; margin
: 10px 0px
10px 0px;
">' . genP
agination(
$iTotalPa
ges, $iCur
Page, $sRe
quest ) .
'</div>';
|
|
156 |
|
$p
agination
= '<div st
yle="text-
align:cent
er; margin
: 10px 0px
10px 0px;
">' . genP
agination(
$iTotalPa
ges, $iCur
Page, $sRe
quest ) .
'</div>';
|
155 |
|
}
|
|
157 |
|
}
|
156 |
|
else
|
|
158 |
|
else
|
157 |
|
$p
agination
= '';
|
|
159 |
|
$p
agination
= '';
|
158 |
|
|
|
160 |
|
|
159 |
|
return
$ret.$pag
ination.'<
/form></di
v>';
|
|
161 |
|
return
$ret.$pag
ination.'<
/form></di
v>';
|
160 |
|
}
|
|
162 |
|
}
|
161 |
|
|
|
163 |
|
|
162 |
|
|
|
164 |
|
|
163 |
|
function d
eleteAudio
( $iMedia
)
|
|
165 |
|
function d
eleteAudio
( $iMedia
)
|
164 |
|
{
|
|
166 |
|
{
|
165 |
|
global
$dir;
|
|
167 |
|
global
$dir;
|
166 |
|
|
|
168 |
|
|
167 |
|
$sFile
Name = $di
r['root']
. 'ray/mod
ules/mp3/f
iles/'.$iM
edia . '.m
p3';
|
|
169 |
|
$sFile
Name = $di
r['root']
. 'ray/mod
ules/mp3/f
iles/'.$iM
edia . '.m
p3';
|
168 |
|
|
|
170 |
|
|
169 |
|
$sqlQu
ery = "
|
|
171 |
|
$sqlQu
ery = "
|
170 |
|
DELETE
FROM `Ray
Mp3Files`
WHERE `ID`
= '$iMedi
a';
|
|
172 |
|
DELETE
FROM `Ray
Mp3Files`
WHERE `ID`
= '$iMedi
a';
|
171 |
|
";
|
|
173 |
|
";
|
172 |
|
|
|
174 |
|
|
173 |
|
$res =
db_res( $
sqlQuery )
;
|
|
175 |
|
$res =
db_res( $
sqlQuery )
;
|
174 |
|
|
|
176 |
|
|
175 |
|
@unlin
k( $sFileN
ame );
|
|
177 |
|
@unlin
k( $sFileN
ame );
|
176 |
|
|
|
178 |
|
|
177 |
|
return
$res;
|
|
179 |
|
return
$res;
|
178 |
|
}
|
|
180 |
|
}
|
179 |
|
|
|
181 |
|
|
180 |
|
function a
pproveAudi
o( $iMedia
)
|
|
182 |
|
function a
pproveAudi
o( $iMedia
)
|
181 |
|
{
|
|
183 |
|
{
|
182 |
|
$sqlQu
ery = "UPD
ATE `RayMp
3Files` SE
T `Approve
d` = IF(`A
pproved`='
true','fal
se','true'
) WHERE `I
D`='$iMedi
a'";
|
|
184 |
|
$sqlQu
ery = "UPD
ATE `RayMp
3Files` SE
T `Approve
d` = IF(`A
pproved`='
true','fal
se','true'
) WHERE `I
D`='$iMedi
a'";
|
183 |
|
$res =
db_res($s
qlQuery);
|
|
185 |
|
$res =
db_res($s
qlQuery);
|
184 |
|
|
|
186 |
|
|
185 |
|
return
$res;
|
|
187 |
|
return
$res;
|
186 |
|
}
|
|
188 |
|
}
|
187 |
|
|
|
189 |
|
|
188 |
|
?>
|
|
190 |
|
?>
|