Vergleich inc/functions_online.php - 1.8.14 - 1.8.37

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 33Zeile 33
		$filename = my_substr($split_loc[0], -my_strpos(strrev($split_loc[0]), "/"));
}
$parameters = array();

		$filename = my_substr($split_loc[0], -my_strpos(strrev($split_loc[0]), "/"));
}
$parameters = array();

	if($split_loc[1])

	if(isset($split_loc[1]))

	{
$temp = explode("&", my_substr($split_loc[1], 1));
foreach($temp as $param)

	{
$temp = explode("&", my_substr($split_loc[1], 1));
foreach($temp as $param)

Zeile 218Zeile 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']))

Zeile 352Zeile 352
					}
}


					}
}


				if(!$user_activity['activity'])

				if(empty($user_activity['activity']))

				{
$user_activity['activity'] = "showresults";
}

				{
$user_activity['activity'] = "showresults";
}

Zeile 400Zeile 400
			$user_activity['activity'] = "report";
break;
case "reputation":

			$user_activity['activity'] = "report";
break;
case "reputation":

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

			if(!isset($parameters['uid']))
{
$parameters['uid'] = 0;

			if(!isset($parameters['uid']))
{
$parameters['uid'] = 0;

Zeile 516Zeile 520
			{
$user_activity['activity'] = "usercp_subscriptions";
}

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

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









			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")

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

			{
$user_activity['activity'] = "usercp_notepad";
}
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 570Zeile 568
			break;
default:
$user_activity['activity'] = "unknown";

			break;
default:
$user_activity['activity'] = "unknown";

			break;

			break;

	}

// Expects $location to be passed through already sanitized

	}

// Expects $location to be passed through already sanitized

Zeile 659Zeile 657
		{
$posts[$post['pid']] = $post['tid'];
$tid_list[] = $post['tid'];

		{
$posts[$post['pid']] = $post['tid'];
$tid_list[] = $post['tid'];

		}
}

		}
}


// Fetch any threads
if(!is_array($threads) && count($tid_list) > 0)


// Fetch any threads
if(!is_array($threads) && count($tid_list) > 0)

Zeile 840Zeile 838
			}
break;
case "member_logout":

			}
break;
case "member_logout":

			$location_name = $lang->logging_out;

			$location_name = $lang->logging_out;

			break;
case "member_emailuser":
$location_name = $lang->emailing_user;

			break;
case "member_emailuser":
$location_name = $lang->emailing_user;

Zeile 857Zeile 855
		// memberlist.php functions
case "memberlist":
$location_name = $lang->viewing_memberlist;

		// memberlist.php functions
case "memberlist":
$location_name = $lang->viewing_memberlist;

			break;

			break;

		// misc.php functions
case "misc_dstswitch":
$location_name = $lang->changing_dst;

		// misc.php functions
case "misc_dstswitch":
$location_name = $lang->changing_dst;

Zeile 874Zeile 872
			break;
case "misc_markread":
$location_name = $lang->sprintf($lang->marking_read, $mybb->post_code);

			break;
case "misc_markread":
$location_name = $lang->sprintf($lang->marking_read, $mybb->post_code);

			break;

			break;

		case "misc_help":
$location_name = $lang->viewing_helpdocs;

		case "misc_help":
$location_name = $lang->viewing_helpdocs;

			break;

			break;

		case "misc_buddypopup":
$location_name = $lang->viewing_buddylist;

		case "misc_buddypopup":
$location_name = $lang->viewing_buddylist;

			break;

			break;

		case "misc_smilies":
$location_name = $lang->viewing_smilies;

		case "misc_smilies":
$location_name = $lang->viewing_smilies;

			break;

			break;

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

		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 1088Zeile 1083
		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 1149Zeile 1144
		if($user['invisible'] != 1 || $mybb->usergroup['canviewwolinvis'] == 1 || $user['uid'] == $mybb->user['uid'])
{
// Append an invisible mark if the user is invisible

		if($user['invisible'] != 1 || $mybb->usergroup['canviewwolinvis'] == 1 || $user['uid'] == $mybb->user['uid'])
{
// Append an invisible mark if the user is invisible

			if($user['invisible'] == 1)

			if($user['invisible'] == 1 && $mybb->usergroup['canbeinvisible'] == 1)

			{
$invisible_mark = "*";
}

			{
$invisible_mark = "*";
}

Zeile 1173Zeile 1168
		$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']);