Vergleich admin/modules/user/awaiting_activation.php - 1.8.19 - 1.8.28

  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 60Zeile 65
		}

$plugins->run_hooks("admin_user_awaiting_activation_activate_delete_commit");

		}

$plugins->run_hooks("admin_user_awaiting_activation_activate_delete_commit");


// Log admin action


// Log admin action

		log_admin_action('deleted', $num_deleted);

flash_message($lang->success_users_deleted, 'success');

		log_admin_action('deleted', $num_deleted);

flash_message($lang->success_users_deleted, 'success');

Zeile 82Zeile 87
			else
{
$db->delete_query("awaitingactivation", "uid='{$user['uid']}'");

			else
{
$db->delete_query("awaitingactivation", "uid='{$user['uid']}'");

			}

			}


// Move out of awaiting activation if they're in it.
if($user['usergroup'] == 5)


// Move out of awaiting activation if they're in it.
if($user['usergroup'] == 5)

Zeile 116Zeile 121

$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;
$pages = ceil($total_rows / $per_page);
if($mybb->input['page'] > $pages)

		$start = ($mybb->input['page']*$per_page)-$per_page;
$pages = ceil($total_rows / $per_page);
if($mybb->input['page'] > $pages)