Vergleich inc/functions_online.php - 1.8.12 - 1.8.25

  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 245Zeile 245
		case "modcp":
if(!isset($parameters['action']))
{

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

				$parameters['action'] = 0;

				$parameters['action'] = '';

			}

			}





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

foreach($accepted_parameters as $action)

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

foreach($accepted_parameters as $action)

Zeile 255Zeile 255
				if($parameters['action'] == $action)
{
$user_activity['activity'] = "modcp_".$action;

				if($parameters['action'] == $action)
{
$user_activity['activity'] = "modcp_".$action;

					break;

					break;

				}
}


				}
}


Zeile 284Zeile 284
			break;
case "moderation":
$user_activity['activity'] = "moderation";

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

			break;

			break;

		case "newreply":
if(!isset($parameters['tid']))

		case "newreply":
if(!isset($parameters['tid']))

			{

			{

				$parameters['tid'] = 0;
}
$parameters['tid'] = (int)$parameters['tid'];
if($parameters['tid'] > 0)
{
$tid_list[$parameters['tid']] = $parameters['tid'];

				$parameters['tid'] = 0;
}
$parameters['tid'] = (int)$parameters['tid'];
if($parameters['tid'] > 0)
{
$tid_list[$parameters['tid']] = $parameters['tid'];

			}

			}

			$user_activity['activity'] = "newreply";
$user_activity['tid'] = $parameters['tid'];
break;

			$user_activity['activity'] = "newreply";
$user_activity['tid'] = $parameters['tid'];
break;

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

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

			{

			{

				$parameters['action'] = '';

				$parameters['action'] = '';

			}

			}

			if($parameters['action'] == "today")

			if($parameters['action'] == "today")

			{

			{

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

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

			}

			}

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

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

			}

			}

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

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

Zeile 442Zeile 442
		case "showthread":
if(!isset($parameters['action']))
{

		case "showthread":
if(!isset($parameters['action']))
{

				$parameters['action'] = 0;

				$parameters['action'] = '';

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

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

			}

			}

			$parameters['pid'] = (int)$parameters['pid'];
if($parameters['pid'] > 0 && $parameters['action'] == "showpost")
{

			$parameters['pid'] = (int)$parameters['pid'];
if($parameters['pid'] > 0 && $parameters['action'] == "showpost")
{

Zeile 456Zeile 456
				$user_activity['pid'] = $parameters['pid'];
}
else

				$user_activity['pid'] = $parameters['pid'];
}
else

			{

			{

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

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

Zeile 466Zeile 466
				if(!isset($parameters['tid']))
{
$parameters['tid'] = 0;

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

				}

				}

				$parameters['tid'] = (int)$parameters['tid'];
if($parameters['tid'] > 0)
{

				$parameters['tid'] = (int)$parameters['tid'];
if($parameters['tid'] > 0)
{

Zeile 475Zeile 475
				$user_activity['activity'] = "showthread";
$user_activity['tid'] = $parameters['tid'];
}

				$user_activity['activity'] = "showthread";
$user_activity['tid'] = $parameters['tid'];
}

			break;

			break;

		case "stats":
$user_activity['activity'] = "stats";
break;
case "usercp":

		case "stats":
$user_activity['activity'] = "stats";
break;
case "usercp":

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

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

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

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

			}

			}

			elseif($parameters['action'] == "options" || $parameters['action'] == "do_options")

			elseif($parameters['action'] == "options" || $parameters['action'] == "do_options")

			{

			{

				$user_activity['activity'] = "usercp_options";
}
elseif($parameters['action'] == "password" || $parameters['action'] == "do_password")

				$user_activity['activity'] = "usercp_options";
}
elseif($parameters['action'] == "password" || $parameters['action'] == "do_password")

			{

			{

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

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

			}

			}

			elseif($parameters['action'] == "editsig" || $parameters['action'] == "do_editsig")
{
$user_activity['activity'] = "usercp_editsig";

			elseif($parameters['action'] == "editsig" || $parameters['action'] == "do_editsig")
{
$user_activity['activity'] = "usercp_editsig";

			}

			}

			elseif($parameters['action'] == "avatar" || $parameters['action'] == "do_avatar")
{
$user_activity['activity'] = "usercp_avatar";

			elseif($parameters['action'] == "avatar" || $parameters['action'] == "do_avatar")
{
$user_activity['activity'] = "usercp_avatar";

Zeile 515Zeile 515
			elseif($parameters['action'] == "subscriptions")
{
$user_activity['activity'] = "usercp_subscriptions";

			elseif($parameters['action'] == "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")
{

				$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'] = "usercp_notepad";
}
else















			{

			{

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

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

			}
break;
case "portal":

			}
break;
case "portal":

Zeile 647Zeile 641
		{
$announcement_title = htmlspecialchars_uni($parser->parse_badwords($announcement['subject']));
$announcements[$announcement['aid']] = $announcement_title;

		{
$announcement_title = htmlspecialchars_uni($parser->parse_badwords($announcement['subject']));
$announcements[$announcement['aid']] = $announcement_title;

		}
}

		}
}


// Fetch any posts
if(!is_array($posts) && count($pid_list) > 0)


// Fetch any posts
if(!is_array($posts) && count($pid_list) > 0)

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