Vergleich inc/functions_online.php - 1.8.13 - 1.8.26

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
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 516Zeile 516
			{
$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 564
			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 653
		{
$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 834
			}
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 851
		// 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 868
			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 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 1173Zeile 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']);