Zeile 161 | Zeile 161 |
---|
elseif($parameters['action'] == "profile") { $user_activity['activity'] = "member_profile";
|
elseif($parameters['action'] == "profile") { $user_activity['activity'] = "member_profile";
|
|
|
if(!isset($parameters['uid']))
|
if(!isset($parameters['uid']))
|
{
| {
|
$parameters['uid'] = 0; } $parameters['uid'] = (int)$parameters['uid'];
|
$parameters['uid'] = 0; } $parameters['uid'] = (int)$parameters['uid'];
|
| if($parameters['uid'] == 0) { global $memprofile;
// $user is available in Who's Online but not in Member Profile, use $memprofile instead if(!empty($user['uid'])) { $parameters['uid'] = $user['uid']; } elseif(!empty($memprofile['uid'])) { $parameters['uid'] = $memprofile['uid']; } }
|
if($parameters['uid'] > 0) { $uid_list[$parameters['uid']] = $parameters['uid']; } $user_activity['uid'] = $parameters['uid'];
|
if($parameters['uid'] > 0) { $uid_list[$parameters['uid']] = $parameters['uid']; } $user_activity['uid'] = $parameters['uid'];
|
}
| }
|
elseif($parameters['action'] == "emailuser" || $parameters['action'] == "do_emailuser") { $user_activity['activity'] = "member_emailuser";
| elseif($parameters['action'] == "emailuser" || $parameters['action'] == "do_emailuser") { $user_activity['activity'] = "member_emailuser";
|
Zeile 201 | Zeile 218 |
---|
{ $parameters['action'] = ''; }
|
{ $parameters['action'] = ''; }
|
$accepted_parameters = array("markread", "help", "buddypopup", "smilies", "syndication", "imcenter", "dstswitch");
| $accepted_parameters = array("markread", "help", "buddypopup", "smilies", "syndication", "dstswitch");
|
if($parameters['action'] == "whoposted") { if(!isset($parameters['tid']))
|
if($parameters['action'] == "whoposted") { if(!isset($parameters['tid']))
|
{
| {
|
$parameters['tid'] = 0; } $parameters['tid'] = (int)$parameters['tid'];
| $parameters['tid'] = 0; } $parameters['tid'] = (int)$parameters['tid'];
|
Zeile 227 | Zeile 244 |
---|
break; case "modcp": if(!isset($parameters['action']))
|
break; case "modcp": if(!isset($parameters['action']))
|
{ $parameters['action'] = 0;
| { $parameters['action'] = '';
|
}
$accepted_parameters = array("modlogs", "announcements", "finduser", "warninglogs", "ipsearch");
| }
$accepted_parameters = array("modlogs", "announcements", "finduser", "warninglogs", "ipsearch");
|
Zeile 250 | Zeile 267 |
---|
$accepted_parameters['mod_queue'] = array("do_modqueue", "modqueue"); $accepted_parameters['editprofile'] = array("do_editprofile", "editprofile"); $accepted_parameters['banning'] = array("do_banuser", "banning", "liftban", "banuser");
|
$accepted_parameters['mod_queue'] = array("do_modqueue", "modqueue"); $accepted_parameters['editprofile'] = array("do_editprofile", "editprofile"); $accepted_parameters['banning'] = array("do_banuser", "banning", "liftban", "banuser");
|
|
|
foreach($accepted_parameters as $name => $actions) { if(in_array($parameters['action'], $actions))
| foreach($accepted_parameters as $name => $actions) { if(in_array($parameters['action'], $actions))
|
Zeile 261 | Zeile 278 |
---|
}
if(empty($user_activity['activity']))
|
}
if(empty($user_activity['activity']))
|
{
| {
|
$user_activity['activity'] = "modcp"; }
|
$user_activity['activity'] = "modcp"; }
|
break;
| break;
|
case "moderation": $user_activity['activity'] = "moderation"; break;
| case "moderation": $user_activity['activity'] = "moderation"; break;
|
Zeile 272 | Zeile 289 |
---|
if(!isset($parameters['tid'])) { $parameters['tid'] = 0;
|
if(!isset($parameters['tid'])) { $parameters['tid'] = 0;
|
}
| }
|
$parameters['tid'] = (int)$parameters['tid']; if($parameters['tid'] > 0) {
| $parameters['tid'] = (int)$parameters['tid']; if($parameters['tid'] > 0) {
|
Zeile 283 | Zeile 300 |
---|
break; case "newthread": if(!isset($parameters['fid']))
|
break; case "newthread": if(!isset($parameters['fid']))
|
{
| {
|
$parameters['fid'] = 0; } $parameters['fid'] = (int)$parameters['fid'];
| $parameters['fid'] = 0; } $parameters['fid'] = (int)$parameters['fid'];
|
Zeile 327 | Zeile 344 |
---|
$accepted_parameters = array("do_editpoll", "editpoll", "newpoll", "do_newpoll", "showresults", "vote");
foreach($accepted_parameters as $action)
|
$accepted_parameters = array("do_editpoll", "editpoll", "newpoll", "do_newpoll", "showresults", "vote");
foreach($accepted_parameters as $action)
|
{
| {
|
if($parameters['action'] == $action) { $user_activity['activity'] = $action;
| if($parameters['action'] == $action) { $user_activity['activity'] = $action;
|
Zeile 338 | Zeile 355 |
---|
if(!$user_activity['activity']) { $user_activity['activity'] = "showresults";
|
if(!$user_activity['activity']) { $user_activity['activity'] = "showresults";
|
} }
| } }
|
break; case "printthread":
|
break; case "printthread":
|
if(!isset($parameters['tid'])) { $parameters['tid'] = 0; } $parameters['tid'] = (int)$parameters['tid']; if($parameters['tid'] > 0) {
| if(!isset($parameters['tid'])) { $parameters['tid'] = 0; } $parameters['tid'] = (int)$parameters['tid']; if($parameters['tid'] > 0) {
|
$tid_list[$parameters['tid']] = $parameters['tid']; } $user_activity['activity'] = "printthread";
| $tid_list[$parameters['tid']] = $parameters['tid']; } $user_activity['activity'] = "printthread";
|
Zeile 358 | Zeile 375 |
---|
if(!isset($parameters['action'])) { $parameters['action'] = '';
|
if(!isset($parameters['action'])) { $parameters['action'] = '';
|
} if($parameters['action'] == "send" || $parameters['action'] == "do_send") {
| } if($parameters['action'] == "send" || $parameters['action'] == "do_send") {
|
$user_activity['activity'] = "private_send";
|
$user_activity['activity'] = "private_send";
|
}
| }
|
elseif($parameters['action'] == "read")
|
elseif($parameters['action'] == "read")
|
{
| {
|
$user_activity['activity'] = "private_read";
|
$user_activity['activity'] = "private_read";
|
} elseif($parameters['action'] == "folders" || $parameters['action'] == "do_folders") { $user_activity['activity'] = "private_folders";
| } elseif($parameters['action'] == "folders" || $parameters['action'] == "do_folders") { $user_activity['activity'] = "private_folders";
|
} else {
| } else {
|
Zeile 391 | Zeile 408 |
---|
if($parameters['uid'] > 0) { $uid_list[$parameters['uid']] = $parameters['uid'];
|
if($parameters['uid'] > 0) { $uid_list[$parameters['uid']] = $parameters['uid'];
|
}
| }
|
$user_activity['uid'] = $parameters['uid'];
if($parameters['action'] == "add")
|
$user_activity['uid'] = $parameters['uid'];
if($parameters['action'] == "add")
|
{
| {
|
$user_activity['activity'] = "reputation";
|
$user_activity['activity'] = "reputation";
|
}
| }
|
else { $user_activity['activity'] = "reputation_report";
|
else { $user_activity['activity'] = "reputation_report";
|
}
| }
|
break; case "search": $user_activity['activity'] = "search";
| break; case "search": $user_activity['activity'] = "search";
|
Zeile 423 | Zeile 440 |
---|
$user_activity['activity'] = "showteam"; break; case "showthread":
|
$user_activity['activity'] = "showteam"; break; case "showthread":
|
if(!isset($parameters['action'])) { $parameters['action'] = 0; } if(!isset($parameters['pid']))
| if(!isset($parameters['action'])) { $parameters['action'] = ''; } if(!isset($parameters['pid']))
|
{ $parameters['pid'] = 0; }
| { $parameters['pid'] = 0; }
|
Zeile 437 | Zeile 454 |
---|
$pid_list[$parameters['pid']] = $parameters['pid']; $user_activity['activity'] = "showpost"; $user_activity['pid'] = $parameters['pid'];
|
$pid_list[$parameters['pid']] = $parameters['pid']; $user_activity['activity'] = "showpost"; $user_activity['pid'] = $parameters['pid'];
|
} else
| } else
|
{ if(!isset($parameters['page']))
|
{ if(!isset($parameters['page']))
|
{
| {
|
$parameters['page'] = 0; } $parameters['page'] = (int)$parameters['page'];
| $parameters['page'] = 0; } $parameters['page'] = (int)$parameters['page'];
|
Zeile 449 | Zeile 466 |
---|
if(!isset($parameters['tid'])) { $parameters['tid'] = 0;
|
if(!isset($parameters['tid'])) { $parameters['tid'] = 0;
|
}
| }
|
$parameters['tid'] = (int)$parameters['tid']; if($parameters['tid'] > 0) {
| $parameters['tid'] = (int)$parameters['tid']; if($parameters['tid'] > 0) {
|
Zeile 482 | Zeile 499 |
---|
elseif($parameters['action'] == "editsig" || $parameters['action'] == "do_editsig") { $user_activity['activity'] = "usercp_editsig";
|
elseif($parameters['action'] == "editsig" || $parameters['action'] == "do_editsig") { $user_activity['activity'] = "usercp_editsig";
|
}
| }
|
elseif($parameters['action'] == "avatar" || $parameters['action'] == "do_avatar") { $user_activity['activity'] = "usercp_avatar";
| elseif($parameters['action'] == "avatar" || $parameters['action'] == "do_avatar") { $user_activity['activity'] = "usercp_avatar";
|
Zeile 498 | Zeile 515 |
---|
elseif($parameters['action'] == "subscriptions") { $user_activity['activity'] = "usercp_subscriptions";
|
elseif($parameters['action'] == "subscriptions") { $user_activity['activity'] = "usercp_subscriptions";
|
| } elseif($parameters['action'] == "addfavorite" || $parameters['action'] == "removefavorite" || $parameters['action'] == "removefavorites") { $user_activity['activity'] = "usercp_managefavorites"; } else if($parameters['action'] == "addsubscription" || $parameters['action'] == "do_addsubscription" || $parameters['action'] == "removesubscription" || $parameters['action'] == "removesubscriptions") { $user_activity['activity'] = "usercp_managesubscriptions";
|
} elseif($parameters['action'] == "notepad" || $parameters['action'] == "do_notepad") {
| } elseif($parameters['action'] == "notepad" || $parameters['action'] == "do_notepad") {
|
Zeile 506 | Zeile 531 |
---|
else { $user_activity['activity'] = "usercp";
|
else { $user_activity['activity'] = "usercp";
|
} break; case "usercp2": if(!isset($parameters['action'])) { $parameters['action'] = ''; } if($parameters['action'] == "addfavorite" || $parameters['action'] == "removefavorite" || $parameters['action'] == "removefavorites") { $user_activity['activity'] = "usercp2_favorites"; } else if($parameters['action'] == "addsubscription" || $parameters['action'] == "do_addsubscription" || $parameters['action'] == "removesubscription" || $parameters['action'] == "removesubscriptions") { $user_activity['activity'] = "usercp2_subscriptions";
| |
} break; case "portal":
| } break; case "portal":
|
Zeile 541 | Zeile 552 |
---|
elseif($parameters['action'] == "view") { $user_activity['activity'] = "warnings_view";
|
elseif($parameters['action'] == "view") { $user_activity['activity'] = "warnings_view";
|
}
| }
|
else { $user_activity['activity'] = "warnings";
| else { $user_activity['activity'] = "warnings";
|
Zeile 584 | Zeile 595 |
---|
{ $fidnot = " AND fid NOT IN ($unviewableforums)"; $unviewablefids = explode(',', $unviewableforums);
|
{ $fidnot = " AND fid NOT IN ($unviewableforums)"; $unviewablefids = explode(',', $unviewableforums);
|
}
| }
|
if($inactiveforums) { $fidnot .= " AND fid NOT IN ($inactiveforums)";
| if($inactiveforums) { $fidnot .= " AND fid NOT IN ($inactiveforums)";
|
Zeile 606 | Zeile 617 |
---|
else { $usernames[$mybb->user['uid']] = htmlspecialchars_uni($mybb->user['username']);
|
else { $usernames[$mybb->user['uid']] = htmlspecialchars_uni($mybb->user['username']);
|
}
| }
|
}
// Fetch any attachments
| }
// Fetch any attachments
|
Zeile 869 | Zeile 880 |
---|
break; case "misc_syndication": $location_name = $lang->viewing_syndication;
|
break; case "misc_syndication": $location_name = $lang->viewing_syndication;
|
break; case "misc_imcenter": $location_name = $lang->viewing_imcenter;
| |
break; // modcp.php functions case "modcp_modlogs":
| break; // modcp.php functions case "modcp_modlogs":
|
Zeile 1071 | Zeile 1079 |
---|
case "usercp": $location_name = $lang->user_cp; break;
|
case "usercp": $location_name = $lang->user_cp; break;
|
case "usercp2_favorites":
| case "usercp_managefavorites":
|
$location_name = $lang->managing_favorites; break;
|
$location_name = $lang->managing_favorites; break;
|
case "usercp2_subscriptions":
| case "usercp_managesubscriptions":
|
$location_name = $lang->managing_subscriptions; break; case "portal":
| $location_name = $lang->managing_subscriptions; break; case "portal":
|
Zeile 1132 | Zeile 1140 |
---|
if($user['invisible'] != 1 || $mybb->usergroup['canviewwolinvis'] == 1 || $user['uid'] == $mybb->user['uid']) { // Append an invisible mark if the user is invisible
|
if($user['invisible'] != 1 || $mybb->usergroup['canviewwolinvis'] == 1 || $user['uid'] == $mybb->user['uid']) { // Append an invisible mark if the user is invisible
|
if($user['invisible'] == 1)
| if($user['invisible'] == 1 && $mybb->usergroup['canbeinvisible'] == 1)
|
{ $invisible_mark = "*"; }
| { $invisible_mark = "*"; }
|
Zeile 1156 | Zeile 1164 |
---|
$online_name = format_name($lang->guest, 1); }
|
$online_name = format_name($lang->guest, 1); }
|
$online_time = my_date($mybb->settings['timeformat'], $user['time']);
| $online_time = my_date('relative', $user['time']);
|
// Fetch the location name for this users activity $location = build_friendly_wol_location($user['activity']);
| // Fetch the location name for this users activity $location = build_friendly_wol_location($user['activity']);
|