Vergleich inc/functions_online.php - 1.8.4 - 1.8.11

  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 160Zeile 161
			elseif($parameters['action'] == "profile")
{
$user_activity['activity'] = "member_profile";

			elseif($parameters['action'] == "profile")
{
$user_activity['activity'] = "member_profile";

 


				if(!isset($parameters['uid']))

				if(!isset($parameters['uid']))

				{

				{

					$parameters['uid'] = 0;

					$parameters['uid'] = 0;

				}

				}

				$parameters['uid'] = (int)$parameters['uid'];

				$parameters['uid'] = (int)$parameters['uid'];

 

if($parameters['uid'] == 0)
{
global $memprofile;

// $user is available in Who's Online but not in Member Profile, use $memprofile instead
if(!empty($user['uid']))
{
$parameters['uid'] = $user['uid'];
}
elseif(!empty($memprofile['uid']))
{
$parameters['uid'] = $memprofile['uid'];
}
}


				if($parameters['uid'] > 0)
{
$uid_list[$parameters['uid']] = $parameters['uid'];

				if($parameters['uid'] > 0)
{
$uid_list[$parameters['uid']] = $parameters['uid'];

Zeile 566Zeile 584
/**
* 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 599Zeile 617
			$query = $db->simple_select("users", "uid,username", "uid IN ($uid_sql)");
while($user = $db->fetch_array($query))
{

			$query = $db->simple_select("users", "uid,username", "uid IN ($uid_sql)");
while($user = $db->fetch_array($query))
{

				$usernames[$user['uid']] = $user['username'];

				$usernames[$user['uid']] = htmlspecialchars_uni($user['username']);

			}
}
else
{

			}
}
else
{

			$usernames[$mybb->user['uid']] = $mybb->user['username'];

			$usernames[$mybb->user['uid']] = htmlspecialchars_uni($mybb->user['username']);

		}
}


		}
}


Zeile 1117Zeile 1135
/**
* 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 1140Zeile 1158
				$invisible_mark = '';
}


				$invisible_mark = '';
}


			$user['username'] = format_name($user['username'], $user['usergroup'], $user['displaygroup']);

			$user['username'] = format_name(htmlspecialchars_uni($user['username']), $user['usergroup'], $user['displaygroup']);

			$online_name = build_profile_link($user['username'], $user['uid']).$invisible_mark;
}
}

			$online_name = build_profile_link($user['username'], $user['uid']).$invisible_mark;
}
}

Zeile 1177Zeile 1195
		$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'])
{