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

  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$

 */

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)

Zeile 104Zeile 115
		{
// We're just updating the UID
$db->update_query("posts", array('uid' => 0), "uid IN({$uid_list})");

		{
// We're just updating the UID
$db->update_query("posts", array('uid' => 0), "uid IN({$uid_list})");

 
			$db->update_query("threads", array('uid' => 0), "uid IN({$uid_list})");

		}

// Update forum stats

		}

// Update forum stats