Zeile 317 | Zeile 317 |
---|
if(!$errors) { $fid = $mybb->get_input('fid', MyBB::INPUT_INT);
|
if(!$errors) { $fid = $mybb->get_input('fid', MyBB::INPUT_INT);
|
$forum = get_forum($fid);
| $forum = get_forum($fid, 1);
|
if($mod_data['isgroup']) { $mod = $groupscache[$mod_data['id']];
| if($mod_data['isgroup']) { $mod = $groupscache[$mod_data['id']];
|
Zeile 498 | Zeile 498 |
---|
$pid = $mybb->get_input('pid', MyBB::INPUT_INT); $fid = $mybb->get_input('fid', MyBB::INPUT_INT); $gid = $mybb->get_input('gid', MyBB::INPUT_INT);
|
$pid = $mybb->get_input('pid', MyBB::INPUT_INT); $fid = $mybb->get_input('fid', MyBB::INPUT_INT); $gid = $mybb->get_input('gid', MyBB::INPUT_INT);
|
$forum = get_forum($fid);
| $forum = get_forum($fid, 1);
|
if((!$fid || !$gid) && $pid) {
| if((!$fid || !$gid) && $pid) {
|
Zeile 506 | Zeile 506 |
---|
$result = $db->fetch_array($query); $fid = $result['fid']; $gid = $result['gid'];
|
$result = $db->fetch_array($query); $fid = $result['fid']; $gid = $result['gid'];
|
$forum = get_forum($fid);
| $forum = get_forum($fid, 1);
|
}
$update_array = $field_list = array(); $fields_array = $db->show_fields_from("forumpermissions");
|
}
$update_array = $field_list = array(); $fields_array = $db->show_fields_from("forumpermissions");
|
if(is_array($mybb->input['permissions']))
| if(isset($mybb->input['permissions']))
|
{ // User has set permissions for this group... foreach($fields_array as $field)
| { // User has set permissions for this group... foreach($fields_array as $field)
|
Zeile 1965 | Zeile 1965 |
---|
$cache->update_moderators();
|
$cache->update_moderators();
|
$forum = get_forum($fid);
| $forum = get_forum($fid, 1);
|
// Log admin action if($isgroup)
| // Log admin action if($isgroup)
|
Zeile 2009 | Zeile 2009 |
---|
if($mybb->request_method == "post") { $fid = $mybb->get_input('fid', MyBB::INPUT_INT);
|
if($mybb->request_method == "post") { $fid = $mybb->get_input('fid', MyBB::INPUT_INT);
|
$forum_info = get_forum($fid);
| $forum = get_forum($fid, 1);
|
$delquery = ""; switch($db->type)
| $delquery = ""; switch($db->type)
|
Zeile 2108 | Zeile 2108 |
---|
$fid = $mybb->get_input('fid', MyBB::INPUT_INT); if($fid) {
|
$fid = $mybb->get_input('fid', MyBB::INPUT_INT); if($fid) {
|
$forum = get_forum($fid);
| $forum = get_forum($fid, 1);
|
}
$plugins->run_hooks("admin_forum_management_start");
| }
$plugins->run_hooks("admin_forum_management_start");
|
Zeile 2193 | Zeile 2193 |
---|
} elseif($mybb->get_input('add') == "moderators") {
|
} elseif($mybb->get_input('add') == "moderators") {
|
$forum = get_forum($fid);
| $forum = get_forum($fid, 1);
|
if(!$forum) { flash_message($lang->error_invalid_forum, 'error');
| if(!$forum) { flash_message($lang->error_invalid_forum, 'error');
|
Zeile 2499 | Zeile 2499 |
---|
$perms = $existing_permissions[$usergroup['gid']]; $default_checked = false; }
|
$perms = $existing_permissions[$usergroup['gid']]; $default_checked = false; }
|
elseif(is_array($cached_forum_perms) && isset($cached_forum_perms[$forum['fid']][$usergroup['gid']]) && $cached_forum_perms[$forum['fid']][$usergroup['gid']])
| elseif(isset($forum['fid']) && is_array($cached_forum_perms) && isset($cached_forum_perms[$forum['fid']][$usergroup['gid']]) && $cached_forum_perms[$forum['fid']][$usergroup['gid']])
|
{ $perms = $cached_forum_perms[$forum['fid']][$usergroup['gid']]; $default_checked = true; }
|
{ $perms = $cached_forum_perms[$forum['fid']][$usergroup['gid']]; $default_checked = true; }
|
else if(is_array($cached_forum_perms) && isset($cached_forum_perms[$forum['pid']][$usergroup['gid']]) && $cached_forum_perms[$forum['pid']][$usergroup['gid']])
| else if(isset($forum['pid']) && is_array($cached_forum_perms) && isset($cached_forum_perms[$forum['pid']][$usergroup['gid']]) && $cached_forum_perms[$forum['pid']][$usergroup['gid']])
|
{ $perms = $cached_forum_perms[$forum['pid']][$usergroup['gid']]; $default_checked = true;
| { $perms = $cached_forum_perms[$forum['pid']][$usergroup['gid']]; $default_checked = true;
|