So ich habe nun mal alles nach album_user_access()
durchsucht und konnt nur in der album_function folgendes finden.
Code: Alles auswählen
function album_user_access($cat_id, $passed_auth = 0, $view_check, $upload_check, $rate_check, $comment_check, $edit_check, $delete_check)
{
global $db, $album_config, $userdata;
// --------------------------------
// Force to check moderator status
// --------------------------------
$moderator_check = 1;
// --------------------------------
// Here the array which this function would return. Now we initiate it!
// --------------------------------
$album_user_access = array(
'view' => 0,
'upload' => 0,
'rate' => 0,
'comment' => 0,
'edit' => 0,
'delete' => 0,
'moderator' => 0<
);
$album_user_access_keys = array_keys($album_user_access);
//
// END initiation $album_user_access
//
// --------------------------------
// Check $cat_id
// --------------------------------
//--- Album Category Hierarchy : begin
//--- version : 1.1.0
//--- removed
//if ($cat_id == PERSONAL_GALLERY)
//{
// $personal_gallery_access = personal_gallery_access(1,1);
// if ($personal_gallery_access['view'])
// {
// $album_user_access['view'] = 1;
// }
// if ($personal_gallery_access['upload'])
// {
// $album_user_access['upload'] = 1;
// $album_user_access['rate'] = 1;
// $album_user_access['comment'] = 1;
// $album_user_access['edit'] = 1;
// $album_user_access['delete'] = 1;
// if ($userdata['session_logged_in'])
// {
// if ($userdata['user_level'] == ADMIN)
// {
// $album_user_access['moderator'] = 1;
// }
// }
// }
// return $album_user_access;
//}
//else if ($cat_id < 0)
if ($cat_id <= ALBUM_ROOT_CATEGORY && !is_array($passed_auth))
//--- Album Category Hierarchy : end
{
message_die(GENERAL_ERROR, 'Bad cat_id arguments for function album_user_access()');
}
//
// END check $cat_id
//
Das einzige was ich nicht verstehne kann ist dieser part:
Code: Alles auswählen
$album_user_access = array(
'view' => 0,
'upload' => 0,
'rate' => 0,
'comment' => 0,
'edit' => 0,
'delete' => 0,
'moderator' => 0<
);
Denn im orginal steht überall ne 1.
gruß Jörg