Zeile 11 | Zeile 11 |
---|
define("IN_MYBB", 1); define('THIS_SCRIPT', 'online.php');
|
define("IN_MYBB", 1); define('THIS_SCRIPT', 'online.php');
|
$templatelist = "online,online_row,online_row_ip,online_today,online_today_row,online_row_ip_lookup,multipage,multipage_end,multipage_jump_page,multipage_nextpage,multipage_page,multipage_page_current,multipage_page_link_current,multipage_prevpage,multipage_start";
| $templatelist = "online,online_row,online_row_ip,online_today,online_today_row,online_row_ip_lookup,online_refresh,multipage,multipage_end,multipage_start"; $templatelist .= ",multipage_jump_page,multipage_nextpage,multipage_page,multipage_page_current,multipage_page_link_current,multipage_prevpage";
|
require_once "./global.php"; require_once MYBB_ROOT."inc/functions_post.php";
| require_once "./global.php"; require_once MYBB_ROOT."inc/functions_post.php";
|
Zeile 51 | Zeile 52 |
---|
// Add pagination $perpage = $mybb->settings['threadsperpage'];
|
// Add pagination $perpage = $mybb->settings['threadsperpage'];
|
if($mybb->get_input('page', 1) > 0)
| if($mybb->get_input('page', MyBB::INPUT_INT) > 0)
|
{
|
{
|
$page = $mybb->get_input('page', 1);
| $page = $mybb->get_input('page', MyBB::INPUT_INT);
|
$start = ($page-1) * $perpage; $pages = ceil($todaycount / $perpage); if($page > $pages)
| $start = ($page-1) * $perpage; $pages = ceil($todaycount / $perpage); if($page > $pages)
|
Zeile 81 | Zeile 82 |
---|
if($online['invisible'] != 1 || $mybb->usergroup['canviewwolinvis'] == 1 || $online['uid'] == $mybb->user['uid']) {
|
if($online['invisible'] != 1 || $mybb->usergroup['canviewwolinvis'] == 1 || $online['uid'] == $mybb->user['uid']) {
|
$username = $online['username']; $username = format_name($username, $online['usergroup'], $online['displaygroup']);
| $username = format_name(htmlspecialchars_uni($online['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")."\";"); } }
|
$online['profilelink'] = build_profile_link($username, $online['uid']); $onlinetime = my_date($mybb->settings['timeformat'], $online['lastactive']);
eval("\$todayrows .= \"".$templates->get("online_today_row")."\";"); } }
|
| $multipage = multipage($todaycount, $perpage, $page, "online.php?action=today");
|
$todaycount = my_number_format($todaycount); $invis_count = my_number_format($invis_count);
| $todaycount = my_number_format($todaycount); $invis_count = my_number_format($invis_count);
|
Zeile 96 | Zeile 98 |
---|
if($todaycount == 1) { $onlinetoday = $lang->member_online_today;
|
if($todaycount == 1) { $onlinetoday = $lang->member_online_today;
|
}
| }
|
else { $onlinetoday = $lang->sprintf($lang->members_were_online_today, $todaycount);
| else { $onlinetoday = $lang->sprintf($lang->members_were_online_today, $todaycount);
|
Zeile 105 | Zeile 107 |
---|
if($invis_count) { $string = $lang->members_online_hidden;
|
if($invis_count) { $string = $lang->members_online_hidden;
|
|
|
if($invis_count == 1) { $string = $lang->member_online_hidden;
| if($invis_count == 1) { $string = $lang->member_online_hidden;
|
Zeile 113 | Zeile 115 |
---|
$onlinetoday .= $lang->sprintf($string, $invis_count); }
|
$onlinetoday .= $lang->sprintf($string, $invis_count); }
|
$multipage = multipage($todaycount, $perpage, $page, "online.php?action=today");
| |
$plugins->run_hooks("online_today_end");
| $plugins->run_hooks("online_today_end");
|
Zeile 182 | Zeile 182 |
---|
// How many pages are there? $perpage = $mybb->settings['threadsperpage'];
|
// How many pages are there? $perpage = $mybb->settings['threadsperpage'];
|
if($mybb->get_input('page', 1) > 0)
| if($mybb->get_input('page', MyBB::INPUT_INT) > 0)
|
{
|
{
|
$page = $mybb->get_input('page', 1);
| $page = $mybb->get_input('page', MyBB::INPUT_INT);
|
$start = ($page-1) * $perpage; $pages = ceil($online_count / $perpage); if($page > $pages)
| $start = ($page-1) * $perpage; $pages = ceil($online_count / $perpage); if($page > $pages)
|
Zeile 274 | Zeile 274 |
---|
if($mybb->settings['refreshwol'] > 0) { $refresh_time = $mybb->settings['refreshwol'] * 60;
|
if($mybb->settings['refreshwol'] > 0) { $refresh_time = $mybb->settings['refreshwol'] * 60;
|
$refresh = "<meta http-equiv=\"refresh\" content=\"{$refresh_time};URL=online.php{$refresh_string}\" />";
| eval("\$refresh = \"".$templates->get("online_refresh")."\";");
|
}
$plugins->run_hooks("online_end");
| }
$plugins->run_hooks("online_end");
|