Vergleich inc/functions_online.php - 1.4.1 - 1.4.14

  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 4845 2010-03-30 01:30:03Z 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;
}


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


	$user_activity['location'] = htmlspecialchars_uni($location);


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

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


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


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

			else
{
$location_name = $lang->viewing_announcements2;

			}
break;

			}
break;

		// attachment.php actions
case "attachment":
$pid = $attachments[$user_activity['aid']];

		// attachment.php actions
case "attachment":
$pid = $attachments[$user_activity['aid']];

Zeile 735Zeile 743
			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;
}

Zeile 835Zeile 843
		// 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 923
 */
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)