Zeile 28 | Zeile 28 |
---|
"candeleteposts" => 1, "candeletethreads" => 1, "caneditattachments" => 1,
|
"candeleteposts" => 1, "candeletethreads" => 1, "caneditattachments" => 1,
|
| "canviewdeletionnotice" => 1,
|
"canpostpolls" => 1, "canvotepolls" => 1, "canundovotes" => 0,
| "canpostpolls" => 1, "canvotepolls" => 1, "canundovotes" => 0,
|
Zeile 64 | Zeile 65 |
---|
"candeletereputations" => 1, "reputationpower" => 1, "maxreputationsday" => 5,
|
"candeletereputations" => 1, "reputationpower" => 1, "maxreputationsday" => 5,
|
"maxreputationsperuser" => 5, "maxreputationsperthread" => 5,
| "maxreputationsperuser" => 0, "maxreputationsperthread" => 0,
|
"candisplaygroup" => 0, "attachquota" => 5000, "cancustomtitle" => 0,
| "candisplaygroup" => 0, "attachquota" => 5000, "cancustomtitle" => 0,
|
Zeile 283 | Zeile 284 |
---|
while($request = $db->fetch_array($query)) { $table->construct_cell($form->generate_check_box("users[]", $request['uid'], ""));
|
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("<strong>".build_profile_link(htmlspecialchars_uni($request['username']), $request['uid'], "_blank")."</strong>");
|
$table->construct_cell(htmlspecialchars_uni($request['reason'])); $table->construct_cell(my_date('relative', $request['dateline']), array('class' => 'align_center'));
| $table->construct_cell(htmlspecialchars_uni($request['reason'])); $table->construct_cell(my_date('relative', $request['dateline']), array('class' => 'align_center'));
|
Zeile 350 | Zeile 351 |
---|
"canmanagerequests" => $mybb->get_input('canmanagerequests', MyBB::INPUT_INT), "caninvitemembers" => $mybb->get_input('caninvitemembers', MyBB::INPUT_INT) );
|
"canmanagerequests" => $mybb->get_input('canmanagerequests', MyBB::INPUT_INT), "caninvitemembers" => $mybb->get_input('caninvitemembers', MyBB::INPUT_INT) );
|
| $makeleadermember = $mybb->get_input('makeleadermember', MyBB::INPUT_INT); if($makeleadermember == 1) { join_usergroup($user['uid'], $group['gid']); }
|
$plugins->run_hooks("admin_user_groups_add_leader_commit");
| $plugins->run_hooks("admin_user_groups_add_leader_commit");
|
Zeile 358 | Zeile 365 |
---|
$cache->update_groupleaders();
// Log admin action
|
$cache->update_groupleaders();
// Log admin action
|
log_admin_action($user['uid'], $user['username'], $group['gid'], htmlspecialchars_uni($group['title']));
| log_admin_action($user['uid'], htmlspecialchars_uni($user['username']), $group['gid'], htmlspecialchars_uni($group['title']));
|
|
|
flash_message("{$user['username']} ".$lang->success_user_made_leader, 'success');
| $username = htmlspecialchars_uni($user['username']); flash_message("{$username} ".$lang->success_user_made_leader, 'success');
|
admin_redirect("index.php?module=user-groups&action=leaders&gid={$group['gid']}"); } else
| admin_redirect("index.php?module=user-groups&action=leaders&gid={$group['gid']}"); } else
|
Zeile 468 | Zeile 476 |
---|
$mybb->input = array_merge($mybb->input, array( "canmanagemembers" => 1, "canmanagerequests" => 1,
|
$mybb->input = array_merge($mybb->input, array( "canmanagemembers" => 1, "canmanagerequests" => 1,
|
"caninvitemembers" => 1
| "caninvitemembers" => 1, "makeleadermember" => 0
|
) ); }
$form_container = new FormContainer($lang->add_group_leader.' '.htmlspecialchars_uni($group['title']));
|
) ); }
$form_container = new FormContainer($lang->add_group_leader.' '.htmlspecialchars_uni($group['title']));
|
$form_container->output_row($lang->username." <em>*</em>", "", $form->generate_text_box('username', $mybb->input['username'], array('id' => 'username')), 'username');
| $form_container->output_row($lang->username." <em>*</em>", "", $form->generate_text_box('username', htmlspecialchars_uni($mybb->get_input('username')), array('id' => 'username')), 'username');
|
$form_container->output_row($lang->can_manage_group_members, $lang->can_manage_group_members_desc, $form->generate_yes_no_radio('canmanagemembers', $mybb->input['canmanagemembers'])); $form_container->output_row($lang->can_manage_group_join_requests, $lang->can_manage_group_join_requests_desc, $form->generate_yes_no_radio('canmanagerequests', $mybb->input['canmanagerequests'])); $form_container->output_row($lang->can_invite_group_members, $lang->can_invite_group_members_desc, $form->generate_yes_no_radio('caninvitemembers', $mybb->input['caninvitemembers']));
|
$form_container->output_row($lang->can_manage_group_members, $lang->can_manage_group_members_desc, $form->generate_yes_no_radio('canmanagemembers', $mybb->input['canmanagemembers'])); $form_container->output_row($lang->can_manage_group_join_requests, $lang->can_manage_group_join_requests_desc, $form->generate_yes_no_radio('canmanagerequests', $mybb->input['canmanagerequests'])); $form_container->output_row($lang->can_invite_group_members, $lang->can_invite_group_members_desc, $form->generate_yes_no_radio('caninvitemembers', $mybb->input['caninvitemembers']));
|
| $form_container->output_row($lang->make_user_member, $lang->make_user_member_desc, $form->generate_yes_no_radio('makeleadermember', $mybb->input['makeleadermember']));
|
$form_container->end();
// Autocompletion for usernames
| $form_container->end();
// Autocompletion for usernames
|
Zeile 488 | Zeile 498 |
---|
<!-- $("#username").select2({ placeholder: "'.$lang->search_for_a_user.'",
|
<!-- $("#username").select2({ placeholder: "'.$lang->search_for_a_user.'",
|
minimumInputLength: 3, maximumSelectionSize: 3,
| 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 564 | Zeile 573 |
---|
$cache->update_groupleaders();
// Log admin action
|
$cache->update_groupleaders();
// Log admin action
|
log_admin_action($leader['uid'], $leader['username'], $group['gid'], htmlspecialchars_uni($group['title']));
| log_admin_action($leader['uid'], htmlspecialchars_uni($leader['username']), $group['gid'], htmlspecialchars_uni($group['title']));
|
flash_message($lang->success_group_leader_deleted, 'success'); admin_redirect("index.php?module=user-groups&action=leaders&gid={$group['gid']}");
| flash_message($lang->success_group_leader_deleted, 'success'); admin_redirect("index.php?module=user-groups&action=leaders&gid={$group['gid']}");
|
Zeile 611 | Zeile 620 |
---|
$cache->update_groupleaders();
// Log admin action
|
$cache->update_groupleaders();
// Log admin action
|
log_admin_action($leader['uid'], $leader['username'], $group['gid'], htmlspecialchars_uni($group['title']));
| log_admin_action($leader['uid'], htmlspecialchars_uni($leader['username']), $group['gid'], htmlspecialchars_uni($group['title']));
|
flash_message($lang->success_group_leader_updated, 'success'); admin_redirect("index.php?module=user-groups&action=leaders&gid={$group['gid']}");
| flash_message($lang->success_group_leader_updated, 'success'); admin_redirect("index.php?module=user-groups&action=leaders&gid={$group['gid']}");
|
Zeile 623 | Zeile 632 |
---|
}
$page->add_breadcrumb_item($lang->group_leaders_for.' '.htmlspecialchars_uni($group['title']), "index.php?module=user-groups&action=leaders&gid={$group['gid']}");
|
}
$page->add_breadcrumb_item($lang->group_leaders_for.' '.htmlspecialchars_uni($group['title']), "index.php?module=user-groups&action=leaders&gid={$group['gid']}");
|
| $leader['username'] = htmlspecialchars_uni($leader['username']);
|
$page->add_breadcrumb_item($lang->edit_leader." {$leader['username']}");
$page->output_header($lang->edit_group_leader);
| $page->add_breadcrumb_item($lang->edit_leader." {$leader['username']}");
$page->output_header($lang->edit_group_leader);
|
Zeile 875 | Zeile 885 |
---|
"candeleteposts" => $mybb->get_input('candeleteposts', MyBB::INPUT_INT), "candeletethreads" => $mybb->get_input('candeletethreads', MyBB::INPUT_INT), "caneditattachments" => $mybb->get_input('caneditattachments', MyBB::INPUT_INT),
|
"candeleteposts" => $mybb->get_input('candeleteposts', MyBB::INPUT_INT), "candeletethreads" => $mybb->get_input('candeletethreads', MyBB::INPUT_INT), "caneditattachments" => $mybb->get_input('caneditattachments', MyBB::INPUT_INT),
|
| "canviewdeletionnotice" => $mybb->get_input('canviewdeletionnotice', MyBB::INPUT_INT),
|
"canpostpolls" => $mybb->get_input('canpostpolls', MyBB::INPUT_INT), "canvotepolls" => $mybb->get_input('canvotepolls', MyBB::INPUT_INT), "canundovotes" => $mybb->get_input('canundovotes', MyBB::INPUT_INT),
| "canpostpolls" => $mybb->get_input('canpostpolls', MyBB::INPUT_INT), "canvotepolls" => $mybb->get_input('canvotepolls', MyBB::INPUT_INT), "canundovotes" => $mybb->get_input('canundovotes', MyBB::INPUT_INT),
|
Zeile 1108 | Zeile 1119 |
---|
$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("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>");
| "{$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>");
|
Zeile 1140 | Zeile 1152 |
---|
$form->generate_check_box("candeletereputations", 1, $lang->can_delete_own_reputation, array("checked" => $mybb->input['candeletereputations'])), "{$lang->points_to_award_take}<br /><small class=\"input\">{$lang->points_to_award_take_desc}</small><br />".$form->generate_numeric_field('reputationpower', $mybb->input['reputationpower'], array('id' => 'reputationpower', 'class' => 'field50', 'min' => 0)), "{$lang->max_reputations_perthread}<br /><small class=\"input\">{$lang->max_reputations_perthread_desc}</small><br />".$form->generate_numeric_field('maxreputationsperthread', $mybb->input['maxreputationsperthread'], array('id' => 'maxreputationsperthread', 'class' => 'field50', 'min' => 0)),
|
$form->generate_check_box("candeletereputations", 1, $lang->can_delete_own_reputation, array("checked" => $mybb->input['candeletereputations'])), "{$lang->points_to_award_take}<br /><small class=\"input\">{$lang->points_to_award_take_desc}</small><br />".$form->generate_numeric_field('reputationpower', $mybb->input['reputationpower'], array('id' => 'reputationpower', 'class' => 'field50', 'min' => 0)), "{$lang->max_reputations_perthread}<br /><small class=\"input\">{$lang->max_reputations_perthread_desc}</small><br />".$form->generate_numeric_field('maxreputationsperthread', $mybb->input['maxreputationsperthread'], array('id' => 'maxreputationsperthread', 'class' => 'field50', 'min' => 0)),
|
| "{$lang->max_reputations_peruser}<br /><small class=\"input\">{$lang->max_reputations_peruser_desc}</small><br />".$form->generate_numeric_field('maxreputationsperuser', $mybb->input['maxreputationsperuser'], array('id' => 'maxreputationsperuser', 'class' => 'field50', 'min' => 0)),
|
"{$lang->max_reputations_daily}<br /><small class=\"input\">{$lang->max_reputations_daily_desc}</small><br />".$form->generate_numeric_field('maxreputationsday', $mybb->input['maxreputationsday'], array('id' => 'maxreputationsday', 'class' => 'field50', 'min' => 0)) ); $form_container->output_row($lang->reputation_system, "", "<div class=\"group_settings_bit\">".implode("</div><div class=\"group_settings_bit\">", $reputation_options)."</div>");
| "{$lang->max_reputations_daily}<br /><small class=\"input\">{$lang->max_reputations_daily_desc}</small><br />".$form->generate_numeric_field('maxreputationsday', $mybb->input['maxreputationsday'], array('id' => 'maxreputationsday', 'class' => 'field50', 'min' => 0)) ); $form_container->output_row($lang->reputation_system, "", "<div class=\"group_settings_bit\">".implode("</div><div class=\"group_settings_bit\">", $reputation_options)."</div>");
|
Zeile 1433 | Zeile 1446 |
---|
"); while($leader = $db->fetch_array($query)) {
|
"); while($leader = $db->fetch_array($query)) {
|
$leaders[$leader['gid']][] = build_profile_link($leader['username'], $leader['uid'], "_blank");
| $leaders[$leader['gid']][] = build_profile_link(htmlspecialchars_uni($leader['username']), $leader['uid'], "_blank");
|
}
$form_container = new FormContainer($lang->user_groups);
| }
$form_container = new FormContainer($lang->user_groups);
|