page anschaun können und UPLOAD SONG .. only MODS
dann muss man sich erst anmelden aufm board
(obwohl es im acp auf ALLE gestellt wurde)
und dann wenn ma auf nen musik titel klickt kommt.bei mir eine fehler meldung... (NICHT BERECHTIGT)
_________
wenn ich die standart einstellungen lasse funkts
aber dann können normale benuter musik hochladen
und das will ich nicht ..
[ externes Bild ]
(die installation ist auf jedenfall richtig)
___________________________
FIX:
Code: Alles auswählen
##############################################################
## MOD Title: Music Online Permission Fix
## MOD Author: AgaguK < agaguk_@hotmail.com >
## MOD Description: Fixes a bug in the permission check when trying to listen to a song in the Music Online Hack.
## MOD Version: 1
##
## Installation Level: Easy
## Installation Time: 1 Minutes
## Files To Edit: 1
## music_page.php
##
## Included Files: n/a
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
music_page.php
#
#-----[ FIND ]------------------------------------------
#
// ------------------------------------
// Check the permissions
// ------------------------------------
$music_user_access = music_user_access($cat_id, $thiscat, 0, 1, 0, 0, 0, 0); // UPLOAD
if ($music_user_access['upload'] == 0)
{
if (!$userdata['session_logged_in'])
{
redirect(append_sid("login.$phpEx?redirect=music_page.$phpEx?song_id=$song_id"));
}
else
{
message_die(GENERAL_ERROR, $lang['Not_Authorised']);
}
}
#
#-----[ REPLACE WITH ]------------------------------------------
#
// ------------------------------------
// Check the permissions
// ------------------------------------
// BEGIN Listen Permission Bug Fix
/*
$music_user_access = music_user_access($cat_id, $thiscat, 0, 1, 0, 0, 0, 0); // UPLOAD
if ($music_user_access['upload'] == 0)
{
if (!$userdata['session_logged_in'])
{
redirect(append_sid("login.$phpEx?redirect=music_page.$phpEx?song_id=$song_id"));
}
else
{
message_die(GENERAL_ERROR, $lang['Not_Authorised']);
}
}
*/
// Replaced above comment with the following
$auth_data = music_user_access($cat_id, $thiscat, 1, 0, 0, 1, 1, 1);
if ($auth_data['view'] == 0)
{
if (!$userdata['session_logged_in'])
{
redirect(append_sid("login.$phpEx?redirect=music_page.$phpEx?song_id=$song_id"));
exit;
}
else
{
message_die(GENERAL_ERROR, $lang['Not_Authorised']);
}
}
// END Listen Permission Bug Fix
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM