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: online.php 5489 2011-07-12 13:32:51Z Tomm $
| * $Id: online.php 5638 2011-10-26 08:59:45Z Tomm $
|
*/
define("IN_MYBB", 1);
| */
define("IN_MYBB", 1);
|
Zeile 62 | Zeile 62 |
---|
$query = $db->simple_select("users", "*", "lastactive > '{$threshold}'", array("order_by" => "lastactive", "order_dir" => "desc", "limit" => $perpage, "limit_start" => $start));
$todayrows = '';
|
$query = $db->simple_select("users", "*", "lastactive > '{$threshold}'", array("order_by" => "lastactive", "order_dir" => "desc", "limit" => $perpage, "limit_start" => $start));
$todayrows = '';
|
| $invis_count = 0;
|
while($online = $db->fetch_array($query)) {
|
while($online = $db->fetch_array($query)) {
|
if($online['invisible'] != 1 || $groupscache[$online['usergroup']]['canviewwolinvis'] == 1 || $online['uid'] == $mybb->user['uid'])
| $invisiblemark = ''; if($online['invisible'] == 1)
|
{
|
{
|
if($online['invisible'] == 1) { $invisiblemark = "*"; } else { $invisiblemark = ""; }
| ++$invis_count; $invisiblemark = "*"; }
if($online['invisible'] != 1 || $mybb->usergroup['canviewwolinvis'] == 1 || $online['uid'] == $mybb->user['uid']) {
|
$username = $online['username']; $username = format_name($username, $online['usergroup'], $online['displaygroup']); $online['profilelink'] = build_profile_link($username, $online['uid']); $onlinetime = my_date($mybb->settings['timeformat'], $online['lastactive']);
eval("\$todayrows .= \"".$templates->get("online_today_row")."\";");
|
$username = $online['username']; $username = format_name($username, $online['usergroup'], $online['displaygroup']); $online['profilelink'] = build_profile_link($username, $online['uid']); $onlinetime = my_date($mybb->settings['timeformat'], $online['lastactive']);
eval("\$todayrows .= \"".$templates->get("online_today_row")."\";");
|
} }
| } }
|
if($todaycount == 1) {
| if($todaycount == 1) {
|
Zeile 91 | Zeile 90 |
---|
else { $onlinetoday = $lang->sprintf($lang->members_were_online_today, $todaycount);
|
else { $onlinetoday = $lang->sprintf($lang->members_were_online_today, $todaycount);
|
| }
if($invis_count) { $string = $lang->members_online_hidden;
if($invis_count == 1) { $string = $lang->member_online_hidden; }
$onlinetoday .= $lang->sprintf($string, $invis_count);
|
}
$multipage = multipage($todaycount, $perpage, $page, "online.php?action=today");
| }
$multipage = multipage($todaycount, $perpage, $page, "online.php?action=today");
|