Zeile 148 | Zeile 148 |
---|
flash_message($lang->error_invalid_join_request, 'error'); admin_redirect("index.php?module=user-groups"); }
|
flash_message($lang->error_invalid_join_request, 'error'); admin_redirect("index.php?module=user-groups"); }
|
| if(!verify_post_check($mybb->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']}"); }
|
// Add the user to the group join_usergroup($request['uid'], $request['gid']); // Delete the join request $db->delete_query("joinrequests", "rid='{$request['rid']}'");
|
// Add the user to the group join_usergroup($request['uid'], $request['gid']); // Delete the join request $db->delete_query("joinrequests", "rid='{$request['rid']}'");
|
|
|
flash_message($lang->success_join_request_approved, "success"); admin_redirect("index.php?module=user-groups&action=join_requests&gid={$request['gid']}"); }
| flash_message($lang->success_join_request_approved, "success"); admin_redirect("index.php?module=user-groups&action=join_requests&gid={$request['gid']}"); }
|
Zeile 165 | Zeile 171 |
---|
$query = $db->simple_select("joinrequests", "*", "rid='".$mybb->input['rid']."'"); $request = $db->fetch_array($query);
|
$query = $db->simple_select("joinrequests", "*", "rid='".$mybb->input['rid']."'"); $request = $db->fetch_array($query);
|
|
|
if(!$request['rid']) { flash_message($lang->error_invalid_join_request, 'error'); admin_redirect("index.php?module=user-groups");
|
if(!$request['rid']) { flash_message($lang->error_invalid_join_request, 'error'); admin_redirect("index.php?module=user-groups");
|
| }
if(!verify_post_check($mybb->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']}");
|
}
// Delete the join request $db->delete_query("joinrequests", "rid='{$request['rid']}'");
|
}
// Delete the join request $db->delete_query("joinrequests", "rid='{$request['rid']}'");
|
|
|
flash_message($lang->success_join_request_denied, "success"); admin_redirect("index.php?module=user-groups&action=join_requests&gid={$request['gid']}"); }
| flash_message($lang->success_join_request_denied, "success"); admin_redirect("index.php?module=user-groups&action=join_requests&gid={$request['gid']}"); }
|
Zeile 182 | Zeile 194 |
---|
if($mybb->input['action'] == "join_requests") { $plugins->run_hooks("admin_user_groups_join_requests_start");
|
if($mybb->input['action'] == "join_requests") { $plugins->run_hooks("admin_user_groups_join_requests_start");
|
|
|
$query = $db->simple_select("usergroups", "*", "gid='".intval($mybb->input['gid'])."'"); $group = $db->fetch_array($query);
| $query = $db->simple_select("usergroups", "*", "gid='".intval($mybb->input['gid'])."'"); $group = $db->fetch_array($query);
|
Zeile 272 | Zeile 284 |
---|
$table->construct_header($lang->users); $table->construct_header($lang->reason); $table->construct_header($lang->date_requested, array("class" => 'align_center', "width" => 200));
|
$table->construct_header($lang->users); $table->construct_header($lang->reason); $table->construct_header($lang->date_requested, array("class" => 'align_center', "width" => 200));
|
$table->construct_header($lang->controls, array("class" => "align_center", "colspan" => 2, "width" => 200));
| $table->construct_header($lang->controls, array("class" => "align_center", "width" => 200));
|
$query = $db->query(" SELECT j.*, u.username
| $query = $db->query(" SELECT j.*, u.username
|
Zeile 288 | Zeile 300 |
---|
$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'));
|
$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'));
|
$table->construct_cell("<a href=\"index.php?module=user-groups&action=approve_join_request&rid={$request['rid']}\">{$lang->approve}</a>", array("class" => "align_center")); $table->construct_cell("<a href=\"index.php?module=user-groups&action=deny_join_request&rid={$request['rid']}\">{$lang->deny}</a>", 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&rid={$request['rid']}&my_post_key={$mybb->post_code}"); $popup->add_item($lang->deny, "index.php?module=user-groups&action=deny_join_request&rid={$request['rid']}&my_post_key={$mybb->post_code}"); $table->construct_cell($popup->fetch(), array('class' => "align_center"));
|
$table->construct_row(); }
| $table->construct_row(); }
|