Vergleich inc/tasks/userpruning.php - 1.6.0 - 1.6.1

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 79Zeile 79
		$db->delete_query("awaitingactivation", "uid IN({$uid_list})");
$query = $db->delete_query("users", "uid IN({$uid_list})");
$num_deleted = $db->affected_rows($query);

		$db->delete_query("awaitingactivation", "uid IN({$uid_list})");
$query = $db->delete_query("users", "uid IN({$uid_list})");
$num_deleted = $db->affected_rows($query);

 

// Remove any of the user(s) uploaded avatars
$query = $db->simple_select("users", "avatar", "uid IN ({$uid_list}) AND avatartype = 'upload'");
if($db->num_rows($query))
{
while($avatar = $db->fetch_field($query, "avatar"))
{
$avatar = substr($avatar, 2, -20);
@unlink(MYBB_ROOT.$avatar);
}
}


// Are we removing the posts/threads of a user?
if($mybb->settings['prunethreads'] == 1)


// Are we removing the posts/threads of a user?
if($mybb->settings['prunethreads'] == 1)