phpBB

Code Changes

File: includes/functions_user.php

  Unmodified   Added   Modified   Removed
Line 423Line 423
}

/**

}

/**

 * Remove User

 * Delete user(s) and their related data

 *

 *

 * @param string	$mode		Either 'retain' or 'remove'
* @param mixed $user_ids Either an array of integers or an integer
* @param bool $retain_username

 * @param string	$mode				Mode of posts deletion (retain|delete)
* @param mixed $user_ids Either an array of integers or an integer
* @param bool $retain_username True if username should be retained, false otherwise

 * @return bool
*/
function user_delete($mode, $user_ids, $retain_username = true)

 * @return bool
*/
function user_delete($mode, $user_ids, $retain_username = true)

Line 461Line 461
	}

/**

	}

/**

	* Event before a user is deleted

	 * Event before of the performing of the user(s) delete action

	*
* @event core.delete_user_before

	*
* @event core.delete_user_before

	* @var	string	mode		Mode of deletion (retain/delete posts)
* @var array user_ids IDs of the deleted user
* @var mixed retain_username True if username should be retained
* or false if not
* @var array user_rows Array containing data of the deleted users

	 * @var string	mode				Mode of posts deletion (retain|delete)
* @var array user_ids ID(s) of the user(s) bound to be deleted
* @var bool retain_username True if username should be retained, false otherwise
* @var array user_rows Array containing data of the user(s) bound to be deleted


	* @since 3.1.0-a1
* @changed 3.2.4-RC1 Added user_rows
*/

	* @since 3.1.0-a1
* @changed 3.2.4-RC1 Added user_rows
*/

Line 760Line 759
	$db->sql_query($sql);

// Clean the private messages tables from the user

	$db->sql_query($sql);

// Clean the private messages tables from the user

	if (!function_exists('phpbb_delete_user_pms'))

	if (!function_exists('phpbb_delete_users_pms'))

	{
include($phpbb_root_path . 'includes/functions_privmsgs.' . $phpEx);
}

	{
include($phpbb_root_path . 'includes/functions_privmsgs.' . $phpEx);
}

Line 772Line 771
	$db->sql_transaction('commit');

/**

	$db->sql_transaction('commit');

/**

	* Event after a user is deleted

	 * Event after the user(s) delete action has been performed

	*
* @event core.delete_user_after

	*
* @event core.delete_user_after

	* @var	string	mode		Mode of deletion (retain/delete posts)
* @var array user_ids IDs of the deleted user
* @var mixed retain_username True if username should be retained
* or false if not
* @var array user_rows Array containing data of the deleted users

	 * @var string	mode				Mode of posts deletion (retain|delete)
* @var array user_ids ID(s) of the deleted user(s)
* @var bool retain_username True if username should be retained, false otherwise
* @var array user_rows Array containing data of the deleted user(s)


	* @since 3.1.0-a1
* @changed 3.2.2-RC1 Added user_rows
*/

	* @since 3.1.0-a1
* @changed 3.2.2-RC1 Added user_rows
*/

Line 1045Line 1043
					$banlist_ary[] = (int) $row['user_id'];
}
while ($row = $db->sql_fetchrow($result));

					$banlist_ary[] = (int) $row['user_id'];
}
while ($row = $db->sql_fetchrow($result));

 

$db->sql_freeresult($result);

			}
else
{
$db->sql_freeresult($result);

			}
else
{
$db->sql_freeresult($result);

 


				trigger_error('NO_USERS', E_USER_WARNING);
}

				trigger_error('NO_USERS', E_USER_WARNING);
}

			$db->sql_freeresult($result);

 
		break;

case 'ip':

		break;

case 'ip':

Line 1467Line 1467
	if (($fsk = @fsockopen($whois_host, 43)))
{
// CRLF as per RFC3912

	if (($fsk = @fsockopen($whois_host, 43)))
{
// CRLF as per RFC3912

		fputs($fsk, "$ip\r\n");


		// Z to limit the query to all possible flags (whois.arin.net)
fputs($fsk, "z $ip\r\n");

		while (!feof($fsk))
{
$ipwhois .= fgets($fsk, 1024);

		while (!feof($fsk))
{
$ipwhois .= fgets($fsk, 1024);