Zeile 6 | Zeile 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 4219 2008-10-02 23:02:43Z Tikitiki $
| * $Id: functions_online.php 4330 2009-03-16 02:17:06Z Tikitiki $
|
*/
$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 17 | Zeile 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 41 | Zeile 41 |
---|
$parameters[$temp2[0]] = $temp2[1]; } }
|
$parameters[$temp2[0]] = $temp2[1]; } }
|
| if($nopermission) { $filename = "nopermission"; }
|
switch($filename) {
| switch($filename) {
|
Zeile 90 | Zeile 96 |
---|
if(is_numeric($parameters['fid'])) { $fid_list[] = $parameters['fid'];
|
if(is_numeric($parameters['fid'])) { $fid_list[] = $parameters['fid'];
|
}
| }
|
$user_activity['activity'] = "forumdisplay"; $user_activity['fid'] = $parameters['fid']; break; case "index": case '': $user_activity['activity'] = "index";
|
$user_activity['activity'] = "forumdisplay"; $user_activity['fid'] = $parameters['fid']; break; case "index": case '': $user_activity['activity'] = "index";
|
break;
| break;
|
case "managegroup": $user_activity['activity'] = "managegroup"; break; case "member": if($parameters['action'] == "activate")
|
case "managegroup": $user_activity['activity'] = "managegroup"; break; case "member": if($parameters['action'] == "activate")
|
{
| {
|
$user_activity['activity'] = "member_activate";
|
$user_activity['activity'] = "member_activate";
|
}
| }
|
elseif($parameters['action'] == "register" || $parameters['action'] == "do_register") { $user_activity['activity'] = "member_register";
|
elseif($parameters['action'] == "register" || $parameters['action'] == "do_register") { $user_activity['activity'] = "member_register";
|
}
| }
|
elseif($parameters['action'] == "login" || $parameters['action'] == "do_login") { $user_activity['activity'] = "member_login"; } elseif($parameters['action'] == "logout")
|
elseif($parameters['action'] == "login" || $parameters['action'] == "do_login") { $user_activity['activity'] = "member_login"; } elseif($parameters['action'] == "logout")
|
{
| {
|
$user_activity['activity'] = "member_logout";
|
$user_activity['activity'] = "member_logout";
|
}
| }
|
elseif($parameters['action'] == "profile") { $user_activity['activity'] = "member_profile";
| elseif($parameters['action'] == "profile") { $user_activity['activity'] = "member_profile";
|
Zeile 128 | Zeile 134 |
---|
$user_activity['uid'] = $parameters['uid']; } elseif($parameters['action'] == "emailuser" || $parameters['action'] == "do_emailuser")
|
$user_activity['uid'] = $parameters['uid']; } elseif($parameters['action'] == "emailuser" || $parameters['action'] == "do_emailuser")
|
{
| {
|
$user_activity['activity'] = "member_emailuser";
|
$user_activity['activity'] = "member_emailuser";
|
}
| }
|
elseif($parameters['action'] == "rate" || $parameters['action'] == "do_rate") { $user_activity['activity'] = "member_rate";
|
elseif($parameters['action'] == "rate" || $parameters['action'] == "do_rate") { $user_activity['activity'] = "member_rate";
|
}
| }
|
elseif($parameters['action'] == "resendactivation" || $parameters['action'] == "do_resendactivation") { $user_activity['activity'] = "member_resendactivation"; } elseif($parameters['action'] == "lostpw" || $parameters['action'] == "do_lostpw" || $parameters['action'] == "resetpassword")
|
elseif($parameters['action'] == "resendactivation" || $parameters['action'] == "do_resendactivation") { $user_activity['activity'] = "member_resendactivation"; } elseif($parameters['action'] == "lostpw" || $parameters['action'] == "do_lostpw" || $parameters['action'] == "resetpassword")
|
{
| {
|
$user_activity['activity'] = "member_lostpw"; } else
| $user_activity['activity'] = "member_lostpw"; } else
|
Zeile 213 | Zeile 219 |
---|
if(is_numeric($parameters['pid'])) { $pid_list[] = $parameters['pid'];
|
if(is_numeric($parameters['pid'])) { $pid_list[] = $parameters['pid'];
|
$user_activity['activity'] = "newreply";
| $user_activity['activity'] = "newreply";
|
$user_activity['pid'] = $parameters['pid'];
|
$user_activity['pid'] = $parameters['pid'];
|
}
| }
|
else { if(is_numeric($parameters['tid']))
| else { if(is_numeric($parameters['tid']))
|
Zeile 224 | Zeile 230 |
---|
} $user_activity['activity'] = "newreply"; $user_activity['tid'] = $parameters['tid'];
|
} $user_activity['activity'] = "newreply"; $user_activity['tid'] = $parameters['tid'];
|
} break;
| } break;
|
case "newthread": if(is_numeric($parameters['fid']))
|
case "newthread": if(is_numeric($parameters['fid']))
|
{
| {
|
$fid_list[] = $parameters['fid'];
|
$fid_list[] = $parameters['fid'];
|
}
| }
|
$user_activity['activity'] = "newthread"; $user_activity['fid'] = $parameters['fid']; break;
| $user_activity['activity'] = "newthread"; $user_activity['fid'] = $parameters['fid']; break;
|
Zeile 238 | Zeile 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"; }
|
Zeile 286 | Zeile 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"; }
|
Zeile 421 | Zeile 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 537 | Zeile 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 575 | Zeile 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 610 | Zeile 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 636 | Zeile 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 649 | Zeile 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 735 | Zeile 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 835 | Zeile 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 912 | Zeile 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)
|