Vergleich admin/modules/user/groups.php - 1.6.6 - 1.6.13

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * $Id: groups.php 5648 2011-11-09 08:48:00Z Tomm $

 * $Id$

 */

// Array of usergroup permission fields and their default values.

 */

// Array of usergroup permission fields and their default values.

Zeile 34Zeile 34
	"pmquota" => 100,
"maxpmrecipients" => 5,
"cansendemail" => 1,

	"pmquota" => 100,
"maxpmrecipients" => 5,
"cansendemail" => 1,

 
	"cansendemailoverride" => 0,

	"maxemails" => 4,
"canviewmemberlist" => 1,
"canviewcalendar" => 1,

	"maxemails" => 4,
"canviewmemberlist" => 1,
"canviewcalendar" => 1,

Zeile 294Zeile 295
		ORDER BY dateline ASC
LIMIT {$start}, {$per_page}
");

		ORDER BY dateline ASC
LIMIT {$start}, {$per_page}
");

 


	while($request = $db->fetch_array($query))
{
$table->construct_cell($form->generate_check_box("users[]", $request['uid'], ""));
$table->construct_cell("<strong>".build_profile_link($request['username'], $request['uid'], "_blank")."</strong>");
$table->construct_cell(htmlspecialchars_uni($request['reason']));
$table->construct_cell(my_date($mybb->settings['dateformat'].", ".$mybb->settings['timeformat'], $request['dateline']), array('class' => 'align_center'));

	while($request = $db->fetch_array($query))
{
$table->construct_cell($form->generate_check_box("users[]", $request['uid'], ""));
$table->construct_cell("<strong>".build_profile_link($request['username'], $request['uid'], "_blank")."</strong>");
$table->construct_cell(htmlspecialchars_uni($request['reason']));
$table->construct_cell(my_date($mybb->settings['dateformat'].", ".$mybb->settings['timeformat'], $request['dateline']), array('class' => 'align_center'));

		



		$popup = new PopupMenu("join_{$request['rid']}", $lang->options);
$popup->add_item($lang->approve, "index.php?module=user-groups&action=approve_join_request&amp;rid={$request['rid']}&amp;my_post_key={$mybb->post_code}");
$popup->add_item($lang->deny, "index.php?module=user-groups&action=deny_join_request&amp;rid={$request['rid']}&amp;my_post_key={$mybb->post_code}");

		$popup = new PopupMenu("join_{$request['rid']}", $lang->options);
$popup->add_item($lang->approve, "index.php?module=user-groups&action=approve_join_request&amp;rid={$request['rid']}&amp;my_post_key={$mybb->post_code}");
$popup->add_item($lang->deny, "index.php?module=user-groups&action=deny_join_request&amp;rid={$request['rid']}&amp;my_post_key={$mybb->post_code}");

		



		$table->construct_cell($popup->fetch(), array('class' => "align_center"));
$table->construct_row();
}

		$table->construct_cell($popup->fetch(), array('class' => "align_center"));
$table->construct_row();
}

Zeile 406Zeile 408
		'title' => $lang->manage_group_leaders,
'link' => "index.php?module=user-groups&action=leaders&gid={$group['gid']}",
'description' => $lang->manage_group_leaders_desc

		'title' => $lang->manage_group_leaders,
'link' => "index.php?module=user-groups&action=leaders&gid={$group['gid']}",
'description' => $lang->manage_group_leaders_desc

	);

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

	);

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


$table = new Table;
$table->construct_header($lang->user);


$table = new Table;
$table->construct_header($lang->user);

Zeile 433Zeile 435
		else
{
$canmanagemembers = $lang->no;

		else
{
$canmanagemembers = $lang->no;

		}

		}

			
