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

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * $Id: userpruning.php 5016 2010-06-12 00:24:02Z RyanGordon $

 * $Id: userpruning.php 5297 2010-12-28 22:01:14Z Tomm $

 */

function task_userpruning($task)

 */

function task_userpruning($task)

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)