Zeile 6 | Zeile 6 |
---|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* $Id: functions_online.php 5498 2011-07-18 08:05:00Z Tomm $
| * $Id: functions_online.php 5623 2011-10-01 02:46:09Z ralgith $
|
*/
$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 312 | Zeile 312 |
---|
$user_activity['activity'] = "report"; break; case "reputation":
|
$user_activity['activity'] = "report"; break; case "reputation":
|
$user_activity['activity'] = "reputation";
| if(is_numeric($parameters['uid'])) { $uid_list[] = $parameters['uid']; $user_activity['uid'] = $parameters['uid']; }
if($parameters['action'] == "add") { $user_activity['activity'] = "reputation"; } else { $user_activity['activity'] = "reputation_report"; }
|
break; case "search": $user_activity['activity'] = "search";
| break; case "search": $user_activity['activity'] = "search";
|
Zeile 321 | Zeile 334 |
---|
if(is_numeric($parameters['tid'])) { $tid_list[] = $parameters['tid'];
|
if(is_numeric($parameters['tid'])) { $tid_list[] = $parameters['tid'];
|
}
| }
|
$user_activity['activity'] = "sendthread"; $user_activity['tid'] = $parameters['tid']; break;
| $user_activity['activity'] = "sendthread"; $user_activity['tid'] = $parameters['tid']; break;
|
Zeile 354 | Zeile 367 |
---|
break; case "usercp": if($parameters['action'] == "profile" || $parameters['action'] == "do_profile")
|
break; case "usercp": if($parameters['action'] == "profile" || $parameters['action'] == "do_profile")
|
{
| {
|
$user_activity['activity'] = "usercp_profile";
|
$user_activity['activity'] = "usercp_profile";
|
}
| }
|
elseif($parameters['action'] == "options" || $parameters['action'] == "do_options") { $user_activity['activity'] = "usercp_options"; } elseif($parameters['action'] == "password" || $parameters['action'] == "do_password")
|
elseif($parameters['action'] == "options" || $parameters['action'] == "do_options") { $user_activity['activity'] = "usercp_options"; } elseif($parameters['action'] == "password" || $parameters['action'] == "do_password")
|
{
| {
|
$user_activity['activity'] = "usercp_password";
|
$user_activity['activity'] = "usercp_password";
|
}
| }
|
elseif($parameters['action'] == "editsig" || $parameters['action'] == "do_editsig") { $user_activity['activity'] = "usercp_editsig"; } elseif($parameters['action'] == "avatar" || $parameters['action'] == "do_avatar")
|
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";
|
$user_activity['activity'] = "usercp_avatar";
|
}
| }
|
elseif($parameters['action'] == "editlists" || $parameters['action'] == "do_editlists") { $user_activity['activity'] = "usercp_editlists"; } elseif($parameters['action'] == "favorites")
|
elseif($parameters['action'] == "editlists" || $parameters['action'] == "do_editlists") { $user_activity['activity'] = "usercp_editlists"; } elseif($parameters['action'] == "favorites")
|
{
| {
|
$user_activity['activity'] = "usercp_favorites"; } elseif($parameters['action'] == "subscriptions")
| $user_activity['activity'] = "usercp_favorites"; } elseif($parameters['action'] == "subscriptions")
|
Zeile 437 | Zeile 450 |
---|
// Expects $location to be passed through already sanitized $user_activity['location'] = $location;
|
// Expects $location to be passed through already sanitized $user_activity['location'] = $location;
|
$plugins->run_hooks_by_ref("fetch_wol_activity_end", $user_activity);
| $user_activity = $plugins->run_hooks("fetch_wol_activity_end", $user_activity);
|
return $user_activity; }
| return $user_activity; }
|
Zeile 510 | Zeile 523 |
---|
while($thread = $db->fetch_array($query)) { if(!$perms[$thread['fid']])
|
while($thread = $db->fetch_array($query)) { if(!$perms[$thread['fid']])
|
{
| {
|
$perms[$thread['fid']] = forum_permissions($thread['fid']); }
| $perms[$thread['fid']] = forum_permissions($thread['fid']); }
|
Zeile 772 | Zeile 785 |
---|
else { $location_name = $lang->replying_thread;
|
else { $location_name = $lang->replying_thread;
|
} break;
| } break;
|
// newthread.php functions case "newthread": if($forums[$user_activity['fid']])
| // newthread.php functions case "newthread": if($forums[$user_activity['fid']])
|
Zeile 798 | Zeile 811 |
---|
break; case "editpoll": $location_name = $lang->editing_poll;
|
break; case "editpoll": $location_name = $lang->editing_poll;
|
break;
| break;
|
case "showresults": $location_name = $lang->viewing_pollresults; break;
| case "showresults": $location_name = $lang->viewing_pollresults; break;
|
Zeile 822 | Zeile 835 |
---|
break; case "private_read": $location_name = $lang->reading_pm;
|
break; case "private_read": $location_name = $lang->reading_pm;
|
break;
| break;
|
case "private_folders": $location_name = $lang->editing_pmfolders; break;
| case "private_folders": $location_name = $lang->editing_pmfolders; break;
|
Zeile 839 | Zeile 852 |
---|
break; // reputation.php functions case "reputation":
|
break; // reputation.php functions case "reputation":
|
$location_name = $lang->giving_reputation;
| $location_name = $lang->sprintf($lang->giving_reputation, get_profile_link($user_activity['uid']), $usernames[$user_activity['uid']]); break; case "reputation_report": $location_name = $lang->sprintf($lang->viewing_reputation_report, "reputation.php?uid={$user_activity['uid']}", $usernames[$user_activity['uid']]);
|
break; // search.php functions case "search":
| break; // search.php functions case "search":
|
Zeile 925 | Zeile 941 |
---|
} $plugin_array = array('user_activity' => &$user_activity, 'location_name' => &$location_name);
|
} $plugin_array = array('user_activity' => &$user_activity, 'location_name' => &$location_name);
|
$plugins->run_hooks_by_ref("build_friendly_wol_location_end", $plugin_array);
| $plugins->run_hooks("build_friendly_wol_location_end", $plugin_array);
|
if($user_activity['nopermission'] == 1) {
| if($user_activity['nopermission'] == 1) {
|