Vergleich inc/functions_online.php - 1.6.2 - 1.6.5

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * $Id: functions_online.php 5016 2010-06-12 00:24:02Z RyanGordon $

 * $Id: functions_online.php 5623 2011-10-01 02:46:09Z ralgith $

 */

$uid_list = $aid_list = $pid_list = $tid_list = $fid_list = $eid_list = array();

 */

$uid_list = $aid_list = $pid_list = $tid_list = $fid_list = $eid_list = array();

Zeile 191Zeile 191
			
$accepted_parameters = array();
$accepted_parameters['report'] = array("do_reports", "reports", "allreports");

			
$accepted_parameters = array();
$accepted_parameters['report'] = array("do_reports", "reports", "allreports");

			$accepted_parameters['new_annoucement'] = array("do_new_announcement", "new_announcement");

			$accepted_parameters['new_announcement'] = array("do_new_announcement", "new_announcement");

			$accepted_parameters['delete_announcement'] = array("do_delete_announcement", "delete_announcement");
$accepted_parameters['edit_announcement'] = array("do_edit_announcement", "edit_announcement");
$accepted_parameters['mod_queue'] = array("do_modqueue", "modqueue");

			$accepted_parameters['delete_announcement'] = array("do_delete_announcement", "delete_announcement");
$accepted_parameters['edit_announcement'] = array("do_edit_announcement", "edit_announcement");
$accepted_parameters['mod_queue'] = array("do_modqueue", "modqueue");

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

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

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














			if(is_numeric($parameters['uid']))
{
$uid_list[] = $parameters['uid'];
$user_activity['uid'] = $parameters['uid'];
}

if($parameters['action'] == "add")
{
$user_activity['activity'] = "reputation";
}
else
{
$user_activity['activity'] = "reputation_report";
}

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

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

Zeile 418Zeile 431
			}
elseif($parameters['action'] == "view")
{

			}
elseif($parameters['action'] == "view")
{

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

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

			}
else
{

			}
else
{

Zeile 437Zeile 450
	// Expects $location to be passed through already sanitized
$user_activity['location'] = $location;


	// Expects $location to be passed through already sanitized
$user_activity['location'] = $location;


	$plugins->run_hooks_by_ref("fetch_wol_activity_end", $user_activity);

	$user_activity = $plugins->run_hooks("fetch_wol_activity_end", $user_activity);

	
return $user_activity;
}

	
return $user_activity;
}

Zeile 501Zeile 514
		$perms = array();
