Vergleich admin/modules/forum/management.php - 1.8.5 - 1.8.6

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 2642Zeile 2642
}

/**

}

/**

 *



 * @param DefaultFormContainer $form_container
* @param int $pid
* @param int $depth

 */
function build_admincp_forums_list(&$form_container, $pid=0, $depth=1)
{

 */
function build_admincp_forums_list(&$form_container, $pid=0, $depth=1)
{

Zeile 2652Zeile 2654
	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 2673Zeile 2675
			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))
{
$sub_forums = '';
if(isset($forums_by_parent[$forum['fid']]) && $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);

					build_admincp_forums_list($form_container, $forum['fid'], $depth+1);

				}

				}

				if($sub_forums)
{
$sub_forums = "<br /><small>{$lang->sub_forums}: {$sub_forums}</small>";

				if($sub_forums)
{
$sub_forums = "<br /><small>{$lang->sub_forums}: {$sub_forums}</small>";

Zeile 2690Zeile 2692
				$form_container->output_cell("<div style=\"padding-left: ".(40*($depth-1))."px;\"><a href=\"index.php?module=forum-management&amp;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"));

				$form_container->output_cell("<div style=\"padding-left: ".(40*($depth-1))."px;\"><a href=\"index.php?module=forum-management&amp;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);


$popup = new PopupMenu("forum_{$forum['fid']}", $lang->options);

				$popup->add_item($lang->edit_forum, "index.php?module=forum-management&amp;action=edit&amp;fid={$forum['fid']}");
$popup->add_item($lang->subforums, "index.php?module=forum-management&amp;fid={$forum['fid']}");
$popup->add_item($lang->moderators, "index.php?module=forum-management&amp;fid={$forum['fid']}#tab_moderators");

				$popup->add_item($lang->edit_forum, "index.php?module=forum-management&amp;action=edit&amp;fid={$forum['fid']}");
$popup->add_item($lang->subforums, "index.php?module=forum-management&amp;fid={$forum['fid']}");
$popup->add_item($lang->moderators, "index.php?module=forum-management&amp;fid={$forum['fid']}#tab_moderators");

Zeile 2700Zeile 2702
				$popup->add_item($lang->copy_forum, "index.php?module=forum-management&amp;action=copy&amp;fid={$forum['fid']}");
$popup->add_item($lang->delete_forum, "index.php?module=forum-management&amp;action=delete&amp;fid={$forum['fid']}&amp;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&amp;action=copy&amp;fid={$forum['fid']}");
$popup->add_item($lang->delete_forum, "index.php?module=forum-management&amp;action=delete&amp;fid={$forum['fid']}&amp;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, $forum['fid'], $depth+1);

				}
}
elseif($forum['type'] == "f" && ($depth == 1 || $depth == 2))

				}
}
elseif($forum['type'] == "f" && ($depth == 1 || $depth == 2))

Zeile 2741Zeile 2743
				$popup->add_item($lang->copy_forum, "index.php?module=forum-management&amp;action=copy&amp;fid={$forum['fid']}");
$popup->add_item($lang->delete_forum, "index.php?module=forum-management&amp;action=delete&amp;fid={$forum['fid']}&amp;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&amp;action=copy&amp;fid={$forum['fid']}");
$popup->add_item($lang->delete_forum, "index.php?module=forum-management&amp;action=delete&amp;fid={$forum['fid']}&amp;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();

if(isset($forums_by_parent[$forum['fid']]) && $depth == 1)

				$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, $forum['fid'], $depth+1);
}
}

Zeile 2756Zeile 2758
				{
$sub_forums .= "{$comma} <a href=\"index.php?module=forum-management&amp;fid={$forum['fid']}\">{$forum['name']}</a>";
$comma = $lang->comma;

				{
$sub_forums .= "{$comma} <a href=\"index.php?module=forum-management&amp;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;


// Have we reached our max visible subforums? put a nice message and break out of the loop
++$donecount;

Zeile 2773Zeile 2775
	}
}


	}
}


 
/**
* @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;