Vergleich online.php - 1.2.2 - 1.2.14

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 3Zeile 3
 * MyBB 1.2
* Copyright � 2006 MyBB Group, All Rights Reserved
*

 * MyBB 1.2
* Copyright � 2006 MyBB Group, All Rights Reserved
*

 * Website: http://www.mybboard.com
* License: http://www.mybboard.com/eula.html

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/eula.html

 *

 *

 * $Id: online.php 2312 2006-10-02 02:34:49Z Tikitiki $

 * $Id: online.php 3595 2008-01-09 00:10:57Z Tikitiki $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 305Zeile 305

function show($user)
{


function show($user)
{

	global $threads, $forums, $forums_linkto, $posts, $events, $members, $theme, $mybb, $onlinerows, $templates, $lang, $session;

	global $threads, $forums, $forums_linkto, $posts, $events, $members, $theme, $mybb, $onlinerows, $templates, $lang, $session, $attachments;


switch($user['activity'])
{


switch($user['activity'])
{

Zeile 322Zeile 322
			break;
// attachment.php actions
case "attachment":

			break;
// attachment.php actions
case "attachment":

			$aid = $posts[$user['aid']];
$pid = $attachments[$aid];

			$pid = $attachments[$user['aid']];


			$tid = $posts[$pid];
if($threads[$tid])
{

			$tid = $posts[$pid];
if($threads[$tid])
{

				$locationname = sprintf($lang->viewing_attachment2, $tid, $threads[$tid]);

				$locationname = sprintf($lang->viewing_attachment2, $user['aid'], $threads[$tid]);

			}
else
{

			}
else
{

Zeile 380Zeile 379
		case "index":
$locationname = sprintf($lang->viewing_index, $mybb->settings['bbname']);
break;

		case "index":
$locationname = sprintf($lang->viewing_index, $mybb->settings['bbname']);
break;

 
		// managegroup.php functions 
case "managegroup":
$locationname = $lang->managing_group;
break;

		// member.php functions
case "member_activate":
$locationname = $lang->activating_account;

		// member.php functions
case "member_activate":
$locationname = $lang->activating_account;

Zeile 399Zeile 402
			break;
case "member":
case "member_login":

			break;
case "member":
case "member_login":

			$locationname = $lang->logging_in;









			// Guest or member?
if($mybb->user['uid'] == 0)
{
$locationname = $lang->logging_in;
}
else
{
$locationname = $lang->logging_in_plain;
}

			break;
case "member_logout":
$locationname = $lang->logging_out;

			break;
case "member_logout":
$locationname = $lang->logging_out;

Zeile 458Zeile 469
			if($user['pid'])
{
$user['tid'] = $posts[$user['pid']];

			if($user['pid'])
{
$user['tid'] = $posts[$user['pid']];

			}
if($threads[$user['tid']])
{

			}
if($threads[$user['tid']])
{

				$locationname = sprintf($lang->replying_thread2, $user['tid'], $threads[$user['tid']]);
}
else
{
$locationname = $lang->replying_thread;

				$locationname = sprintf($lang->replying_thread2, $user['tid'], $threads[$user['tid']]);
}
else
{
$locationname = $lang->replying_thread;

			}
break;

			}
break;

		// newthread.php functions
case "newthread":
if($forums[$user['fid']])

		// newthread.php functions
case "newthread":
if($forums[$user['fid']])

Zeile 482Zeile 493
		// online.php functions
case "wol":
$locationname = $lang->viewing_wol;

		// online.php functions
case "wol":
$locationname = $lang->viewing_wol;

			break;

			break;

		case "woltoday":
$locationname = $lang->viewing_woltoday;
break;
// polls.php functions
case "newpoll":
$locationname = $lang->creating_poll;

		case "woltoday":
$locationname = $lang->viewing_woltoday;
break;
// polls.php functions
case "newpoll":
$locationname = $lang->creating_poll;

			break;

			break;

		case "editpoll":
$locationname = $lang->editing_poll;
break;

		case "editpoll":
$locationname = $lang->editing_poll;
break;

Zeile 512Zeile 523
			break;
case "private_folders":
$locationname = $lang->editing_pmfolders;

			break;
case "private_folders":
$locationname = $lang->editing_pmfolders;

			break;

			break;

		case "private":
$locationname = $lang->using_pmsystem;
break;
/* Ratethread functions */
case "ratethread":
$locationname = $lang->rating_thread;

		case "private":
$locationname = $lang->using_pmsystem;
break;
/* Ratethread functions */
case "ratethread":
$locationname = $lang->rating_thread;

			break;

			break;

		// report.php functions
case "report":
$locationname = $lang->reporting_post;

		// report.php functions
case "report":
$locationname = $lang->reporting_post;

Zeile 573Zeile 584
			break;
case "usercp_notepad":
$locationname = $lang->editing_pad;

			break;
case "usercp_notepad":
$locationname = $lang->editing_pad;

 
			break;
case "usercp_password":
$location_name = $lang->editing_password;

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

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

Zeile 586Zeile 600
		case "portal":
$locationname = $lang->viewing_portal;
break;

		case "portal":
$locationname = $lang->viewing_portal;
break;

	}





		// sendthread.php functions
case "sendthread":
$locationname = $lang->sending_thread;
break;
}

	if($user['nopermission'] == 1)
{
$locationname = $lang->viewing_noperms;
}
if(!$locationname)

	if($user['nopermission'] == 1)
{
$locationname = $lang->viewing_noperms;
}
if(!$locationname)

	{

	{

		$locationname = sprintf($lang->unknown_location, $user['location']);
}


		$locationname = sprintf($lang->unknown_location, $user['location']);
}


Zeile 619Zeile 637
	else
{
$onlinename = format_name($lang->guest, 1);

	else
{
$onlinename = format_name($lang->guest, 1);

	}

	}

	$onlinetime = my_date($mybb->settings['timeformat'], $user['time']);
if($mybb->usergroup['canviewonlineips'] == "yes")
{

	$onlinetime = my_date($mybb->settings['timeformat'], $user['time']);
if($mybb->usergroup['canviewonlineips'] == "yes")
{

Zeile 634Zeile 652

function what($user)
{


function what($user)
{

	global $mybb, $theme, $fidsql, $tidsql, $pidsql, $eidsql, $uidsql;


	global $mybb, $theme, $fidsql, $tidsql, $pidsql, $eidsql, $uidsql, $aidsql;


	$splitloc = explode(".php", $user['location']);
if($splitloc[0] == $user['location'])
{
$filename = '';

	$splitloc = explode(".php", $user['location']);
if($splitloc[0] == $user['location'])
{
$filename = '';

	}

	}

	else
{
$filename = my_substr($splitloc[0], -strpos(strrev($splitloc[0]), "/"));

	else
{
$filename = my_substr($splitloc[0], -strpos(strrev($splitloc[0]), "/"));

Zeile 699Zeile 718
			$user['activity'] = "editpost";
break;
case "forumdisplay":

			$user['activity'] = "editpost";
break;
case "forumdisplay":

			if(is_numeric($parameters['fid']))

			if(is_numeric($parameters['fid']))

			{
$fidsql .= ",$parameters[fid]";
}
$user['activity'] = "forumdisplay";
$user['fid'] = $parameters['fid'];

			{
$fidsql .= ",$parameters[fid]";
}
$user['activity'] = "forumdisplay";
$user['fid'] = $parameters['fid'];

 
			break;
case "managegroup":
$user['activity'] = "managegroup";

			break;
case "index":
case '':

			break;
case "index":
case '':

Zeile 714Zeile 736
			if($parameters['action'] == "activate")
{
$user['activity'] = "member_activate";

			if($parameters['action'] == "activate")
{
$user['activity'] = "member_activate";

			}

			}

			elseif($parameters['action'] == "register" || $parameters['action'] == "do_register")

			elseif($parameters['action'] == "register" || $parameters['action'] == "do_register")

			{

			{

				$user['activity'] = "member_register";
}
elseif($parameters['action'] == "login" || $parameters['action'] == "do_login")
{
$user['activity'] = "member_login";

				$user['activity'] = "member_register";
}
elseif($parameters['action'] == "login" || $parameters['action'] == "do_login")
{
$user['activity'] = "member_login";

			}

			}

			elseif($parameters['action'] == "logout")
{
$user['activity'] = "member_logout";

			elseif($parameters['action'] == "logout")
{
$user['activity'] = "member_logout";

Zeile 751Zeile 773
			elseif($parameters['action'] == "lostpw" || $parameters['action'] == "do_lostpw" || $parameters['action'] == "resetpassword")
{
$user['activity'] = "member_lostpw";

			elseif($parameters['action'] == "lostpw" || $parameters['action'] == "do_lostpw" || $parameters['action'] == "resetpassword")
{
$user['activity'] = "member_lostpw";

			}

			}

			else
{
$user['activity'] = "member";
}
break;
case "memberlist":

			else
{
$user['activity'] = "member";
}
break;
case "memberlist":

			$user['activity'] = "memberlist";

			$user['activity'] = "memberlist";

			break;
case "misc":
$accepted_parameters = array("markread", "help", "buddypopup", "smilies", "syndication", "imcenter");
if($parameters['action'] == "whoposted")

			break;
case "misc":
$accepted_parameters = array("markread", "help", "buddypopup", "smilies", "syndication", "imcenter");
if($parameters['action'] == "whoposted")

			{
if(is_numeric($parameters['tid']))
{

			{
if(is_numeric($parameters['tid']))
{

					$tidsql .= ",$parameters[tid]";
}
$user['activity'] = "misc_whoposted";

					$tidsql .= ",$parameters[tid]";
}
$user['activity'] = "misc_whoposted";

Zeile 779Zeile 801
			else
{
$user['activity'] = "misc";

			else
{
$user['activity'] = "misc";

			}
break;

			}
break;

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

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

Zeile 817Zeile 839
			else
{
$user['activity'] = "wol";

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

			}
break;

			}
break;

		case "polls":
// Make the "do" parts the same as the other one.
if($parameters['action'] == "do_newpoll")

		case "polls":
// Make the "do" parts the same as the other one.
if($parameters['action'] == "do_newpoll")

Zeile 826Zeile 848
				$user['activity'] = "newpoll";
}
elseif($parameters['action'] == "do_editpoll")

				$user['activity'] = "newpoll";
}
elseif($parameters['action'] == "do_editpoll")

			{

			{

				$user['activity'] = "editpoll";

				$user['activity'] = "editpoll";

			}

			}

			else
{
$user['activity'] = $parameters['action'];

			else
{
$user['activity'] = $parameters['action'];

			}
break;

			}
break;

		case "printthread":
if(is_numeric($parameters['tid']))
{

		case "printthread":
if(is_numeric($parameters['tid']))
{

Zeile 855Zeile 877
				$user['activity'] = "private_folders";
}
else

				$user['activity'] = "private_folders";
}
else

			{

			{

				$user['activity'] = "private";
}
break;

				$user['activity'] = "private";
}
break;

Zeile 870Zeile 892
			break;
case "search":
$user['activity'] = "search";

			break;
case "search":
$user['activity'] = "search";

			break;

			break;

		case "sendthread":
if(is_numeric($parameters['tid']))
{

		case "sendthread":
if(is_numeric($parameters['tid']))
{

Zeile 878Zeile 900
			}
$user['activity'] = "sendthread";
$user['tid'] = $parameters['tid'];

			}
$user['activity'] = "sendthread";
$user['tid'] = $parameters['tid'];

 
			break;

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

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