Zeile 27 | Zeile 27 |
---|
if($mybb->input['action'] == "activate" && $mybb->request_method == "post") { $plugins->run_hooks("admin_user_awaiting_activation_activate");
|
if($mybb->input['action'] == "activate" && $mybb->request_method == "post") { $plugins->run_hooks("admin_user_awaiting_activation_activate");
|
| if(!is_array($mybb->input['user'])) { $mybb->input['user'] = array(); }
|
$mybb->input['user'] = array_map('intval', $mybb->input['user']); $user_ids = implode(", ", $mybb->input['user']);
| $mybb->input['user'] = array_map('intval', $mybb->input['user']); $user_ids = implode(", ", $mybb->input['user']);
|
Zeile 93 | Zeile 98 |
---|
$db->update_query("users", $updated_user, "uid='{$user['uid']}'");
$message = $lang->sprintf($lang->email_adminactivateaccount, $user['username'], $mybb->settings['bbname'], $mybb->settings['bburl']); my_mail($user['email'], $lang->sprintf($lang->emailsubject_activateaccount, $mybb->settings['bbname']), $message);
|
$db->update_query("users", $updated_user, "uid='{$user['uid']}'");
$message = $lang->sprintf($lang->email_adminactivateaccount, $user['username'], $mybb->settings['bbname'], $mybb->settings['bburl']); my_mail($user['email'], $lang->sprintf($lang->emailsubject_activateaccount, $mybb->settings['bbname']), $message);
|
}
$cache->update_awaitingactivation();
| }
|
|
|
$plugins->run_hooks("admin_user_awaiting_activation_activate_commit");
| $cache->update_awaitingactivation();
$plugins->run_hooks("admin_user_awaiting_activation_activate_commit");
|
// Log admin action log_admin_action('activated', $num_activated);
| // Log admin action log_admin_action('activated', $num_activated);
|
Zeile 110 | Zeile 115 |
---|
if(!$mybb->input['action']) { $plugins->run_hooks("admin_user_awaiting_activation_start");
|
if(!$mybb->input['action']) { $plugins->run_hooks("admin_user_awaiting_activation_start");
|
| $query = $db->simple_select("users", "COUNT(uid) AS users", "usergroup='5'"); $total_rows = $db->fetch_field($query, "users");
|
$per_page = 20;
| $per_page = 20;
|
Zeile 117 | Zeile 125 |
---|
{ $mybb->input['page'] = $mybb->get_input('page', MyBB::INPUT_INT); $start = ($mybb->input['page']*$per_page)-$per_page;
|
{ $mybb->input['page'] = $mybb->get_input('page', MyBB::INPUT_INT); $start = ($mybb->input['page']*$per_page)-$per_page;
|
| $pages = ceil($total_rows / $per_page); if($mybb->input['page'] > $pages) { $mybb->input['page'] = 1; $start = 0; }
|
} else {
| } else {
|
Zeile 161 | Zeile 175 |
---|
$user['type'] = $lang->email_activation; } elseif($user['coppauser'] == 1)
|
$user['type'] = $lang->email_activation; } elseif($user['coppauser'] == 1)
|
{
| {
|
$user['type'] = $lang->admin_activation_coppa; } else
| $user['type'] = $lang->admin_activation_coppa; } else
|
Zeile 203 | Zeile 217 |
---|
}
$form->end();
|
}
$form->end();
|
$query = $db->simple_select("users", "COUNT(uid) AS users", "usergroup='5'"); $total_rows = $db->fetch_field($query, "users");
| |
echo "<br />".draw_admin_pagination($mybb->input['page'], $per_page, $total_rows, "index.php?module=user-awaiting_activation&page={page}");
| echo "<br />".draw_admin_pagination($mybb->input['page'], $per_page, $total_rows, "index.php?module=user-awaiting_activation&page={page}");
|