Zeile 590 | Zeile 590 |
---|
<script src=\"jscripts/tabs.js\" type=\"text/javascript\"></script>\n <script type=\"text/javascript\"> <!--
|
<script src=\"jscripts/tabs.js\" type=\"text/javascript\"></script>\n <script type=\"text/javascript\"> <!--
|
$(document).ready(function() {
| $(function() {
|
$(\"#modal_form\").on(\"click\", \"#savePermissions\", function(e) { e.preventDefault();
| $(\"#modal_form\").on(\"click\", \"#savePermissions\", function(e) { e.preventDefault();
|
Zeile 719 | Zeile 719 |
---|
'candeleteposts' => 'editing', 'candeletethreads' => 'editing', 'caneditattachments' => 'editing',
|
'candeleteposts' => 'editing', 'candeletethreads' => 'editing', 'caneditattachments' => 'editing',
|
| 'canviewdeletionnotice' => 'editing',
|
'modposts' => 'moderate', 'modthreads' => 'moderate',
| 'modposts' => 'moderate', 'modthreads' => 'moderate',
|
Zeile 1325 | Zeile 1326 |
---|
} else {
|
} else {
|
$query = $db->simple_select("forums", "*", "pid='{$mybb->input['fid']}'"); while($child = $db->fetch_array($query))
| $query = $db->simple_select('forums', 'parentlist', "fid='{$pid}'"); $parents = explode(',', $db->fetch_field($query, 'parentlist')); if(in_array($mybb->input['fid'], $parents))
|
{
|
{
|
if($child['fid'] == $pid) { $errors[] = $lang->error_forum_parent_child; break; }
| $errors[] = $lang->error_forum_parent_child;
|
} }
| } }
|
Zeile 1417 | Zeile 1415 |
---|
while($child = $db->fetch_array($query)) { $db->update_query("forums", array("parentlist" => make_parent_list($child['fid'])), "fid='{$child['fid']}'");
|
while($child = $db->fetch_array($query)) { $db->update_query("forums", array("parentlist" => make_parent_list($child['fid'])), "fid='{$child['fid']}'");
|
} }
| } }
|
$inherit = $mybb->input['default_permissions'];
| $inherit = $mybb->input['default_permissions'];
|
Zeile 1481 | Zeile 1479 |
---|
flash_message($lang->success_forum_updated, 'success'); admin_redirect("index.php?module=forum-management&fid={$fid}"); }
|
flash_message($lang->success_forum_updated, 'success'); admin_redirect("index.php?module=forum-management&fid={$fid}"); }
|
}
| }
|
$page->extra_header .= "<script src=\"jscripts/quick_perm_editor.js\" type=\"text/javascript\"></script>\n";
$page->add_breadcrumb_item($lang->edit_forum);
| $page->extra_header .= "<script src=\"jscripts/quick_perm_editor.js\" type=\"text/javascript\"></script>\n";
$page->add_breadcrumb_item($lang->edit_forum);
|
Zeile 1501 | Zeile 1499 |
---|
else { $forum_data['title'] = $forum_data['name'];
|
else { $forum_data['title'] = $forum_data['name'];
|
}
| }
|
$query = $db->simple_select("usergroups", "*", "", array("order_dir" => "name"));
|
$query = $db->simple_select("usergroups", "*", "", array("order_dir" => "name"));
|
while($usergroup = $db->fetch_array($query)) { $usergroups[$usergroup['gid']] = $usergroup; }
| while($usergroup = $db->fetch_array($query)) { $usergroups[$usergroup['gid']] = $usergroup; }
|
$query = $db->simple_select("forumpermissions", "*", "fid='{$fid}'"); while($existing = $db->fetch_array($query))
| $query = $db->simple_select("forumpermissions", "*", "fid='{$fid}'"); while($existing = $db->fetch_array($query))
|
Zeile 1552 | Zeile 1550 |
---|
$access_options = array( $form->generate_check_box('active', 1, $lang->forum_is_active."<br />\n<small>{$lang->forum_is_active_desc}</small>", array('checked' => $forum_data['active'], 'id' => 'active')), $form->generate_check_box('open', 1, $lang->forum_is_open."<br />\n<small>{$lang->forum_is_open_desc}</small>", array('checked' => $forum_data['open'], 'id' => 'open'))
|
$access_options = array( $form->generate_check_box('active', 1, $lang->forum_is_active."<br />\n<small>{$lang->forum_is_active_desc}</small>", array('checked' => $forum_data['active'], 'id' => 'active')), $form->generate_check_box('open', 1, $lang->forum_is_open."<br />\n<small>{$lang->forum_is_open_desc}</small>", array('checked' => $forum_data['open'], 'id' => 'open'))
|
);
| );
|
$form_container->output_row($lang->access_options, "", "<div class=\"forum_settings_bit\">".implode("</div><div class=\"forum_settings_bit\">", $access_options)."</div>");
| $form_container->output_row($lang->access_options, "", "<div class=\"forum_settings_bit\">".implode("</div><div class=\"forum_settings_bit\">", $access_options)."</div>");
|
Zeile 1681 | Zeile 1679 |
---|
foreach($input_permissions as $input_permission) { $mybb->input['permissions'][$usergroup['gid']][$input_permission] = 1;
|
foreach($input_permissions as $input_permission) { $mybb->input['permissions'][$usergroup['gid']][$input_permission] = 1;
|
} } } }
| } } } }
|
foreach($usergroups as $usergroup) {
| foreach($usergroups as $usergroup) {
|
Zeile 1953 | Zeile 1951 |
---|
$fid = $mybb->get_input('fid', MyBB::INPUT_INT); $forum_info = get_forum($fid);
|
$fid = $mybb->get_input('fid', MyBB::INPUT_INT); $forum_info = get_forum($fid);
|
$query = $db->simple_select("forums", "posts,unapprovedposts,threads,unapprovedthreads", "fid='{$fid}'"); $stats = $db->fetch_array($query);
// Delete the forum $db->delete_query("forums", "fid='$fid'");
| $delquery = "";
|
switch($db->type) { case "pgsql": case "sqlite": $query = $db->simple_select("forums", "*", "','|| parentlist|| ',' LIKE '%,$fid,%'");
|
switch($db->type) { case "pgsql": case "sqlite": $query = $db->simple_select("forums", "*", "','|| parentlist|| ',' LIKE '%,$fid,%'");
|
break; default:
| break; default:
|
$query = $db->simple_select("forums", "*", "CONCAT(',', parentlist, ',') LIKE '%,$fid,%'");
|
$query = $db->simple_select("forums", "*", "CONCAT(',', parentlist, ',') LIKE '%,$fid,%'");
|
}
| }
|
while($forum = $db->fetch_array($query))
|
while($forum = $db->fetch_array($query))
|
{
| {
|
$fids[$forum['fid']] = $fid; $delquery .= " OR fid='{$forum['fid']}'";
|
$fids[$forum['fid']] = $fid; $delquery .= " OR fid='{$forum['fid']}'";
|
$stats['posts'] += $forum['posts']; $stats['unapprovedposts'] += $forum['unapprovedposts']; $stats['threads'] += $forum['threads']; $stats['unapprovedthreads'] += $forum['unapprovedthreads'];
| |
}
|
}
|
| require_once MYBB_ROOT.'inc/class_moderation.php'; $moderation = new Moderation();
// Start pagination. Limit results to 50 $query = $db->simple_select("threads", "tid", "fid='{$fid}' {$delquery}", array("limit" => 50));
while($tid = $db->fetch_field($query, 'tid')) { $moderation->delete_thread($tid); }
// Check whether all threads have been deleted $query = $db->simple_select("threads", "tid", "fid='{$fid}' {$delquery}");
if($db->num_rows($query) > 0) { $page->output_header();
$form = new Form("index.php?module=forum-management", 'post');
echo $form->generate_hidden_field("fid", $fid); echo $form->generate_hidden_field("action", "delete"); output_auto_redirect($form, $lang->confirm_proceed_deletion);
$form->end();
$page->output_footer(); exit; }
// End pagination
// Delete the forum $db->delete_query("forums", "fid='$fid'");
// Delete subforums
|
switch($db->type) { case "pgsql":
| switch($db->type) { case "pgsql":
|
Zeile 1988 | Zeile 2012 |
---|
default: $db->delete_query("forums", "CONCAT(',',parentlist,',') LIKE '%,$fid,%'"); }
|
default: $db->delete_query("forums", "CONCAT(',',parentlist,',') LIKE '%,$fid,%'"); }
|
$db->delete_query("threads", "fid='{$fid}' {$delquery}"); $db->delete_query("posts", "fid='{$fid}' {$delquery}"); $db->delete_query("moderators", "fid='{$fid}' {$delquery}"); $db->delete_query("forumsubscriptions", "fid='{$fid}' {$delquery}"); $db->delete_query("forumpermissions", "fid='{$fid}' {$delquery}");
$update_stats = array( 'numthreads' => "-".$stats['threads'], 'numunapprovedthreads' => "-".$stats['unapprovedthreads'], 'numposts' => "-".$stats['posts'], 'numunapprovedposts' => "-".$stats['unapprovedposts'] ); update_stats($update_stats);
| $db->delete_query('moderators', "fid='{$fid}' {$delquery}"); $db->delete_query('forumsubscriptions', "fid='{$fid}' {$delquery}"); $db->delete_query('forumpermissions', "fid='{$fid}' {$delquery}"); $db->delete_query('announcements', "fid='{$fid}' {$delquery}"); $db->delete_query('forumsread', "fid='{$fid}' {$delquery}");
|
$plugins->run_hooks("admin_forum_management_delete_commit");
$cache->update_forums(); $cache->update_moderators(); $cache->update_forumpermissions();
|
$plugins->run_hooks("admin_forum_management_delete_commit");
$cache->update_forums(); $cache->update_moderators(); $cache->update_forumpermissions();
|
| $cache->update_forumsdisplay();
|
// Log admin action log_admin_action($forum_info['fid'], $forum_info['name']);
| // Log admin action log_admin_action($forum_info['fid'], $forum_info['name']);
|
Zeile 2045 | Zeile 2062 |
---|
{ // Make sure we're only skipping inputs that don't start with "fields_" and aren't fields_default_ or fields_inherit_ if(strpos($id, 'fields_') === false || (strpos($id, 'fields_default_') !== false || strpos($id, 'fields_inherit_') !== false))
|
{ // Make sure we're only skipping inputs that don't start with "fields_" and aren't fields_default_ or fields_inherit_ if(strpos($id, 'fields_') === false || (strpos($id, 'fields_default_') !== false || strpos($id, 'fields_inherit_') !== false))
|
{
| {
|
continue; }
|
continue; }
|
|
|
list(, $gid) = explode('fields_', $id);
if($mybb->input['fields_default_'.$gid] == $permission && $mybb->input['fields_inherit_'.$gid] == 1) { $inherit[$gid] = 1; continue;
|
list(, $gid) = explode('fields_', $id);
if($mybb->input['fields_default_'.$gid] == $permission && $mybb->input['fields_inherit_'.$gid] == 1) { $inherit[$gid] = 1; continue;
|
}
| }
|
$inherit[$gid] = 0;
// If it isn't an array then it came from the javascript form if(!is_array($permission))
|
$inherit[$gid] = 0;
// If it isn't an array then it came from the javascript form if(!is_array($permission))
|
{
| {
|
$permission = explode(',', $permission); $permission = array_flip($permission); foreach($permission as $name => $value)
| $permission = explode(',', $permission); $permission = array_flip($permission); foreach($permission as $name => $value)
|
Zeile 2075 | Zeile 2092 |
---|
$permissions[$name][$gid] = 1; } else
|
$permissions[$name][$gid] = 1; } else
|
{
| {
|
$permissions[$name][$gid] = 0; } }
| $permissions[$name][$gid] = 0; } }
|
Zeile 2138 | Zeile 2155 |
---|
}
$isgroup = 0;
|
}
$isgroup = 0;
|
}
| }
|
if($newmod['id']) {
| if($newmod['id']) {
|
Zeile 2222 | Zeile 2239 |
---|
flash_message($lang->success_forum_disporder_updated, 'success'); admin_redirect("index.php?module=forum-management&fid=".$mybb->input['fid']);
|
flash_message($lang->success_forum_disporder_updated, 'success'); admin_redirect("index.php?module=forum-management&fid=".$mybb->input['fid']);
|
} } }
$page->extra_header .= "<script src=\"jscripts/quick_perm_editor.js\" type=\"text/javascript\"></script>\n";
if($fid) { $page->add_breadcrumb_item($lang->view_forum, "index.php?module=forum-management"); }
| } } }
$page->extra_header .= "<script src=\"jscripts/quick_perm_editor.js\" type=\"text/javascript\"></script>\n";
if($fid) { $page->add_breadcrumb_item($lang->view_forum, "index.php?module=forum-management"); }
|
$page->output_header($lang->forum_management);
if($fid)
| $page->output_header($lang->forum_management);
if($fid)
|
Zeile 2272 | Zeile 2289 |
---|
$form_container->output_row_header($lang->order, array("class" => "align_center", 'width' => '5%')); $form_container->output_row_header($lang->controls, array("class" => "align_center", 'style' => 'width: 200px'));
|
$form_container->output_row_header($lang->order, array("class" => "align_center", 'width' => '5%')); $form_container->output_row_header($lang->controls, array("class" => "align_center", 'style' => 'width: 200px'));
|
build_admincp_forums_list($form_container, $fid);
| build_admincp_forums_list($form_container, $form, $fid);
|
$submit_options = array();
| $submit_options = array();
|
Zeile 2344 | Zeile 2361 |
---|
{ $perms = array(); if(isset($mybb->input['default_permissions']))
|
{ $perms = array(); if(isset($mybb->input['default_permissions']))
|
{
| {
|
if($mybb->input['default_permissions'][$usergroup['gid']])
|
if($mybb->input['default_permissions'][$usergroup['gid']])
|
{
| {
|
if(is_array($existing_permissions) && $existing_permissions[$usergroup['gid']])
|
if(is_array($existing_permissions) && $existing_permissions[$usergroup['gid']])
|
{
| {
|
$perms = $existing_permissions[$usergroup['gid']]; $default_checked = false; } elseif(is_array($cached_forum_perms) && $cached_forum_perms[$forum['fid']][$usergroup['gid']]) { $perms = $cached_forum_perms[$forum['fid']][$usergroup['gid']];
|
$perms = $existing_permissions[$usergroup['gid']]; $default_checked = false; } elseif(is_array($cached_forum_perms) && $cached_forum_perms[$forum['fid']][$usergroup['gid']]) { $perms = $cached_forum_perms[$forum['fid']][$usergroup['gid']];
|
$default_checked = true; }
| $default_checked = true; }
|
else if(is_array($cached_forum_perms) && $cached_forum_perms[$forum['pid']][$usergroup['gid']]) { $perms = $cached_forum_perms[$forum['pid']][$usergroup['gid']]; $default_checked = true;
|
else if(is_array($cached_forum_perms) && $cached_forum_perms[$forum['pid']][$usergroup['gid']]) { $perms = $cached_forum_perms[$forum['pid']][$usergroup['gid']]; $default_checked = true;
|
} }
if(!$perms) { $perms = $usergroup;
| } }
if(!$perms) { $perms = $usergroup;
|
$default_checked = true; } }
| $default_checked = true; } }
|
Zeile 2410 | Zeile 2427 |
---|
else { if($perms[$forum_permission] == 1)
|
else { if($perms[$forum_permission] == 1)
|
{
| {
|
$perms_checked[$forum_permission] = 1; } else
| $perms_checked[$forum_permission] = 1; } else
|
Zeile 2585 | Zeile 2602 |
---|
echo $form->generate_hidden_field("fid", $mybb->input['fid']); echo $form->generate_hidden_field("add", "moderators"); $form_container = new FormContainer($lang->add_user_as_moderator);
|
echo $form->generate_hidden_field("fid", $mybb->input['fid']); echo $form->generate_hidden_field("add", "moderators"); $form_container = new FormContainer($lang->add_user_as_moderator);
|
$form_container->output_row($lang->username." <em>*</em>", $lang->moderator_username_desc, $form->generate_text_box('username', $mybb->input['username'], array('id' => 'username')), 'username');
| $form_container->output_row($lang->username." <em>*</em>", $lang->moderator_username_desc, $form->generate_text_box('username', htmlspecialchars_uni($mybb->get_input('username')), array('id' => 'username')), 'username');
|
$form_container->end();
// Autocompletion for usernames
| $form_container->end();
// Autocompletion for usernames
|
Zeile 2595 | Zeile 2612 |
---|
<script type="text/javascript"> <!-- $("#username").select2({
|
<script type="text/javascript"> <!-- $("#username").select2({
|
placeholder: "'.$lang->search_user.'", minimumInputLength: 3, maximumSelectionSize: 3,
| placeholder: "'.$lang->search_for_a_user.'", minimumInputLength: 2,
|
multiple: false, ajax: { // instead of writing the function to execute the request we use Select2\'s convenient helper url: "../xmlhttp.php?action=get_users",
| multiple: false, ajax: { // instead of writing the function to execute the request we use Select2\'s convenient helper url: "../xmlhttp.php?action=get_users",
|
Zeile 2625 | Zeile 2641 |
---|
}, });
|
}, });
|
$(\'[for=username]\').click(function(){
| $(\'[for=username]\').on(\'click\', function(){
|
$("#username").select2(\'open\'); return false; });
| $("#username").select2(\'open\'); return false; });
|
Zeile 2645 | Zeile 2661 |
---|
}
/**
|
}
/**
|
*
| * @param DefaultFormContainer $form_container * @param DefaultForm $form * @param int $pid * @param int $depth
|
*/
|
*/
|
function build_admincp_forums_list(&$form_container, $pid=0, $depth=1)
| function build_admincp_forums_list(&$form_container, &$form, $pid=0, $depth=1)
|
{ global $mybb, $lang, $db, $sub_forums; static $forums_by_parent;
|
{ global $mybb, $lang, $db, $sub_forums; static $forums_by_parent;
|
|
|
if(!is_array($forums_by_parent)) { $forum_cache = cache_forums();
|
if(!is_array($forums_by_parent)) { $forum_cache = cache_forums();
|
|
|
foreach($forum_cache as $forum) { $forums_by_parent[$forum['pid']][$forum['disporder']][$forum['fid']] = $forum;
|
foreach($forum_cache as $forum) { $forums_by_parent[$forum['pid']][$forum['disporder']][$forum['fid']] = $forum;
|
} }
| } }
|
if(!is_array($forums_by_parent[$pid]))
|
if(!is_array($forums_by_parent[$pid]))
|
{
| {
|
return; }
| return; }
|
Zeile 2676 | Zeile 2695 |
---|
if($forum['active'] == 0) { $forum['name'] = "<em>".$forum['name']."</em>";
|
if($forum['active'] == 0) { $forum['name'] = "<em>".$forum['name']."</em>";
|
}
| }
|
if($forum['type'] == "c" && ($depth == 1 || $depth == 2))
|
if($forum['type'] == "c" && ($depth == 1 || $depth == 2))
|
{ $sub_forums = ''; if(isset($forums_by_parent[$forum['fid']]) && $depth == 2) { build_admincp_forums_list($form_container, $forum['fid'], $depth+1); } if($sub_forums) { $sub_forums = "<br /><small>{$lang->sub_forums}: {$sub_forums}</small>"; }
$form_container->output_cell("<div style=\"padding-left: ".(40*($depth-1))."px;\"><a href=\"index.php?module=forum-management&fid={$forum['fid']}\"><strong>{$forum['name']}</strong></a>{$sub_forums}</div>");
$form_container->output_cell("<input type=\"text\" name=\"disporder[".$forum['fid']."]\" value=\"".$forum['disporder']."\" class=\"text_input align_center\" style=\"width: 80%; font-weight: bold;\" />", array("class" => "align_center"));
$popup = new PopupMenu("forum_{$forum['fid']}", $lang->options);
| { $sub_forums = ''; if(isset($forums_by_parent[$forum['fid']]) && $depth == 2) { build_admincp_forums_list($form_container, $form, $forum['fid'], $depth+1); } if($sub_forums) { $sub_forums = "<br /><small>{$lang->sub_forums}: {$sub_forums}</small>"; }
$form_container->output_cell("<div style=\"padding-left: ".(40*($depth-1))."px;\"><a href=\"index.php?module=forum-management&fid={$forum['fid']}\"><strong>{$forum['name']}</strong></a>{$sub_forums}</div>");
$form_container->output_cell($form->generate_numeric_field("disporder[{$forum['fid']}]", "{$forum['disporder']}", array('min' => 0, 'class' => 'align_center', 'style' => 'width:80%; font-weight:bold')), array("class" => "align_center"));
$popup = new PopupMenu("forum_{$forum['fid']}", $lang->options);
|
$popup->add_item($lang->edit_forum, "index.php?module=forum-management&action=edit&fid={$forum['fid']}"); $popup->add_item($lang->subforums, "index.php?module=forum-management&fid={$forum['fid']}"); $popup->add_item($lang->moderators, "index.php?module=forum-management&fid={$forum['fid']}#tab_moderators");
| $popup->add_item($lang->edit_forum, "index.php?module=forum-management&action=edit&fid={$forum['fid']}"); $popup->add_item($lang->subforums, "index.php?module=forum-management&fid={$forum['fid']}"); $popup->add_item($lang->moderators, "index.php?module=forum-management&fid={$forum['fid']}#tab_moderators");
|
Zeile 2703 | Zeile 2722 |
---|
$popup->add_item($lang->copy_forum, "index.php?module=forum-management&action=copy&fid={$forum['fid']}"); $popup->add_item($lang->delete_forum, "index.php?module=forum-management&action=delete&fid={$forum['fid']}&my_post_key={$mybb->post_code}", "return AdminCP.deleteConfirmation(this, '{$lang->confirm_forum_deletion}')");
|
$popup->add_item($lang->copy_forum, "index.php?module=forum-management&action=copy&fid={$forum['fid']}"); $popup->add_item($lang->delete_forum, "index.php?module=forum-management&action=delete&fid={$forum['fid']}&my_post_key={$mybb->post_code}", "return AdminCP.deleteConfirmation(this, '{$lang->confirm_forum_deletion}')");
|
$form_container->output_cell($popup->fetch(), array("class" => "align_center"));
| $form_container->output_cell($popup->fetch(), array("class" => "align_center"));
|
$form_container->construct_row();
// Does this category have any sub forums? if($forums_by_parent[$forum['fid']])
|
$form_container->construct_row();
// Does this category have any sub forums? if($forums_by_parent[$forum['fid']])
|
{ build_admincp_forums_list($form_container, $forum['fid'], $depth+1);
| { build_admincp_forums_list($form_container, $form, $forum['fid'], $depth+1);
|
} } elseif($forum['type'] == "f" && ($depth == 1 || $depth == 2)) { if($forum['description'])
|
} } elseif($forum['type'] == "f" && ($depth == 1 || $depth == 2)) { if($forum['description'])
|
{
| {
|
$forum['description'] = preg_replace("#&(?!\#[0-9]+;)#si", "&", $forum['description']); $forum['description'] = "<br /><small>".$forum['description']."</small>"; }
| $forum['description'] = preg_replace("#&(?!\#[0-9]+;)#si", "&", $forum['description']); $forum['description'] = "<br /><small>".$forum['description']."</small>"; }
|
Zeile 2724 | Zeile 2743 |
---|
$sub_forums = ''; if(isset($forums_by_parent[$forum['fid']]) && $depth == 2) {
|
$sub_forums = ''; if(isset($forums_by_parent[$forum['fid']]) && $depth == 2) {
|
build_admincp_forums_list($form_container, $forum['fid'], $depth+1);
| build_admincp_forums_list($form_container, $form, $forum['fid'], $depth+1);
|
} if($sub_forums)
|
} if($sub_forums)
|
{
| {
|
$sub_forums = "<br /><small>{$lang->sub_forums}: {$sub_forums}</small>"; }
|
$sub_forums = "<br /><small>{$lang->sub_forums}: {$sub_forums}</small>"; }
|
|
|
$form_container->output_cell("<div style=\"padding-left: ".(40*($depth-1))."px;\"><a href=\"index.php?module=forum-management&fid={$forum['fid']}\">{$forum['name']}</a>{$forum['description']}{$sub_forums}</div>");
|
$form_container->output_cell("<div style=\"padding-left: ".(40*($depth-1))."px;\"><a href=\"index.php?module=forum-management&fid={$forum['fid']}\">{$forum['name']}</a>{$forum['description']}{$sub_forums}</div>");
|
$form_container->output_cell("<input type=\"text\" name=\"disporder[".$forum['fid']."]\" value=\"".$forum['disporder']."\" class=\"text_input align_center\" style=\"width: 80%;\" />", array("class" => "align_center"));
| $form_container->output_cell($form->generate_numeric_field("disporder[{$forum['fid']}]", "{$forum['disporder']}", array('min' => 0, 'class' => 'align_center', 'style' => 'width:80%')), array("class" => "align_center"));
|
$popup = new PopupMenu("forum_{$forum['fid']}", $lang->options); $popup->add_item($lang->edit_forum, "index.php?module=forum-management&action=edit&fid={$forum['fid']}"); $popup->add_item($lang->subforums, "index.php?module=forum-management&fid={$forum['fid']}");
| $popup = new PopupMenu("forum_{$forum['fid']}", $lang->options); $popup->add_item($lang->edit_forum, "index.php?module=forum-management&action=edit&fid={$forum['fid']}"); $popup->add_item($lang->subforums, "index.php?module=forum-management&fid={$forum['fid']}");
|
Zeile 2743 | Zeile 2761 |
---|
$popup->add_item($lang->add_child_forum, "index.php?module=forum-management&action=add&pid={$forum['fid']}"); $popup->add_item($lang->copy_forum, "index.php?module=forum-management&action=copy&fid={$forum['fid']}"); $popup->add_item($lang->delete_forum, "index.php?module=forum-management&action=delete&fid={$forum['fid']}&my_post_key={$mybb->post_code}", "return AdminCP.deleteConfirmation(this, '{$lang->confirm_forum_deletion}')");
|
$popup->add_item($lang->add_child_forum, "index.php?module=forum-management&action=add&pid={$forum['fid']}"); $popup->add_item($lang->copy_forum, "index.php?module=forum-management&action=copy&fid={$forum['fid']}"); $popup->add_item($lang->delete_forum, "index.php?module=forum-management&action=delete&fid={$forum['fid']}&my_post_key={$mybb->post_code}", "return AdminCP.deleteConfirmation(this, '{$lang->confirm_forum_deletion}')");
|
|
|
$form_container->output_cell($popup->fetch(), array("class" => "align_center"));
$form_container->construct_row();
if(isset($forums_by_parent[$forum['fid']]) && $depth == 1)
|
$form_container->output_cell($popup->fetch(), array("class" => "align_center"));
$form_container->construct_row();
if(isset($forums_by_parent[$forum['fid']]) && $depth == 1)
|
{ build_admincp_forums_list($form_container, $forum['fid'], $depth+1); }
| { build_admincp_forums_list($form_container, $form, $forum['fid'], $depth+1); }
|
} else if($depth == 3) {
| } else if($depth == 3) {
|
Zeile 2759 | Zeile 2777 |
---|
{ $sub_forums .= "{$comma} <a href=\"index.php?module=forum-management&fid={$forum['fid']}\">{$forum['name']}</a>"; $comma = $lang->comma;
|
{ $sub_forums .= "{$comma} <a href=\"index.php?module=forum-management&fid={$forum['fid']}\">{$forum['name']}</a>"; $comma = $lang->comma;
|
}
| }
|
// Have we reached our max visible subforums? put a nice message and break out of the loop ++$donecount; if($donecount == $mybb->settings['subforumsindex'])
| // Have we reached our max visible subforums? put a nice message and break out of the loop ++$donecount; if($donecount == $mybb->settings['subforumsindex'])
|
Zeile 2776 | Zeile 2794 |
---|
} }
|
} }
|
| /** * @param int $gid * @param int $fid * * @return string */
|
function retrieve_single_permissions_row($gid, $fid) { global $mybb, $lang, $cache, $db;
| function retrieve_single_permissions_row($gid, $fid) { global $mybb, $lang, $cache, $db;
|