Zeile 128 | Zeile 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 159 | Zeile 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 238 | Zeile 238 |
---|
$num_requests = $db->fetch_field($query, "num_requests");
$per_page = 20;
|
$num_requests = $db->fetch_field($query, "num_requests");
$per_page = 20;
|
if($mybb->input['page'] > 0)
| $pagenum = $mybb->get_input('page', MyBB::INPUT_INT); if($pagenum)
|
{
|
{
|
$current_page = $mybb->get_input('page', MyBB::INPUT_INT); $start = ($current_page-1)*$per_page; $pages = $num_requests / $per_page; $pages = ceil($pages); if($current_page > $pages)
| $start = ($pagenum - 1) * $per_page; $pages = ceil($num_requests / $per_page); if($pagenum > $pages)
|
{ $start = 0;
|
{ $start = 0;
|
$current_page = 1;
| $pagenum = 1;
|
} } else { $start = 0;
|
} } else { $start = 0;
|
$current_page = 1;
| $pagenum = 1;
|
}
// Do we need to construct the pagination? $pagination = ''; if($num_requests > $per_page) {
|
}
// Do we need to construct the pagination? $pagination = ''; if($num_requests > $per_page) {
|
$pagination = draw_admin_pagination($page, $per_page, $num_requests, "index.php?module=user-groups&action=join_requests&gid={$group['gid']}");
| $pagination = draw_admin_pagination($pagenum, $per_page, $num_requests, "index.php?module=user-groups&action=join_requests&gid={$group['gid']}");
|
echo $pagination; }
| echo $pagination; }
|