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'] = 0;
|
}
| }
|
$parameters['uid'] = (int)$parameters['uid'];
|
$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'];
| if($parameters['uid'] > 0) { $uid_list[$parameters['uid']] = $parameters['uid'];
|
Zeile 177 | Zeile 194 |
---|
$user_activity['activity'] = "member_emailuser"; } elseif($parameters['action'] == "rate" || $parameters['action'] == "do_rate")
|
$user_activity['activity'] = "member_emailuser"; } 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";
|
$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") { $user_activity['activity'] = "member_lostpw"; } else
|
elseif($parameters['action'] == "lostpw" || $parameters['action'] == "do_lostpw" || $parameters['action'] == "resetpassword") { $user_activity['activity'] = "member_lostpw"; } else
|
{
| {
|
$user_activity['activity'] = "member"; } break;
| $user_activity['activity'] = "member"; } break;
|
Zeile 203 | Zeile 220 |
---|
} $accepted_parameters = array("markread", "help", "buddypopup", "smilies", "syndication", "imcenter", "dstswitch"); if($parameters['action'] == "whoposted")
|
} $accepted_parameters = array("markread", "help", "buddypopup", "smilies", "syndication", "imcenter", "dstswitch"); if($parameters['action'] == "whoposted")
|
{ if(!isset($parameters['tid'])) {
| { 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 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":
|
Zeile 425 | Zeile 442 |
---|
case "showthread": if(!isset($parameters['action'])) {
|
case "showthread": if(!isset($parameters['action'])) {
|
$parameters['action'] = 0;
| $parameters['action'] = '';
|
} if(!isset($parameters['pid'])) {
| } if(!isset($parameters['pid'])) {
|
Zeile 499 | Zeile 516 |
---|
{ $user_activity['activity'] = "usercp_subscriptions"; }
|
{ $user_activity['activity'] = "usercp_subscriptions"; }
|
elseif($parameters['action'] == "notepad" || $parameters['action'] == "do_notepad")
| 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")
|
{ $user_activity['activity'] = "usercp_notepad";
|
{ $user_activity['activity'] = "usercp_notepad";
|
}
| }
|
else
|
else
|
{
| {
|
$user_activity['activity'] = "usercp";
|
$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 600 | Zeile 611 |
---|
$query = $db->simple_select("users", "uid,username", "uid IN ($uid_sql)"); while($user = $db->fetch_array($query)) {
|
$query = $db->simple_select("users", "uid,username", "uid IN ($uid_sql)"); while($user = $db->fetch_array($query)) {
|
$usernames[$user['uid']] = $user['username'];
| $usernames[$user['uid']] = htmlspecialchars_uni($user['username']);
|
} } else {
|
} } else {
|
$usernames[$mybb->user['uid']] = $mybb->user['username'];
| $usernames[$mybb->user['uid']] = htmlspecialchars_uni($mybb->user['username']);
|
} }
| } }
|
Zeile 1071 | Zeile 1082 |
---|
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 1141 | Zeile 1152 |
---|
$invisible_mark = ''; }
|
$invisible_mark = ''; }
|
$user['username'] = format_name($user['username'], $user['usergroup'], $user['displaygroup']);
| $user['username'] = format_name(htmlspecialchars_uni($user['username']), $user['usergroup'], $user['displaygroup']);
|
$online_name = build_profile_link($user['username'], $user['uid']).$invisible_mark; } }
| $online_name = build_profile_link($user['username'], $user['uid']).$invisible_mark; } }
|