Vergleich online.php - 1.2.1 - 1.2.13

  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 2228 2006-09-17 19:49:10Z Tikitiki $

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

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 209Zeile 209
	}
if($tidsql)
{

	}
if($tidsql)
{

		$query = $db->simple_select(TABLE_PREFIX."threads", "fid,tid,subject", "tid IN(0$tidsql) $fidnot");

		$query = $db->simple_select(TABLE_PREFIX."threads", "fid,tid,subject,visible", "tid IN(0$tidsql) $fidnot");

		while($thread = $db->fetch_array($query))
{

		while($thread = $db->fetch_array($query))
{

			$threads[$thread['tid']] = htmlspecialchars_uni($parser->parse_badwords($thread['subject']));
$fidsql .= ",$thread[fid]";




			if(is_moderator($thread['fid']) != "no" || $thread['visible'] != '0')
{
$threads[$thread['tid']] = htmlspecialchars_uni($parser->parse_badwords($thread['subject']));
$fidsql .= ",$thread[fid]";
}

		}
}
if($fidsql)

		}
}
if($fidsql)

Zeile 223Zeile 226
		{
$forums[$forum['fid']] = $forum['name'];
$forums_linkto[$forum['fid']] = $forum['linkto'];

		{
$forums[$forum['fid']] = $forum['name'];
$forums_linkto[$forum['fid']] = $forum['linkto'];

		}
}

		}
}

	if($eidsql)
{
$query = $db->simple_select(TABLE_PREFIX."events", "eid,subject", "eid IN (0$eidsql)");

	if($eidsql)
{
$query = $db->simple_select(TABLE_PREFIX."events", "eid,subject", "eid IN (0$eidsql)");

Zeile 244Zeile 247
		reset($users);
}
if(is_array($guests))

		reset($users);
}
if(is_array($guests))

	{

	{

		reset($guests);
foreach($guests as $key => $val)
{

		reset($guests);
foreach($guests as $key => $val)
{

Zeile 264Zeile 267
	if($usercount != 1)
{
$userbit = $lang->online_online_plural;

	if($usercount != 1)
{
$userbit = $lang->online_online_plural;

	}
else

	}
else

	{
$userbit = $lang->online_online_singular;
}

	{
$userbit = $lang->online_online_singular;
}

Zeile 295Zeile 298
	}
$lang->online_count = sprintf($lang->online_count, my_number_format($usercount), $userbit, $mybb->settings['wolcutoffmins'], my_number_format($membercount), $memberbit, my_number_format($anoncount), $anonbit, my_number_format($guestcount), $guestbit);
$plugins->run_hooks("online_end");

	}
$lang->online_count = sprintf($lang->online_count, my_number_format($usercount), $userbit, $mybb->settings['wolcutoffmins'], my_number_format($membercount), $memberbit, my_number_format($anoncount), $anonbit, my_number_format($guestcount), $guestbit);
$plugins->run_hooks("online_end");





	eval("\$online = \"".$templates->get("online")."\";");
output_page($online);
}

function show($user)
{

	eval("\$online = \"".$templates->get("online")."\";");
output_page($online);
}

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 319Zeile 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 377Zeile 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 396Zeile 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 422Zeile 436
			if($threads[$user['tid']])
{
$locationname = sprintf($lang->viewing_whoposted2, $user['tid'], $threads[$user['tid']]);

			if($threads[$user['tid']])
{
$locationname = sprintf($lang->viewing_whoposted2, $user['tid'], $threads[$user['tid']]);

			}

			}

			else
{
$locationname = $lang->viewing_whoposted;

			else
{
$locationname = $lang->viewing_whoposted;

Zeile 430Zeile 444
			break;
case "misc_markread":
$locationname = $lang->marking_read;

			break;
case "misc_markread":
$locationname = $lang->marking_read;

			break;

			break;

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

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

			break;

			break;

		case "misc_buddypopup":
$locationname = $lang->viewing_buddylist;
break;
case "misc_smilies":
$locationname = $lang->viewing_smilies;

		case "misc_buddypopup":
$locationname = $lang->viewing_buddylist;
break;
case "misc_smilies":
$locationname = $lang->viewing_smilies;

			break;

			break;

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

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

Zeile 463Zeile 477
			else
{
$locationname = $lang->replying_thread;

			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 570Zeile 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;

			break;

			break;

		case "usercp2_favorites":
$locationname = $lang->managing_favorites;

		case "usercp2_favorites":
$locationname = $lang->managing_favorites;

			break;

			break;

		case "usercp2_subscriptions":
$locationname = $lang->managing_subscriptions;

		case "usercp2_subscriptions":
$locationname = $lang->managing_subscriptions;

			break;

			break;

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

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

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

			break;
}
if($user['nopermission'] == 1)

			break;
}
if($user['nopermission'] == 1)

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

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

Zeile 702Zeile 724
			}
$user['activity'] = "forumdisplay";
$user['fid'] = $parameters['fid'];

			}
$user['activity'] = "forumdisplay";
$user['fid'] = $parameters['fid'];

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

			break;
case "index":
case '':

			break;
case "index":
case '':

Zeile 711Zeile 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")
{
$user['activity'] = "member_register";

			elseif($parameters['action'] == "register" || $parameters['action'] == "do_register")
{
$user['activity'] = "member_register";

Zeile 875Zeile 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;