Vergleich inc/functions_online.php - 1.4.3 - 1.4.10

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * $Id: functions_online.php 4081 2008-08-08 01:47:02Z Tikitiki $

 * $Id: functions_online.php 4427 2009-08-13 21:22:07Z RyanGordon $

 */

$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 17Zeile 17
 * @param string The location (URL) of the user.
* @return array Array of location and activity information
*/

 * @param string The location (URL) of the user.
* @return array Array of location and activity information
*/

function fetch_wol_activity($location)

function fetch_wol_activity($location, $nopermission=false)

{
global $uid_list, $aid_list, $pid_list, $tid_list, $fid_list, $eid_list, $plugins, $user, $parameters;


{
global $uid_list, $aid_list, $pid_list, $tid_list, $fid_list, $eid_list, $plugins, $user, $parameters;


Zeile 34Zeile 34
	}
if($split_loc[1])
{

	}
if($split_loc[1])
{

		$temp = explode("&", my_substr($split_loc[1], 1));

		$temp = explode("&", my_substr($split_loc[1], 1));

		foreach($temp as $param)
{
$temp2 = explode("=", $param, 2);
$parameters[$temp2[0]] = $temp2[1];
}
}

		foreach($temp as $param)
{
$temp2 = explode("=", $param, 2);
$parameters[$temp2[0]] = $temp2[1];
}
}

 
	
if($nopermission)
{
$filename = "nopermission";
}



switch($filename)
{


switch($filename)
{

Zeile 238Zeile 244
			if($parameters['action'] == "today")
{
$user_activity['activity'] = "woltoday";

			if($parameters['action'] == "today")
{
$user_activity['activity'] = "woltoday";

			}

			}

			else

			else

			{

			{

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

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

			}

			}

			break;
case "polls":
// Make the "do" parts the same as the other one.

			break;
case "polls":
// Make the "do" parts the same as the other one.

Zeile 251Zeile 257
				$user_activity['activity'] = "newpoll";
}
elseif($parameters['action'] == "do_editpoll")

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

			{

			{

				$user_activity['activity'] = "editpoll";
}
else

				$user_activity['activity'] = "editpoll";
}
else

Zeile 274Zeile 280
			}
break;
case "printthread":

			}
