Vergleich admin/modules/user/awaiting_activation.php - 1.8.16 - 1.8.30

  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 39Zeile 44

$num_activated = $num_deleted = 0;
$users_to_delete = array();


$num_activated = $num_deleted = 0;
$users_to_delete = array();

	if($mybb->input['delete']) // Delete selected user(s)

	if(!empty($mybb->input['delete'])) // Delete selected user(s)

	{
require_once MYBB_ROOT.'inc/datahandlers/user.php';
$userhandler = new UserDataHandler('delete');

	{
require_once MYBB_ROOT.'inc/datahandlers/user.php';
$userhandler = new UserDataHandler('delete');

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");

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;


	if($mybb->input['page'] && $mybb->input['page'] > 1)



	$mybb->input['page'] = $mybb->get_input('page', MyBB::INPUT_INT);

if($mybb->input['page'] > 1)

	{

	{

		$mybb->input['page'] = $mybb->get_input('page', MyBB::INPUT_INT);

		$mybb->input['page'] = $mybb->input['page'];

		$start = ($mybb->input['page']*$per_page)-$per_page;

		$start = ($mybb->input['page']*$per_page)-$per_page;

	}
else







		$pages = ceil($total_rows / $per_page);
if($mybb->input['page'] > $pages)
{
$mybb->input['page'] = 1;
$start = 0;
}
}
else

	{
$mybb->input['page'] = 1;
$start = 0;

	{
$mybb->input['page'] = 1;
$start = 0;

Zeile 203Zeile 219
	}

$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}");