Vergleich admin/modules/user/groups.php - 1.8.17 - 1.8.30

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 57Zeile 57
	"canuploadavatars" => 1,
"canratemembers" => 1,
"canchangename" => 0,

	"canuploadavatars" => 1,
"canratemembers" => 1,
"canchangename" => 0,

 
	"canbeinvisible" => 1,

	"canbereported" => 0,
"canchangewebsite" => 1,
"showforumteam" => 0,

	"canbereported" => 0,
"canchangewebsite" => 1,
"showforumteam" => 0,

Zeile 127Zeile 128
		admin_redirect("index.php?module=user-groups");
}


		admin_redirect("index.php?module=user-groups");
}


	if(!verify_post_check($mybb->input['my_post_key']))

	if(!verify_post_check($mybb->get_input('my_post_key')))

	{
flash_message($lang->invalid_post_verify_key2, 'error');
admin_redirect("index.php?module=user-groups&action=join_requests&gid={$request['gid']}");

	{
flash_message($lang->invalid_post_verify_key2, 'error');
admin_redirect("index.php?module=user-groups&action=join_requests&gid={$request['gid']}");

Zeile 158Zeile 159
		admin_redirect("index.php?module=user-groups");
}


		admin_redirect("index.php?module=user-groups");
}


	if(!verify_post_check($mybb->input['my_post_key']))

	if(!verify_post_check($mybb->get_input('my_post_key')))

	{
flash_message($lang->invalid_post_verify_key2, 'error');
admin_redirect("index.php?module=user-groups&action=join_requests&gid={$request['gid']}");

	{
flash_message($lang->invalid_post_verify_key2, 'error');
admin_redirect("index.php?module=user-groups&action=join_requests&gid={$request['gid']}");

Zeile 326Zeile 327
	$plugins->run_hooks("admin_user_groups_add_leader");

$user = get_user_by_username($mybb->input['username'], array('fields' => 'username'));

	$plugins->run_hooks("admin_user_groups_add_leader");

$user = get_user_by_username($mybb->input['username'], array('fields' => 'username'));

	if(!$user['uid'])

	if(empty($user['uid']))

	{
$errors[] = $lang->error_invalid_username;
}

	{
$errors[] = $lang->error_invalid_username;
}

Zeile 554Zeile 555
	$group = $db->fetch_array($query);

// User clicked no

	$group = $db->fetch_array($query);

// User clicked no

	if($mybb->input['no'])

	if($mybb->get_input('no'))

	{
admin_redirect("index.php?module=user-groups");
}

	{
admin_redirect("index.php?module=user-groups");
}

Zeile 681Zeile 682

if(!$errors)
{


if(!$errors)
{

			if($mybb->input['stars'] < 1)

			if($mybb->get_input('stars') < 1)

			{
$mybb->input['stars'] = 0;
}


			{
$mybb->input['stars'] = 0;
}


			if(!$mybb->input['starimage'])

			if(!$mybb->get_input('starimage'))

			{
$mybb->input['starimage'] = "images/star.png";
}

			{
$mybb->input['starimage'] = "images/star.png";
}

Zeile 776Zeile 777
	}

$form_container = new FormContainer($lang->add_user_group);

	}

$form_container = new FormContainer($lang->add_user_group);

	$form_container->output_row($lang->title." <em>*</em>", "", $form->generate_text_box('title', $mybb->input['title'], array('id' => 'title')), 'title');
$form_container->output_row($lang->short_description, "", $form->generate_text_box('description', $mybb->input['description'], array('id' => 'description')), 'description');
$form_container->output_row($lang->username_style, $lang->username_style_desc, $form->generate_text_box('namestyle', $mybb->input['namestyle'], array('id' => 'namestyle')), 'namestyle');
$form_container->output_row($lang->user_title, $lang->user_title_desc, $form->generate_text_box('usertitle', $mybb->input['usertitle'], array('id' => 'usertitle')), 'usertitle');

	$form_container->output_row($lang->title." <em>*</em>", "", $form->generate_text_box('title', $mybb->get_input('title'), array('id' => 'title')), 'title');
$form_container->output_row($lang->short_description, "", $form->generate_text_box('description', $mybb->get_input('description'), array('id' => 'description')), 'description');
$form_container->output_row($lang->username_style, $lang->username_style_desc, $form->generate_text_box('namestyle', $mybb->get_input('namestyle'), array('id' => 'namestyle')), 'namestyle');
$form_container->output_row($lang->user_title, $lang->user_title_desc, $form->generate_text_box('usertitle', $mybb->get_input('usertitle'), array('id' => 'usertitle')), 'usertitle');


$options[0] = $lang->do_not_copy_permissions;
$query = $db->simple_select("usergroups", "gid, title", "gid != '1'", array('order_by' => 'title'));


$options[0] = $lang->do_not_copy_permissions;
$query = $db->simple_select("usergroups", "gid, title", "gid != '1'", array('order_by' => 'title'));

Zeile 787Zeile 788
	{
$options[$usergroup['gid']] = htmlspecialchars_uni($usergroup['title']);
}

	{
$options[$usergroup['gid']] = htmlspecialchars_uni($usergroup['title']);
}

	$form_container->output_row($lang->copy_permissions_from, $lang->copy_permissions_from_desc, $form->generate_select_box('copyfrom', $options, $mybb->input['copyfrom'], array('id' => 'copyfrom')), 'copyfrom');

	$form_container->output_row($lang->copy_permissions_from, $lang->copy_permissions_from_desc, $form->generate_select_box('copyfrom', $options, $mybb->get_input('copyfrom'), array('id' => 'copyfrom')), 'copyfrom');


$form_container->end();
$buttons[] = $form->generate_submit_button($lang->save_user_group);


$form_container->end();
$buttons[] = $form->generate_submit_button($lang->save_user_group);

Zeile 796Zeile 797
	$form->end();
$page->output_footer();
}

	$form->end();
$page->output_footer();
}





