Vergleich inc/functions_online.php - 1.8.0 - 1.8.7

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 13Zeile 13
/**
* Fetch a users activity and any corresponding details from their location.
*

/**
* Fetch a users activity and any corresponding details from their location.
*

 * @param string The location (URL) of the user.


 * @param string $location The location (URL) of the user.
* @param bool $nopermission

 * @return array Array of location and activity information
*/
function fetch_wol_activity($location, $nopermission=false)

 * @return array Array of location and activity information
*/
function fetch_wol_activity($location, $nopermission=false)

Zeile 566Zeile 567
/**
* Builds a friendly named Who's Online location from an "activity" and array of user data. Assumes fetch_wol_activity has already been called.
*

/**
* Builds a friendly named Who's Online location from an "activity" and array of user data. Assumes fetch_wol_activity has already been called.
*

 * @param array Array containing activity and essential IDs.

 * @param array $user_activity Array containing activity and essential IDs.

 * @return string Location name for the activity being performed.
*/
function build_friendly_wol_location($user_activity)

 * @return string Location name for the activity being performed.
*/
function build_friendly_wol_location($user_activity)

Zeile 578Zeile 579
	$unviewableforums = get_unviewable_forums();
$inactiveforums = get_inactive_forums();
$fidnot = '';

	$unviewableforums = get_unviewable_forums();
$inactiveforums = get_inactive_forums();
$fidnot = '';

 
	$unviewablefids = $inactivefids = array();

	if($unviewableforums)
{
$fidnot = " AND fid NOT IN ($unviewableforums)";

	if($unviewableforums)
{
$fidnot = " AND fid NOT IN ($unviewableforums)";

 
		$unviewablefids = explode(',', $unviewableforums);

	}
if($inactiveforums)
{
$fidnot .= " AND fid NOT IN ($inactiveforums)";

	}
if($inactiveforums)
{
$fidnot .= " AND fid NOT IN ($inactiveforums)";

 
		$inactivefids = explode(',', $inactiveforums);

	}

// Fetch any users

	}

// Fetch any users

Zeile 686Zeile 690
	// Fetch any forums
if(!is_array($forums) && count($fid_list) > 0)
{

	// Fetch any forums
if(!is_array($forums) && count($fid_list) > 0)
{

		if($fidnot)
{
$fidnot = explode(',', str_replace('\'', '', (string)$unviewableforums).$inactiveforums);
}

		$fidnot = array_merge($unviewablefids, $inactivefids);





foreach($forum_cache as $fid => $forum)
{


foreach($forum_cache as $fid => $forum)
{

			if(in_array($fid, $fid_list) && (!$fidnot || is_array($fidnot) && !in_array($fid, $fidnot)))

			if(in_array($fid, $fid_list) && !in_array($fid, $fidnot))

			{
$forums[$fid] = $forum['name'];
$forums_linkto[$fid] = $forum['linkto'];

			{
$forums[$fid] = $forum['name'];
$forums_linkto[$fid] = $forum['linkto'];

Zeile 1117Zeile 1118
/**
* Build a Who's Online row for a specific user
*

/**
* Build a Who's Online row for a specific user
*

 * @param array Array of user information including activity information

 * @param array $user Array of user information including activity information

 * @return string Formatted online row
*/
function build_wol_row($user)

 * @return string Formatted online row
*/
function build_wol_row($user)

Zeile 1177Zeile 1178
		$user_ip = $lookup = $user['ip'] = '';
}


		$user_ip = $lookup = $user['ip'] = '';
}


 
	$online_row = '';

	// And finally if we have permission to view this user, return the completed online row
if($user['invisible'] != 1 || $mybb->usergroup['canviewwolinvis'] == 1 || $user['uid'] == $mybb->user['uid'])
{

	// And finally if we have permission to view this user, return the completed online row
if($user['invisible'] != 1 || $mybb->usergroup['canviewwolinvis'] == 1 || $user['uid'] == $mybb->user['uid'])
{