Vergleich admin/modules/user/awaiting_activation.php - 1.8.9 - 1.8.18

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 69Zeile 69
	}
else // Activate selected user(s)
{

	}
else // Activate selected user(s)
{

		$query = $db->simple_select("users", "uid, usergroup, coppauser", "uid IN ({$user_ids})");

		$query = $db->simple_select("users", "uid, username, email, usergroup, coppauser", "uid IN ({$user_ids})");

		while($user = $db->fetch_array($query))
{
++$num_activated;

		while($user = $db->fetch_array($query))
{
++$num_activated;

Zeile 91Zeile 91
			}

$db->update_query("users", $updated_user, "uid='{$user['uid']}'");

			}

$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();

		}

$cache->update_awaitingactivation();

Zeile 108Zeile 110
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 115Zeile 120
	{
$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 162Zeile 173
		{
$user['type'] = $lang->admin_activation_coppa;
}

		{
$user['type'] = $lang->admin_activation_coppa;
}

		else
{
$user['type'] = $lang->administrator_activation;
}

		else
{
$user['type'] = $lang->administrator_activation;
}


if(empty($user['regip']))


if(empty($user['regip']))

		{

		{

			$user['regip'] = $lang->na;

			$user['regip'] = $lang->na;

		}

		}

		else
{
$user['regip'] = my_inet_ntop($db->unescape_binary($user['regip']));
}

		else
{
$user['regip'] = my_inet_ntop($db->unescape_binary($user['regip']));
}





		$table->construct_cell($form->generate_check_box("user[{$user['uid']}]", $user['uid'], ''));
$table->construct_cell($user['profilelink']);
$table->construct_cell($user['regdate'], array("class" => "align_center"));

		$table->construct_cell($form->generate_check_box("user[{$user['uid']}]", $user['uid'], ''));
$table->construct_cell($user['profilelink']);
$table->construct_cell($user['regdate'], array("class" => "align_center"));

Zeile 201Zeile 212
	}

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