Vergleich admin/modules/user/awaiting_activation.php - 1.8.13 - 1.8.22

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 27Zeile 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 93Zeile 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 110Zeile 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 117Zeile 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 161Zeile 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 203Zeile 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&amp;page={page}");



echo "<br />".draw_admin_pagination($mybb->input['page'], $per_page, $total_rows, "index.php?module=user-awaiting_activation&amp;page={page}");