break;
case "printthread":

			if(is_numeric($parameters['tid']))
{
$tid_list[] = $parameters['tid'];

			if(is_numeric($parameters['tid']))
{
$tid_list[] = $parameters['tid'];

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

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

Zeile 286Zeile 292
			{
$user_activity['activity'] = "private_send";
}

			{
$user_activity['activity'] = "private_send";
}

			elseif($parameters['action'] == "show")

			elseif($parameters['action'] == "read")

			{
$user_activity['activity'] = "private_read";

			{
$user_activity['activity'] = "private_read";

			}

			}

			elseif($parameters['action'] == "folders" || $parameters['action'] == "do_folders")

			elseif($parameters['action'] == "folders" || $parameters['action'] == "do_folders")

			{

			{

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

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

Zeile 301Zeile 307
			break;
case "ratethread":
$user_activity['activity'] = "ratethread";

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

			break;

			break;

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

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

Zeile 338Zeile 344
				if(is_numeric($parameters['tid']))
{
$tid_list[] = $parameters['tid'];

				if(is_numeric($parameters['tid']))
{
$tid_list[] = $parameters['tid'];

				}

				}

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

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

Zeile 393Zeile 399
			{
$user_activity['activity'] = "usercp2_favorites";
}

			{
$user_activity['activity'] = "usercp2_favorites";
}

			elseif($parameters['action'] == "addsubscription" || $parameters['action'] == "removesubscription" || $parameters['action'] == "removesubscription")

			else if($parameters['action'] == "addsubscription" || $parameters['action'] == "do_addsubscription" || $parameters['action'] == "removesubscription" || $parameters['action'] == "removesubscriptions")

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

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

Zeile 421Zeile 427
			break;
case "nopermission":
$user_activity['activity'] = "nopermission";

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

 
			$user_activity['nopermission'] = 1;

			break;
default:
$user_activity['activity'] = "unknown";

			break;
default:
$user_activity['activity'] = "unknown";

Zeile 537Zeile 544
			else
{
$location_name = $lang->viewing_announcements2;

			else
{
$location_name = $lang->viewing_announcements2;

			}

			}

			break;
// attachment.php actions
case "attachment":
$pid = $attachments[$user_activity['aid']];
$tid = $posts[$pid];
if($threads[$tid])

			break;
// attachment.php actions
case "attachment":
$pid = $attachments[$user_activity['aid']];
$tid = $posts[$pid];
if($threads[$tid])

			{

			{

				$location_name = $lang->sprintf($lang->viewing_attachment2, $user_activity['aid'], $threads[$tid], get_thread_link($tid));
}
else
{
$location_name = $lang->viewing_attachment;

				$location_name = $lang->sprintf($lang->viewing_attachment2, $user_activity['aid'], $threads[$tid], get_thread_link($tid));
}
else
{
$location_name = $lang->viewing_attachment;

			}
break;

			}
break;

		// calendar.php functions
case "calendar":
$location_name = $lang->viewing_calendar;
break;
case "calendar_event":
if($events[$user_activity['eid']])

		// calendar.php functions
case "calendar":
$location_name = $lang->viewing_calendar;
break;
case "calendar_event":
if($events[$user_activity['eid']])

			{

			{

				$location_name = $lang->sprintf($lang->viewing_event2, get_event_link($user_activity['eid']), $events[$user_activity['eid']]);

				$location_name = $lang->sprintf($lang->viewing_event2, get_event_link($user_activity['eid']), $events[$user_activity['eid']]);

			}
else
{

			}
else
{

				$location_name = $lang->viewing_event;
}
break;

				$location_name = $lang->viewing_event;
}
break;

Zeile 575Zeile 582
		// editpost.php functions
case "editpost":
$location_name = $lang->editing_post;

		// editpost.php functions
case "editpost":
$location_name = $lang->editing_post;

			break;

			break;

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

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

Zeile 610Zeile 617
			if($usernames[$user_activity['uid']])
{
$location_name = $lang->sprintf($lang->viewing_profile2, get_profile_link($user_activity['uid']), $usernames[$user_activity['uid']]);

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

			}
else
{

			}
else
{

				$location_name = $lang->viewing_profile;
}
break;

				$location_name = $lang->viewing_profile;
}
break;

Zeile 636Zeile 643
			break;
case "member_emailuser":
$location_name = $lang->emailing_user;

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

			break;

			break;

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

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

Zeile 649Zeile 656
		// memberlist.php functions
case "memberlist":
$location_name = $lang->viewing_memberlist;

		// memberlist.php functions
case "memberlist":
$location_name = $lang->viewing_memberlist;

			break;

			break;

		// misc.php functions
case "misc_dstswitch":
$location_name = $lang->changing_dst;

		// misc.php functions
case "misc_dstswitch":
$location_name = $lang->changing_dst;

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

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

			}
else
{

			}
else
{

				$location_name = $lang->replying_thread;

				$location_name = $lang->replying_thread;

			}

			}

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

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

			{

			{

				$location_name = $lang->sprintf($lang->posting_thread2, get_forum_link($user_activity['fid']), $forums[$user_activity['fid']]);

				$location_name = $lang->sprintf($lang->posting_thread2, get_forum_link($user_activity['fid']), $forums[$user_activity['fid']]);

			}
else
{

			}
else
{

				$location_name = $lang->posting_thread;
}
break;

				$location_name = $lang->posting_thread;
}
break;

Zeile 835Zeile 842
		// usercp.php functions
case "usercp_profile":
$location_name = $lang->updating_profile;

		// usercp.php functions
case "usercp_profile":
$location_name = $lang->updating_profile;

 
			break;
case "usercp_editlists":
$location_name = $lang->managing_buddyignorelist;

			break;
case "usercp_options":
$location_name = $lang->updating_options;

			break;
case "usercp_options":
$location_name = $lang->updating_options;

Zeile 912Zeile 922
 */
function build_wol_row($user)
{

 */
function build_wol_row($user)
{

	global $mybb, $lang, $templates, $themes, $session;

	global $mybb, $lang, $templates, $theme, $session;


// We have a registered user
if($user['uid'] > 0)


// We have a registered user
if($user['uid'] > 0)