$tid_sql = implode(",", $tid_list);
$query = $db->query("

		$perms = array();
$tid_sql = implode(",", $tid_list);
$query = $db->query("

			SELECT t.fid, t.tid, t.subject, t.visible, p.displaystyle AS threadprefix

			SELECT t.uid, t.fid, t.tid, t.subject, t.visible, p.displaystyle AS threadprefix

			FROM ".TABLE_PREFIX."threads t
LEFT JOIN ".TABLE_PREFIX."threadprefixes p ON (p.pid=t.prefix)
WHERE tid IN({$tid_sql}) {$fidnot} {$visible}

			FROM ".TABLE_PREFIX."threads t
LEFT JOIN ".TABLE_PREFIX."threadprefixes p ON (p.pid=t.prefix)
WHERE tid IN({$tid_sql}) {$fidnot} {$visible}

Zeile 510Zeile 523
		while($thread = $db->fetch_array($query))
{
if(!$perms[$thread['fid']])

		while($thread = $db->fetch_array($query))
{
if(!$perms[$thread['fid']])

			{

			{

				$perms[$thread['fid']] = forum_permissions($thread['fid']);
}


				$perms[$thread['fid']] = forum_permissions($thread['fid']);
}


			if($perms[$thread['fid']]['canonlyviewownthreads'] == 1 && $thread['uid'] != $mybb->user['uid'])

			if($perms[$thread['fid']]['canonlyviewownthreads'] == 1 && $thread['uid'] != $mybb->user['uid'] && !is_moderator($thread['fid']))

			{
continue;
}

			{
continue;
}

Zeile 641Zeile 654
			break;
case "member_profile":
if($usernames[$user_activity['uid']])

			break;
case "member_profile":
if($usernames[$user_activity['uid']])

			{

			{

				$location_name = $lang->sprintf($lang->viewing_profile2, get_profile_link($user_activity['uid']), $usernames[$user_activity['uid']]);

				$location_name = $lang->sprintf($lang->viewing_profile2, get_profile_link($user_activity['uid']), $usernames[$user_activity['uid']]);

			}

			}

			else
{
$location_name = $lang->viewing_profile;
}
break;
case "member_register":

			else
{
$location_name = $lang->viewing_profile;
}
break;
case "member_register":

			$location_name = $lang->registering;

			$location_name = $lang->registering;

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

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

Zeile 658Zeile 671
			if($mybb->user['uid'] == 0)
{
$location_name = $lang->logging_in;

			if($mybb->user['uid'] == 0)
{
$location_name = $lang->logging_in;

			}

			}

			else
{
$location_name = $lang->logging_in_plain;
}

			else
{
$location_name = $lang->logging_in_plain;
}

			break;

			break;

		case "member_logout":

		case "member_logout":

			$location_name = $lang->logging_out;
break;

			$location_name = $lang->logging_out;
break;

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

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

			break;

			break;

		case "member_rate":
$location_name = $lang->rating_user;
break;
case "member_resendactivation":

		case "member_rate":
$location_name = $lang->rating_user;
break;
case "member_resendactivation":

			$location_name = $lang->resending_account_activation;
break;

			$location_name = $lang->member_resendactivation;
break;

		case "member_lostpw":
$location_name = $lang->member_lostpw;
break;

		case "member_lostpw":
$location_name = $lang->member_lostpw;
break;

Zeile 691Zeile 704
			if($threads[$user_activity['tid']])
{
$location_name = $lang->sprintf($lang->viewing_whoposted2, get_thread_link($user_activity['tid']), $threads[$user_activity['tid']]);

			if($threads[$user_activity['tid']])
{
$location_name = $lang->sprintf($lang->viewing_whoposted2, get_thread_link($user_activity['tid']), $threads[$user_activity['tid']]);

			}

			}

			else
{
$location_name = $lang->viewing_whoposted;
}
break;
case "misc_markread":

			else
{
$location_name = $lang->viewing_whoposted;
}
break;
case "misc_markread":

			$location_name = $lang->marking_read;

			$location_name = $lang->sprintf($lang->marking_read, $mybb->post_code);

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

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

Zeile 708Zeile 721
			break;
case "misc_smilies":
$location_name = $lang->viewing_smilies;

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

			break;

			break;

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

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

Zeile 739Zeile 752
			break;
case "modcp_delete_announcement":
$location_name = $lang->deleting_announcement;

			break;
case "modcp_delete_announcement":
$location_name = $lang->deleting_announcement;

			break;

			break;

		case "modcp_edit_announcement":
$location_name = $lang->editing_announcement;
break;

		case "modcp_edit_announcement":
$location_name = $lang->editing_announcement;
break;

Zeile 772Zeile 785
			else
{
$location_name = $lang->replying_thread;

			else
{
$location_name = $lang->replying_thread;

			}
break;

			}
break;

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

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

Zeile 798Zeile 811
			break;
case "editpoll":
$location_name = $lang->editing_poll;

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

			break;

			break;

		case "showresults":
$location_name = $lang->viewing_pollresults;
break;

		case "showresults":
$location_name = $lang->viewing_pollresults;
break;

Zeile 822Zeile 835
			break;
case "private_read":
$location_name = $lang->reading_pm;

			break;
case "private_read":
$location_name = $lang->reading_pm;

			break;

			break;

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

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

Zeile 839Zeile 852
			break;
// reputation.php functions
case "reputation":

			break;
// reputation.php functions
case "reputation":

			$location_name = $lang->giving_reputation;




			$location_name = $lang->sprintf($lang->giving_reputation, get_profile_link($user_activity['uid']), $usernames[$user_activity['uid']]);
break;
case "reputation_report":
$location_name = $lang->sprintf($lang->viewing_reputation_report, "reputation.php?uid={$user_activity['uid']}", $usernames[$user_activity['uid']]);

			break;
// search.php functions
case "search":

			break;
// search.php functions
case "search":

Zeile 925Zeile 941
	}

$plugin_array = array('user_activity' => &$user_activity, 'location_name' => &$location_name);

	}

$plugin_array = array('user_activity' => &$user_activity, 'location_name' => &$location_name);

	$plugins->run_hooks_by_ref("build_friendly_wol_location_end", $plugin_array);

	$plugins->run_hooks("build_friendly_wol_location_end", $plugin_array);

	
if($user_activity['nopermission'] == 1)
{

	
if($user_activity['nopermission'] == 1)
{