Vergleich inc/functions_online.php - 1.6.0 - 1.6.7

  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 336Zeile 349
				$user_activity['pid'] = $parameters['pid'];
}
else

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

			{

			{

				if($parameters['page'])
{
$user_activity['page'] = $parameters['page'];

				if($parameters['page'])
{
$user_activity['page'] = $parameters['page'];

Zeile 360Zeile 373
			elseif($parameters['action'] == "options" || $parameters['action'] == "do_options")
{
$user_activity['activity'] = "usercp_options";

			elseif($parameters['action'] == "options" || $parameters['action'] == "do_options")
{
$user_activity['activity'] = "usercp_options";

			}

			}

			elseif($parameters['action'] == "password" || $parameters['action'] == "do_password")

			elseif($parameters['action'] == "password" || $parameters['action'] == "do_password")

			{

			{

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

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

			}

			}

			elseif($parameters['action'] == "avatar" || $parameters['action'] == "do_avatar")

			elseif($parameters['action'] == "avatar" || $parameters['action'] == "do_avatar")

			{

			{

				$user_activity['activity'] = "usercp_avatar";
}
elseif($parameters['action'] == "editlists" || $parameters['action'] == "do_editlists")
{
$user_activity['activity'] = "usercp_editlists";

				$user_activity['activity'] = "usercp_avatar";
}
elseif($parameters['action'] == "editlists" || $parameters['action'] == "do_editlists")
{
$user_activity['activity'] = "usercp_editlists";

			}

			}

			elseif($parameters['action'] == "favorites")
{
$user_activity['activity'] = "usercp_favorites";

			elseif($parameters['action'] == "favorites")
{
$user_activity['activity'] = "usercp_favorites";

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 498Zeile 511
	// Fetch any threads
if(!is_array($threads) && count($tid_list) > 0)
{

	// Fetch any threads
if(!is_array($threads) && count($tid_list) > 0)
{

 
		$perms = array();

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

		$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}
");

 


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

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

		{











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

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


			if(is_moderator($thread['fid']) || $thread['visible'] != '0')
{
$thread_title = '';

			if(is_moderator($thread['fid']) || $thread['visible'] != '0')
{
$thread_title = '';

Zeile 662Zeile 687
			$location_name = $lang->rating_user;
break;
case "member_resendactivation":

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

			$location_name = $lang->resending_account_activation;

			$location_name = $lang->member_resendactivation;

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

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

Zeile 686Zeile 711
			}
break;
case "misc_markread":

			}
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 699Zeile 724
			break;
case "misc_syndication":
$location_name = $lang->viewing_syndication;

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

			break;

			break;

		case "misc_imcenter":
$location_name = $lang->viewing_imcenter;
break;

		case "misc_imcenter":
$location_name = $lang->viewing_imcenter;
break;

Zeile 827Zeile 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 913Zeile 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)
{