Zeile 6 | Zeile 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 5380 2011-02-21 12:04:43Z Tomm $
|
*/
function task_userpruning($task)
| */
function task_userpruning($task)
|
Zeile 79 | Zeile 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)
|