Vergleich inc/functions_online.php - 1.8.7 - 1.8.23

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 161Zeile 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'] = (int)$parameters['uid'];

					$parameters['uid'] = 0;
}
$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'];
}
$user_activity['uid'] = $parameters['uid'];

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

			}

			}

			elseif($parameters['action'] == "emailuser" || $parameters['action'] == "do_emailuser")
{
$user_activity['activity'] = "member_emailuser";

			elseif($parameters['action'] == "emailuser" || $parameters['action'] == "do_emailuser")
{
$user_activity['activity'] = "member_emailuser";

Zeile 201Zeile 218
			{
$parameters['action'] = '';
}

			{
$parameters['action'] = '';
}

			$accepted_parameters = array("markread", "help", "buddypopup", "smilies", "syndication", "imcenter", "dstswitch");

			$accepted_parameters = array("markread", "help", "buddypopup", "smilies", "syndication", "dstswitch");

			if($parameters['action'] == "whoposted")
{
if(!isset($parameters['tid']))

			if($parameters['action'] == "whoposted")
{
if(!isset($parameters['tid']))

				{

				{

					$parameters['tid'] = 0;
}
$parameters['tid'] = (int)$parameters['tid'];

					$parameters['tid'] = 0;
}
$parameters['tid'] = (int)$parameters['tid'];

Zeile 227Zeile 244
			break;
case "modcp":
if(!isset($parameters['action']))

			break;
case "modcp":
if(!isset($parameters['action']))

			{
$parameters['action'] = 0;

			{
$parameters['action'] = '';

			}

$accepted_parameters = array("modlogs", "announcements", "finduser", "warninglogs", "ipsearch");

			}

$accepted_parameters = array("modlogs", "announcements", "finduser", "warninglogs", "ipsearch");

Zeile 250Zeile 267
			$accepted_parameters['mod_queue'] = array("do_modqueue", "modqueue");
$accepted_parameters['editprofile'] = array("do_editprofile", "editprofile");
$accepted_parameters['banning'] = array("do_banuser", "banning", "liftban", "banuser");

			$accepted_parameters['mod_queue'] = array("do_modqueue", "modqueue");
$accepted_parameters['editprofile'] = array("do_editprofile", "editprofile");
$accepted_parameters['banning'] = array("do_banuser", "banning", "liftban", "banuser");





			foreach($accepted_parameters as $name => $actions)
{
if(in_array($parameters['action'], $actions))

			foreach($accepted_parameters as $name => $actions)
{
if(in_array($parameters['action'], $actions))

Zeile 423Zeile 440
			$user_activity['activity'] = "showteam";
break;
case "showthread":

			$user_activity['activity'] = "showteam";
break;
case "showthread":

			if(!isset($parameters['action']))
{
$parameters['action'] = 0;
}
if(!isset($parameters['pid']))

			if(!isset($parameters['action']))
{
$parameters['action'] = '';
}
if(!isset($parameters['pid']))

			{
$parameters['pid'] = 0;
}

			{
$parameters['pid'] = 0;
}

Zeile 437Zeile 454
				$pid_list[$parameters['pid']] = $parameters['pid'];
$user_activity['activity'] = "showpost";
$user_activity['pid'] = $parameters['pid'];

				$pid_list[$parameters['pid']] = $parameters['pid'];
$user_activity['activity'] = "showpost";
$user_activity['pid'] = $parameters['pid'];

			}

			}

			else
{
if(!isset($parameters['page']))

			else
{
if(!isset($parameters['page']))

Zeile 470Zeile 487
			if($parameters['action'] == "profile" || $parameters['action'] == "do_profile")
{
$user_activity['activity'] = "usercp_profile";

			if($parameters['action'] == "profile" || $parameters['action'] == "do_profile")
{
$user_activity['activity'] = "usercp_profile";

			}

			}

			elseif($parameters['action'] == "options" || $parameters['action'] == "do_options")
{
$user_activity['activity'] = "usercp_options";

			elseif($parameters['action'] == "options" || $parameters['action'] == "do_options")
{
$user_activity['activity'] = "usercp_options";

Zeile 492Zeile 509
				$user_activity['activity'] = "usercp_editlists";
}
elseif($parameters['action'] == "favorites")

				$user_activity['activity'] = "usercp_editlists";
}
elseif($parameters['action'] == "favorites")

			{

			{

				$user_activity['activity'] = "usercp_favorites";

				$user_activity['activity'] = "usercp_favorites";

			}

			}

			elseif($parameters['action'] == "subscriptions")

			elseif($parameters['action'] == "subscriptions")

			{

			{

				$user_activity['activity'] = "usercp_subscriptions";

				$user_activity['activity'] = "usercp_subscriptions";

 
			}
elseif($parameters['action'] == "addfavorite" || $parameters['action'] == "removefavorite" || $parameters['action'] == "removefavorites")
{
$user_activity['activity'] = "usercp_managefavorites";
}
else if($parameters['action'] == "addsubscription" || $parameters['action'] == "do_addsubscription" || $parameters['action'] == "removesubscription" || $parameters['action'] == "removesubscriptions")
{
$user_activity['activity'] = "usercp_managesubscriptions";

			}
elseif($parameters['action'] == "notepad" || $parameters['action'] == "do_notepad")
{

			}
elseif($parameters['action'] == "notepad" || $parameters['action'] == "do_notepad")
{

Zeile 506Zeile 531
			else
{
$user_activity['activity'] = "usercp";

			else
{
$user_activity['activity'] = "usercp";

			}
break;
case "usercp2":
if(!isset($parameters['action']))
{
$parameters['action'] = '';
}
if($parameters['action'] == "addfavorite" || $parameters['action'] == "removefavorite" || $parameters['action'] == "removefavorites")
{
$user_activity['activity'] = "usercp2_favorites";
}
else if($parameters['action'] == "addsubscription" || $parameters['action'] == "do_addsubscription" || $parameters['action'] == "removesubscription" || $parameters['action'] == "removesubscriptions")
{
$user_activity['activity'] = "usercp2_subscriptions";

 
			}
break;
case "portal":

			}
break;
case "portal":

Zeile 600Zeile 611
			$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']);
}
}


// Fetch any attachments
if(!is_array($attachments) && count($aid_list) > 0)


// Fetch any attachments
if(!is_array($attachments) && count($aid_list) > 0)

Zeile 869Zeile 880
			break;
case "misc_syndication":
$location_name = $lang->viewing_syndication;

			break;
case "misc_syndication":
$location_name = $lang->viewing_syndication;

			break;
case "misc_imcenter":
$location_name = $lang->viewing_imcenter;

 
			break;
// modcp.php functions
case "modcp_modlogs":

			break;
// modcp.php functions
case "modcp_modlogs":

Zeile 1071Zeile 1079
		case "usercp":
$location_name = $lang->user_cp;
break;

		case "usercp":
$location_name = $lang->user_cp;
break;

		case "usercp2_favorites":

		case "usercp_managefavorites":

			$location_name = $lang->managing_favorites;
break;

			$location_name = $lang->managing_favorites;
break;

		case "usercp2_subscriptions":

		case "usercp_managesubscriptions":

			$location_name = $lang->managing_subscriptions;
break;
case "portal":

			$location_name = $lang->managing_subscriptions;
break;
case "portal":

Zeile 1141Zeile 1149
				$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 1156Zeile 1164
		$online_name = format_name($lang->guest, 1);
}


		$online_name = format_name($lang->guest, 1);
}


	$online_time = my_date($mybb->settings['timeformat'], $user['time']);

	$online_time = my_date('relative', $user['time']);


// Fetch the location name for this users activity
$location = build_friendly_wol_location($user['activity']);


// Fetch the location name for this users activity
$location = build_friendly_wol_location($user['activity']);