if($leader['canmanagerequests'])
{

			
if($leader['canmanagerequests'])
{

Zeile 461Zeile 463
	$table->output($lang->group_leaders_for." {$group['title']}");

$form = new Form("index.php?module=user-groups&amp;action=add_leader&amp;gid={$group['gid']}", "post");

	$table->output($lang->group_leaders_for." {$group['title']}");

$form = new Form("index.php?module=user-groups&amp;action=add_leader&amp;gid={$group['gid']}", "post");

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

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

	{
$mybb->input = array(
"canmanagemembers" => 1,

	{
$mybb->input = array(
"canmanagemembers" => 1,

Zeile 519Zeile 521
		$plugins->run_hooks("admin_user_groups_delete_leader_commit");

// Delete the leader

		$plugins->run_hooks("admin_user_groups_delete_leader_commit");

// Delete the leader

		$db->delete_query("groupleaders", "lid='{$leader['lid']}'");

$cache->update_groupleaders();

// Log admin action

		$db->delete_query("groupleaders", "lid='{$leader['lid']}'");

$cache->update_groupleaders();

// Log admin action

		log_admin_action($leader['lid'], $leader['username'], $group['gid'], $group['title']);

flash_message($lang->success_group_leader_deleted, 'success');

		log_admin_action($leader['lid'], $leader['username'], $group['gid'], $group['title']);

flash_message($lang->success_group_leader_deleted, 'success');

Zeile 594Zeile 596
		
$page->output_nav_tabs($sub_tabs, 'group_leaders');


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


	$form = new Form("index.php?module=user-groups&amp;action=edit_leader&lid={$leader['lid']}'", "post");

	$form = new Form("index.php?module=user-groups&amp;action=edit_leader&amp;lid={$leader['lid']}", "post");

	
$form_container = new FormContainer($lang->edit_group_leader);
$form_container->output_row($lang->username." <em>*</em>", "", $leader['username']);

	
$form_container = new FormContainer($lang->edit_group_leader);
$form_container->output_row($lang->username." <em>*</em>", "", $leader['username']);

Zeile 755Zeile 757
		if(my_strpos($mybb->input['namestyle'], "{username}") === false)
{
$errors[] = $lang->error_missing_namestyle_username;

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

 
		}
else
{
if(preg_match("#<((m[^a])|(b[^diloru>])|(s[^aemptu>]))(\s*[^>]*)>#si", $mybb->input['namestyle']))
{
$errors[] = $lang->error_disallowed_namestyle_username;
$mybb->input['namestyle'] = $usergroup['namestyle'];
}

		}

if(!$errors)

		}

if(!$errors)

Zeile 817Zeile 827
				"pmquota" => intval($mybb->input['pmquota']),
"maxpmrecipients" => intval($mybb->input['maxpmrecipients']),
"cansendemail" => intval($mybb->input['cansendemail']),

				"pmquota" => intval($mybb->input['pmquota']),
"maxpmrecipients" => intval($mybb->input['maxpmrecipients']),
"cansendemail" => intval($mybb->input['cansendemail']),

 
				"cansendemailoverride" => intval($mybb->input['cansendemailoverride']),

				"maxemails" => intval($mybb->input['maxemails']),		
"canviewmemberlist" => intval($mybb->input['canviewmemberlist']),
"canviewcalendar" => intval($mybb->input['canviewcalendar']),

				"maxemails" => intval($mybb->input['maxemails']),		
"canviewmemberlist" => intval($mybb->input['canviewmemberlist']),
"canviewcalendar" => intval($mybb->input['canviewcalendar']),

Zeile 1081Zeile 1092
		$form->generate_check_box("canviewmemberlist", 1, $lang->can_view_member_list, array("checked" => $mybb->input['canviewmemberlist'])),
$form->generate_check_box("showinbirthdaylist", 1, $lang->show_in_birthday_list, array("checked" => $mybb->input['showinbirthdaylist'])),
$form->generate_check_box("cansendemail", 1, $lang->can_email_users, array("checked" => $mybb->input['cansendemail'])),

		$form->generate_check_box("canviewmemberlist", 1, $lang->can_view_member_list, array("checked" => $mybb->input['canviewmemberlist'])),
$form->generate_check_box("showinbirthdaylist", 1, $lang->show_in_birthday_list, array("checked" => $mybb->input['showinbirthdaylist'])),
$form->generate_check_box("cansendemail", 1, $lang->can_email_users, array("checked" => $mybb->input['cansendemail'])),

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

		"{$lang->max_emails_per_day}<br /><small class=\"input\">{$lang->max_emails_per_day_desc}</small><br />".$form->generate_text_box('maxemails', $mybb->input['maxemails'], array('id' => 'maxemails', 'class' => 'field50'))
);
$form_container->output_row($lang->misc, "", "<div class=\"group_settings_bit\">".implode("</div><div class=\"group_settings_bit\">", $misc_options)."</div>");

		"{$lang->max_emails_per_day}<br /><small class=\"input\">{$lang->max_emails_per_day_desc}</small><br />".$form->generate_text_box('maxemails', $mybb->input['maxemails'], array('id' => 'maxemails', 'class' => 'field50'))
);
$form_container->output_row($lang->misc, "", "<div class=\"group_settings_bit\">".implode("</div><div class=\"group_settings_bit\">", $misc_options)."</div>");