Zeile 33 | Zeile 33 |
---|
$filename = my_substr($split_loc[0], -my_strpos(strrev($split_loc[0]), "/")); } $parameters = array();
|
$filename = my_substr($split_loc[0], -my_strpos(strrev($split_loc[0]), "/")); } $parameters = array();
|
if($split_loc[1])
| if(isset($split_loc[1]))
|
{ $temp = explode("&", my_substr($split_loc[1], 1)); foreach($temp as $param)
| { $temp = explode("&", my_substr($split_loc[1], 1)); foreach($temp as $param)
|
Zeile 218 | 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']))
|
Zeile 245 | Zeile 245 |
---|
case "modcp": if(!isset($parameters['action'])) {
|
case "modcp": if(!isset($parameters['action'])) {
|
$parameters['action'] = 0;
| $parameters['action'] = '';
|
}
|
}
|
|
|
$accepted_parameters = array("modlogs", "announcements", "finduser", "warninglogs", "ipsearch");
foreach($accepted_parameters as $action)
| $accepted_parameters = array("modlogs", "announcements", "finduser", "warninglogs", "ipsearch");
foreach($accepted_parameters as $action)
|
Zeile 255 | Zeile 255 |
---|
if($parameters['action'] == $action) { $user_activity['activity'] = "modcp_".$action;
|
if($parameters['action'] == $action) { $user_activity['activity'] = "modcp_".$action;
|
break;
| break;
|
} }
| } }
|
Zeile 284 | Zeile 284 |
---|
break; case "moderation": $user_activity['activity'] = "moderation";
|
break; case "moderation": $user_activity['activity'] = "moderation";
|
break;
| break;
|
case "newreply": if(!isset($parameters['tid']))
|
case "newreply": if(!isset($parameters['tid']))
|
{
| {
|
$parameters['tid'] = 0; } $parameters['tid'] = (int)$parameters['tid']; if($parameters['tid'] > 0) { $tid_list[$parameters['tid']] = $parameters['tid'];
|
$parameters['tid'] = 0; } $parameters['tid'] = (int)$parameters['tid']; if($parameters['tid'] > 0) { $tid_list[$parameters['tid']] = $parameters['tid'];
|
}
| }
|
$user_activity['activity'] = "newreply"; $user_activity['tid'] = $parameters['tid']; break;
| $user_activity['activity'] = "newreply"; $user_activity['tid'] = $parameters['tid']; break;
|
Zeile 313 | Zeile 313 |
---|
break; case "online": if(!isset($parameters['action']))
|
break; case "online": if(!isset($parameters['action']))
|
{
| {
|
$parameters['action'] = '';
|
$parameters['action'] = '';
|
}
| }
|
if($parameters['action'] == "today")
|
if($parameters['action'] == "today")
|
{
| {
|
$user_activity['activity'] = "woltoday";
|
$user_activity['activity'] = "woltoday";
|
}
| }
|
else { $user_activity['activity'] = "wol";
|
else { $user_activity['activity'] = "wol";
|
}
| }
|
break; case "polls": if(!isset($parameters['action']))
|
break; case "polls": if(!isset($parameters['action']))
|
{
| {
|
$parameters['action'] = ''; } // Make the "do" parts the same as the other one. if($parameters['action'] == "do_newpoll")
|
$parameters['action'] = ''; } // Make the "do" parts the same as the other one. if($parameters['action'] == "do_newpoll")
|
{
| {
|
$user_activity['activity'] = "newpoll";
|
$user_activity['activity'] = "newpoll";
|
}
| }
|
elseif($parameters['action'] == "do_editpoll")
|
elseif($parameters['action'] == "do_editpoll")
|
{
| {
|
$user_activity['activity'] = "editpoll"; } else { $accepted_parameters = array("do_editpoll", "editpoll", "newpoll", "do_newpoll", "showresults", "vote");
|
$user_activity['activity'] = "editpoll"; } else { $accepted_parameters = array("do_editpoll", "editpoll", "newpoll", "do_newpoll", "showresults", "vote");
|
|
|
foreach($accepted_parameters as $action) { if($parameters['action'] == $action)
| foreach($accepted_parameters as $action) { if($parameters['action'] == $action)
|
Zeile 352 | Zeile 352 |
---|
} }
|
} }
|
if(!$user_activity['activity'])
| if(empty($user_activity['activity']))
|
{ $user_activity['activity'] = "showresults"; }
| { $user_activity['activity'] = "showresults"; }
|
Zeile 373 | Zeile 373 |
---|
break; case "private": if(!isset($parameters['action']))
|
break; case "private": if(!isset($parameters['action']))
|
{
| {
|
$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"; } elseif($parameters['action'] == "read") { $user_activity['activity'] = "private_read";
|
$user_activity['activity'] = "private_send"; } elseif($parameters['action'] == "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";
|
Zeile 400 | Zeile 400 |
---|
$user_activity['activity'] = "report"; break; case "reputation":
|
$user_activity['activity'] = "report"; break; case "reputation":
|
| if(!isset($parameters['action'])) { $parameters['action'] = ''; }
|
if(!isset($parameters['uid'])) { $parameters['uid'] = 0;
|
if(!isset($parameters['uid'])) { $parameters['uid'] = 0;
|
}
| }
|
$parameters['uid'] = (int)$parameters['uid']; if($parameters['uid'] > 0)
|
$parameters['uid'] = (int)$parameters['uid']; if($parameters['uid'] > 0)
|
{
| {
|
$uid_list[$parameters['uid']] = $parameters['uid']; } $user_activity['uid'] = $parameters['uid'];
if($parameters['action'] == "add")
|
$uid_list[$parameters['uid']] = $parameters['uid']; } $user_activity['uid'] = $parameters['uid'];
if($parameters['action'] == "add")
|
{
| {
|
$user_activity['activity'] = "reputation"; } else
| $user_activity['activity'] = "reputation"; } else
|
Zeile 440 | Zeile 444 |
---|
$user_activity['activity'] = "showteam"; break; case "showthread":
|
$user_activity['activity'] = "showteam"; break; case "showthread":
|
if(!isset($parameters['action']))
| if(!isset($parameters['action']))
|
{
|
{
|
$parameters['action'] = 0;
| $parameters['action'] = '';
|
} if(!isset($parameters['pid'])) {
| } if(!isset($parameters['pid'])) {
|
Zeile 460 | Zeile 464 |
---|
if(!isset($parameters['page'])) { $parameters['page'] = 0;
|
if(!isset($parameters['page'])) { $parameters['page'] = 0;
|
}
| }
|
$parameters['page'] = (int)$parameters['page']; $user_activity['page'] = $parameters['page']; if(!isset($parameters['tid']))
| $parameters['page'] = (int)$parameters['page']; $user_activity['page'] = $parameters['page']; if(!isset($parameters['tid']))
|
Zeile 480 | Zeile 484 |
---|
$user_activity['activity'] = "stats"; break; case "usercp":
|
$user_activity['activity'] = "stats"; break; case "usercp":
|
if(!isset($parameters['action'])) { $parameters['action'] = '';
| if(!isset($parameters['action'])) { $parameters['action'] = '';
|
} if($parameters['action'] == "profile" || $parameters['action'] == "do_profile") {
| } if($parameters['action'] == "profile" || $parameters['action'] == "do_profile") {
|
Zeile 515 | Zeile 519 |
---|
elseif($parameters['action'] == "subscriptions") { $user_activity['activity'] = "usercp_subscriptions";
|
elseif($parameters['action'] == "subscriptions") { $user_activity['activity'] = "usercp_subscriptions";
|
} elseif($parameters['action'] == "notepad" || $parameters['action'] == "do_notepad") { $user_activity['activity'] = "usercp_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";
|
} 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":
|
$user_activity['activity'] = "portal"; break;
| $user_activity['activity'] = "portal"; break;
|
case "warnings": if(!isset($parameters['action'])) {
| case "warnings": if(!isset($parameters['action'])) {
|
Zeile 570 | Zeile 568 |
---|
break; default: $user_activity['activity'] = "unknown";
|
break; default: $user_activity['activity'] = "unknown";
|
break;
| break;
|
}
// Expects $location to be passed through already sanitized
| }
// Expects $location to be passed through already sanitized
|
Zeile 598 | Zeile 596 |
---|
$fidnot = ''; $unviewablefids = $inactivefids = array(); if($unviewableforums)
|
$fidnot = ''; $unviewablefids = $inactivefids = array(); if($unviewableforums)
|
{
| {
|
$fidnot = " AND fid NOT IN ($unviewableforums)"; $unviewablefids = explode(',', $unviewableforums); }
| $fidnot = " AND fid NOT IN ($unviewableforums)"; $unviewablefids = explode(',', $unviewableforums); }
|
Zeile 635 | Zeile 633 |
---|
{ $attachments[$attachment['aid']] = $attachment['pid']; $pid_list[] = $attachment['pid'];
|
{ $attachments[$attachment['aid']] = $attachment['pid']; $pid_list[] = $attachment['pid'];
|
} }
| } }
|
// Fetch any announcements if(!is_array($announcements) && count($ann_list) > 0) {
| // Fetch any announcements if(!is_array($announcements) && count($ann_list) > 0) {
|
Zeile 647 | Zeile 645 |
---|
{ $announcement_title = htmlspecialchars_uni($parser->parse_badwords($announcement['subject'])); $announcements[$announcement['aid']] = $announcement_title;
|
{ $announcement_title = htmlspecialchars_uni($parser->parse_badwords($announcement['subject'])); $announcements[$announcement['aid']] = $announcement_title;
|
} }
| } }
|
// Fetch any posts if(!is_array($posts) && count($pid_list) > 0) {
| // Fetch any posts if(!is_array($posts) && count($pid_list) > 0) {
|
Zeile 886 | Zeile 884 |
---|
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 1088 | Zeile 1083 |
---|
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 1149 | Zeile 1144 |
---|
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 1173 | Zeile 1168 |
---|
$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']);
|