if($mybb->input['action'] == "edit")
{
$query = $db->simple_select("usergroups", "*", "gid='".$mybb->get_input('gid', MyBB::INPUT_INT)."'");
$usergroup = $db->fetch_array($query);

if($mybb->input['action'] == "edit")
{
$query = $db->simple_select("usergroups", "*", "gid='".$mybb->get_input('gid', MyBB::INPUT_INT)."'");
$usergroup = $db->fetch_array($query);





	if(!$usergroup['gid'])
{
flash_message($lang->error_invalid_user_group, 'error');

	if(!$usergroup['gid'])
{
flash_message($lang->error_invalid_user_group, 'error');

Zeile 809Zeile 810
	}
else
{

	}
else
{

		if(preg_match("#<((m[^a])|(b[^diloru>])|(s[^aemptu>]))(\s*[^>]*)>#si", $mybb->input['namestyle']))

		if(preg_match("#<((m[^a])|(b[^diloru>])|(s[^aemptu>]))(\s*[^>]*)>#si", $mybb->get_input('namestyle')))

		{
$errors[] = $lang->error_disallowed_namestyle_username;
$mybb->input['namestyle'] = $usergroup['namestyle'];

		{
$errors[] = $lang->error_disallowed_namestyle_username;
$mybb->input['namestyle'] = $usergroup['namestyle'];

		}

		}

	}

$plugins->run_hooks("admin_user_groups_edit");

if($mybb->request_method == "post")
{

	}

$plugins->run_hooks("admin_user_groups_edit");

if($mybb->request_method == "post")
{

		if(!trim($mybb->input['title']))

		if(!trim($mybb->get_input('title')))

		{
$errors[] = $lang->error_missing_title;
}


		{
$errors[] = $lang->error_missing_title;
}


		if(my_strpos($mybb->input['namestyle'], "{username}") === false)

		if(my_strpos($mybb->get_input('namestyle'), "{username}") === false)

		{
$errors[] = $lang->error_missing_namestyle_username;
}


		{
$errors[] = $lang->error_missing_namestyle_username;
}


		if($mybb->input['moderate'] == 1 && $mybb->input['invite'] == 1)

		if($mybb->get_input('moderate') == 1 && $mybb->get_input('invite') == 1)

		{
$errors[] = $lang->error_cannot_have_both_types;
}

if(!$errors)
{

		{
$errors[] = $lang->error_cannot_have_both_types;
}

if(!$errors)
{

			if($mybb->input['joinable'] == 1)

			if($mybb->get_input('joinable') == 1)

			{

			{

				if($mybb->input['moderate'] == 1)

				if($mybb->get_input('moderate') == 1)

				{
$mybb->input['type'] = "4";
}

				{
$mybb->input['type'] = "4";
}

				elseif($mybb->input['invite'] == 1)

				elseif($mybb->get_input('invite') == 1)

				{
$mybb->input['type'] = "5";
}

				{
$mybb->input['type'] = "5";
}

Zeile 862Zeile 863
				$mybb->input['type'] = 1;
}


				$mybb->input['type'] = 1;
}


			if($mybb->input['stars'] < 1)

			if($mybb->get_input('stars') < 1)

			{
$mybb->input['stars'] = 0;
}

			{
$mybb->input['stars'] = 0;
}

Zeile 923Zeile 924
				"canuploadavatars" => $mybb->get_input('canuploadavatars', MyBB::INPUT_INT),
"canchangename" => $mybb->get_input('canchangename', MyBB::INPUT_INT),
"canbereported" => $mybb->get_input('canbereported', MyBB::INPUT_INT),

				"canuploadavatars" => $mybb->get_input('canuploadavatars', MyBB::INPUT_INT),
"canchangename" => $mybb->get_input('canchangename', MyBB::INPUT_INT),
"canbereported" => $mybb->get_input('canbereported', MyBB::INPUT_INT),

 
				"canbeinvisible" => $mybb->get_input('canbeinvisible', MyBB::INPUT_INT),

				"canchangewebsite" => $mybb->get_input('canchangewebsite', MyBB::INPUT_INT),
"showforumteam" => $mybb->get_input('showforumteam', MyBB::INPUT_INT),
"usereputationsystem" => $mybb->get_input('usereputationsystem', MyBB::INPUT_INT),

				"canchangewebsite" => $mybb->get_input('canchangewebsite', MyBB::INPUT_INT),
"showforumteam" => $mybb->get_input('showforumteam', MyBB::INPUT_INT),
"usereputationsystem" => $mybb->get_input('usereputationsystem', MyBB::INPUT_INT),

Zeile 960Zeile 962
			if($usergroup['type'] != 1)
{
$updated_group['candisplaygroup'] = $mybb->get_input('candisplaygroup', MyBB::INPUT_INT);

			if($usergroup['type'] != 1)
{
$updated_group['candisplaygroup'] = $mybb->get_input('candisplaygroup', MyBB::INPUT_INT);

			}

			}


$plugins->run_hooks("admin_user_groups_edit_commit");



$plugins->run_hooks("admin_user_groups_edit_commit");


Zeile 1004Zeile 1006
	if($errors)
{
$page->output_inline_error($errors);

	if($errors)
{
$page->output_inline_error($errors);

	}

	}

	else
{
if($usergroup['type'] == "3")

	else
{
if($usergroup['type'] == "3")

		{

		{

			$usergroup['joinable'] = 1;
$usergroup['moderate'] = 0;
$usergroup['invite'] = 0;
}
elseif($usergroup['type'] == "4")

			$usergroup['joinable'] = 1;
$usergroup['moderate'] = 0;
$usergroup['invite'] = 0;
}
elseif($usergroup['type'] == "4")

		{
$usergroup['joinable'] = 1;

		{
$usergroup['joinable'] = 1;

			$usergroup['moderate'] = 1;
$usergroup['invite'] = 0;
}

			$usergroup['moderate'] = 1;
$usergroup['invite'] = 0;
}

Zeile 1043Zeile 1045
	$tabs = $plugins->run_hooks("admin_user_groups_edit_graph_tabs", $tabs);
$page->output_tab_control($tabs);


	$tabs = $plugins->run_hooks("admin_user_groups_edit_graph_tabs", $tabs);
$page->output_tab_control($tabs);


	echo "<div id=\"tab_general\">";













	echo "<div id=\"tab_general\">
<script type=\"text/javascript\">
$(function(){
$('input[name=\"moderate\"]').parents(\".group_settings_bit\").addClass(\"joinable_dependent\");
$('input[name=\"invite\"]').parents(\".group_settings_bit\").addClass(\"joinable_dependent\");
if($('input[name=\"joinable\"]').prop(\"checked\") == false){
$(\".joinable_dependent\").hide();
}
$('input[name=\"joinable\"]').on('change', function() {
$(\".joinable_dependent\").slideToggle();
})
});
</script>";

	$form_container = new FormContainer($lang->general);
$form_container->output_row($lang->title." <em>*</em>", "", $form->generate_text_box('title', $mybb->input['title'], array('id' => 'title')), 'title');
$form_container->output_row($lang->short_description, "", $form->generate_text_box('description', $mybb->input['description'], array('id' => 'description')), 'description');
$form_container->output_row($lang->username_style, $lang->username_style_desc, $form->generate_text_box('namestyle', $mybb->input['namestyle'], array('id' => 'namestyle')), 'namestyle');
$form_container->output_row($lang->user_title, $lang->user_title_desc, $form->generate_text_box('usertitle', $mybb->input['usertitle'], array('id' => 'usertitle')), 'usertitle');

	$form_container = new FormContainer($lang->general);
$form_container->output_row($lang->title." <em>*</em>", "", $form->generate_text_box('title', $mybb->input['title'], array('id' => 'title')), 'title');
$form_container->output_row($lang->short_description, "", $form->generate_text_box('description', $mybb->input['description'], array('id' => 'description')), 'description');
$form_container->output_row($lang->username_style, $lang->username_style_desc, $form->generate_text_box('namestyle', $mybb->input['namestyle'], array('id' => 'namestyle')), 'namestyle');
$form_container->output_row($lang->user_title, $lang->user_title_desc, $form->generate_text_box('usertitle', $mybb->input['usertitle'], array('id' => 'usertitle')), 'usertitle');





	$stars = "<table cellpadding=\"3\"><tr><td>".$form->generate_numeric_field('stars', $mybb->input['stars'], array('class' => 'field50', 'id' => 'stars', 'min' => 0))."</td><td>".$form->generate_text_box('starimage', $mybb->input['starimage'], array('id' => 'starimage'))."</td></tr>";
$stars .= "<tr><td><small>{$lang->stars}</small></td><td><small>{$lang->star_image}</small></td></tr></table>";
$form_container->output_row($lang->user_stars, $lang->user_stars_desc, $stars, "stars");

	$stars = "<table cellpadding=\"3\"><tr><td>".$form->generate_numeric_field('stars', $mybb->input['stars'], array('class' => 'field50', 'id' => 'stars', 'min' => 0))."</td><td>".$form->generate_text_box('starimage', $mybb->input['starimage'], array('id' => 'starimage'))."</td></tr>";
$stars .= "<tr><td><small>{$lang->stars}</small></td><td><small>{$lang->star_image}</small></td></tr></table>";
$form_container->output_row($lang->user_stars, $lang->user_stars_desc, $stars, "stars");

Zeile 1081Zeile 1095
		$form->generate_check_box("issupermod", 1, $lang->is_super_mod, array("checked" => $mybb->input['issupermod'])),
$form->generate_check_box("canmodcp", 1, $lang->can_access_mod_cp, array("checked" => $mybb->input['canmodcp'])),
$form->generate_check_box("cancp", 1, $lang->can_access_admin_cp, array("checked" => $mybb->input['cancp']))

		$form->generate_check_box("issupermod", 1, $lang->is_super_mod, array("checked" => $mybb->input['issupermod'])),
$form->generate_check_box("canmodcp", 1, $lang->can_access_mod_cp, array("checked" => $mybb->input['canmodcp'])),
$form->generate_check_box("cancp", 1, $lang->can_access_admin_cp, array("checked" => $mybb->input['cancp']))

	);

	);

	$form_container->output_row($lang->moderation_administration_options, "", "<div class=\"group_settings_bit\">".implode("</div><div class=\"group_settings_bit\">", $admin_options)."</div>");

$form_container->end();

	$form_container->output_row($lang->moderation_administration_options, "", "<div class=\"group_settings_bit\">".implode("</div><div class=\"group_settings_bit\">", $admin_options)."</div>");

$form_container->end();

Zeile 1132Zeile 1146
	);
$form_container->output_row($lang->attachment_options, "", "<div class=\"group_settings_bit\">".implode("</div><div class=\"group_settings_bit\">", $attachment_options)."</div>");


	);
$form_container->output_row($lang->attachment_options, "", "<div class=\"group_settings_bit\">".implode("</div><div class=\"group_settings_bit\">", $attachment_options)."</div>");


	$editing_options = array(
$form->generate_check_box("caneditposts", 1, $lang->can_edit_posts, array("checked" => $mybb->input['caneditposts'])),
$form->generate_check_box("candeleteposts", 1, $lang->can_delete_posts, array("checked" => $mybb->input['candeleteposts'])),
$form->generate_check_box("candeletethreads", 1, $lang->can_delete_threads, array("checked" => $mybb->input['candeletethreads'])),
$form->generate_check_box("caneditattachments", 1, $lang->can_edit_attachments, array("checked" => $mybb->input['caneditattachments'])),
$form->generate_check_box("canviewdeletionnotice", 1, $lang->can_view_deletion_notices, array("checked" => $mybb->input['canviewdeletionnotice'])),
"{$lang->edit_time_limit}<br /><small class=\"input\">{$lang->edit_time_limit_desc}</small><br />".$form->generate_numeric_field('edittimelimit', $mybb->input['edittimelimit'], array('id' => 'edittimelimit', 'class' => 'field50', 'min' => 0))
);
$form_container->output_row($lang->editing_deleting_options, "", "<div class=\"group_settings_bit\">".implode("</div><div class=\"group_settings_bit\">", $editing_options)."</div>");





	// Remove these options if the group being editied is Guest (GID=1)
if($usergroup['gid'] != 1)
{
$editing_options = array(
$form->generate_check_box("caneditposts", 1, $lang->can_edit_posts, array("checked" => $mybb->input['caneditposts'])),
$form->generate_check_box("candeleteposts", 1, $lang->can_delete_posts, array("checked" => $mybb->input['candeleteposts'])),
$form->generate_check_box("candeletethreads", 1, $lang->can_delete_threads, array("checked" => $mybb->input['candeletethreads'])),
$form->generate_check_box("caneditattachments", 1, $lang->can_edit_attachments, array("checked" => $mybb->input['caneditattachments'])),
$form->generate_check_box("canviewdeletionnotice", 1, $lang->can_view_deletion_notices, array("checked" => $mybb->input['canviewdeletionnotice'])),
"{$lang->edit_time_limit}<br /><small class=\"input\">{$lang->edit_time_limit_desc}</small><br />".$form->generate_numeric_field('edittimelimit', $mybb->input['edittimelimit'], array('id' => 'edittimelimit', 'class' => 'field50', 'min' => 0))
);
$form_container->output_row($lang->editing_deleting_options, "", "<div class=\"group_settings_bit\">".implode("</div><div class=\"group_settings_bit\">", $editing_options)."</div>");
}


$form_container->end();
echo "</div>";


$form_container->end();
echo "</div>";

Zeile 1153Zeile 1171

$account_options = array(
$form->generate_check_box("canbereported", 1, $lang->can_be_reported, array("checked" => $mybb->input['canbereported'])),


$account_options = array(
$form->generate_check_box("canbereported", 1, $lang->can_be_reported, array("checked" => $mybb->input['canbereported'])),

 
		$form->generate_check_box("canbeinvisible", 1, $lang->can_be_invisible, array("checked" => $mybb->input['canbeinvisible'])),

		$form->generate_check_box("canusercp", 1, $lang->can_access_usercp, array("checked" => $mybb->input['canusercp'])),
$form->generate_check_box("canchangename", 1, $lang->can_change_username, array("checked" => $mybb->input['canchangename'])),
$form->generate_check_box("cancustomtitle", 1, $lang->can_use_usertitles, array("checked" => $mybb->input['cancustomtitle'])),

		$form->generate_check_box("canusercp", 1, $lang->can_access_usercp, array("checked" => $mybb->input['canusercp'])),
$form->generate_check_box("canchangename", 1, $lang->can_change_username, array("checked" => $mybb->input['canchangename'])),
$form->generate_check_box("cancustomtitle", 1, $lang->can_use_usertitles, array("checked" => $mybb->input['cancustomtitle'])),

Zeile 1235Zeile 1254
	//
echo "<div id=\"tab_modcp\">";
$form_container = new FormContainer($lang->mod_cp);

	//
echo "<div id=\"tab_modcp\">";
$form_container = new FormContainer($lang->mod_cp);





	$forum_post_options = array(
$form->generate_check_box("canmanageannounce", 1, $lang->can_manage_announce, array("checked" => $mybb->input['canmanageannounce'])),
$form->generate_check_box("canmanagemodqueue", 1, $lang->can_manage_mod_queue, array("checked" => $mybb->input['canmanagemodqueue'])),

	$forum_post_options = array(
$form->generate_check_box("canmanageannounce", 1, $lang->can_manage_announce, array("checked" => $mybb->input['canmanageannounce'])),
$form->generate_check_box("canmanagemodqueue", 1, $lang->can_manage_mod_queue, array("checked" => $mybb->input['canmanagemodqueue'])),

Zeile 1281Zeile 1300
	}

// User clicked no

	}

// User clicked no

	if($mybb->input['no'])

	if($mybb->get_input('no'))

	{
admin_redirect("index.php?module=user-groups");
}

	{
admin_redirect("index.php?module=user-groups");
}

Zeile 1339Zeile 1358
		$cache->update_moderators();
$cache->update_usergroups();
$cache->update_forumpermissions();

		$cache->update_moderators();
$cache->update_usergroups();
$cache->update_forumpermissions();

		$cache->update_banned();

 

// Log admin action
log_admin_action($usergroup['gid'], $usergroup['title']);


// Log admin action
log_admin_action($usergroup['gid'], $usergroup['title']);

Zeile 1405Zeile 1423
	$page->output_nav_tabs($sub_tabs, 'manage_groups');

$form = new Form("index.php?module=user-groups", "post", "groups");

	$page->output_nav_tabs($sub_tabs, 'manage_groups');

$form = new Form("index.php?module=user-groups", "post", "groups");

 

$primaryusers = $secondaryusers = array();


$query = $db->query("
SELECT g.gid, COUNT(u.uid) AS users


$query = $db->query("
SELECT g.gid, COUNT(u.uid) AS users

Zeile 1492Zeile 1512
		}

$join_requests = '';

		}

$join_requests = '';

		if($joinrequests[$usergroup['gid']] > 1 && $usergroup['type'] == 4)

		if(isset($joinrequests[$usergroup['gid']]) && $joinrequests[$usergroup['gid']] > 1 && $usergroup['type'] == 4)

		{
$join_requests = " <small><a href=\"index.php?module=user-groups&amp;action=join_requests&amp;gid={$usergroup['gid']}\"><span style=\"color: red;\">({$joinrequests[$usergroup['gid']]} {$lang->outstanding_join_request})</span></a></small>";
}

		{
$join_requests = " <small><a href=\"index.php?module=user-groups&amp;action=join_requests&amp;gid={$usergroup['gid']}\"><span style=\"color: red;\">({$joinrequests[$usergroup['gid']]} {$lang->outstanding_join_request})</span></a></small>";
}

		else if($joinrequests[$usergroup['gid']] == 1 && $usergroup['type'] == 4)

		else if(isset($joinrequests[$usergroup['gid']]) && $joinrequests[$usergroup['gid']] == 1 && $usergroup['type'] == 4)

		{
$join_requests = " <small><a href=\"index.php?module=user-groups&amp;action=join_requests&amp;gid={$usergroup['gid']}\"><span style=\"color: red;\">({$joinrequests[$usergroup['gid']]} {$lang->outstanding_join_request})</span></a></small>";
}

$form_container->output_cell("<div class=\"float_right\">{$icon}</div><div><strong><a href=\"index.php?module=user-groups&amp;action=edit&amp;gid={$usergroup['gid']}\">".format_name(htmlspecialchars_uni($usergroup['title']), $usergroup['gid'])."</a></strong>{$join_requests}<br /><small>".htmlspecialchars_uni($usergroup['description'])."{$leaders_list}</small></div>");


		{
$join_requests = " <small><a href=\"index.php?module=user-groups&amp;action=join_requests&amp;gid={$usergroup['gid']}\"><span style=\"color: red;\">({$joinrequests[$usergroup['gid']]} {$lang->outstanding_join_request})</span></a></small>";
}

$form_container->output_cell("<div class=\"float_right\">{$icon}</div><div><strong><a href=\"index.php?module=user-groups&amp;action=edit&amp;gid={$usergroup['gid']}\">".format_name(htmlspecialchars_uni($usergroup['title']), $usergroup['gid'])."</a></strong>{$join_requests}<br /><small>".htmlspecialchars_uni($usergroup['description'])."{$leaders_list}</small></div>");


		if(!$primaryusers[$usergroup['gid']])

		if(!isset($primaryusers[$usergroup['gid']]))

		{
$primaryusers[$usergroup['gid']] = 0;

		{
$primaryusers[$usergroup['gid']] = 0;

 
		}
if(!isset($secondaryusers[$usergroup['gid']]))
{
$secondaryusers[$usergroup['gid']] = 0;

		}
$numusers = $primaryusers[$usergroup['gid']];
$numusers += $secondaryusers[$usergroup['gid']];

		}
$numusers = $primaryusers[$usergroup['gid']];
$numusers += $secondaryusers[$usergroup['gid']];

Zeile 1514Zeile 1538

if($usergroup['showforumteam'] == 1)
{


if($usergroup['showforumteam'] == 1)
{

			$form_container->output_cell("<input type=\"text\" name=\"disporder[{$usergroup['gid']}]\" value=\"{$usergroup['disporder']}\" class=\"text_input align_center\" style=\"width: 80%;\" />", array("class" => "align_center"));

			$form_container->output_cell($form->generate_numeric_field("disporder[{$usergroup['gid']}]", "{$usergroup['disporder']}", array('class' => 'align_center', 'style' => 'width:80%')), array("class" => "align_center"));

		}
else
{

		}
else
{

Zeile 1524Zeile 1548
		$popup = new PopupMenu("usergroup_{$usergroup['gid']}", $lang->options);
$popup->add_item($lang->edit_group, "index.php?module=user-groups&amp;action=edit&amp;gid={$usergroup['gid']}");
$popup->add_item($lang->list_users, "index.php?module=user-users&amp;action=search&amp;results=1&amp;conditions[usergroup]={$usergroup['gid']}");

		$popup = new PopupMenu("usergroup_{$usergroup['gid']}", $lang->options);
$popup->add_item($lang->edit_group, "index.php?module=user-groups&amp;action=edit&amp;gid={$usergroup['gid']}");
$popup->add_item($lang->list_users, "index.php?module=user-users&amp;action=search&amp;results=1&amp;conditions[usergroup]={$usergroup['gid']}");

		if($joinrequests[$usergroup['gid']] > 0 && $usergroup['type'] == 4)

		if(isset($joinrequests[$usergroup['gid']]) && $joinrequests[$usergroup['gid']] > 0 && $usergroup['type'] == 4)

		{
$popup->add_item($lang->join_requests, "index.php?module=user-groups&amp;action=join_requests&amp;gid={$usergroup['gid']}");
}

		{
$popup->add_item($lang->join_requests, "index.php?module=user-groups&amp;action=join_requests&amp;gid={$usergroup['gid']}");
}