Vergleich online.php - 1.8.22 - 1.8.36

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 44Zeile 44
	$query = $db->simple_select("users", "COUNT(uid) AS users", "lastactive > '{$threshold}' AND invisible = '1'");
$invis_count = $db->fetch_field($query, "users");


	$query = $db->simple_select("users", "COUNT(uid) AS users", "lastactive > '{$threshold}' AND invisible = '1'");
$invis_count = $db->fetch_field($query, "users");


	if(!$mybb->settings['threadsperpage'] || (int)$mybb->settings['threadsperpage'] < 1)
{
$mybb->settings['threadsperpage'] = 20;

	if(!$mybb->settings['wolusersperpage'] || (int)$mybb->settings['wolusersperpage'] < 1)
{
$mybb->settings['wolusersperpage'] = 20;

	}

	}

	



	// Add pagination

	// Add pagination

	$perpage = $mybb->settings['threadsperpage'];

	$perpage = $mybb->settings['wolusersperpage'];


if($mybb->get_input('page', MyBB::INPUT_INT) > 0)


if($mybb->get_input('page', MyBB::INPUT_INT) > 0)

	{

	{

		$page = $mybb->get_input('page', MyBB::INPUT_INT);
$start = ($page-1) * $perpage;
$pages = ceil($todaycount / $perpage);

		$page = $mybb->get_input('page', MyBB::INPUT_INT);
$start = ($page-1) * $perpage;
$pages = ceil($todaycount / $perpage);

		if($page > $pages)
{
$start = 0;
$page = 1;
}
}
else
{
$start = 0;
$page = 1;
}

		if($page > $pages)
{
$start = 0;
$page = 1;
}
}
else
{
$start = 0;
$page = 1;
}


$query = $db->simple_select("users", "*", "lastactive > '{$threshold}'", array("order_by" => "lastactive", "order_dir" => "desc", "limit" => $perpage, "limit_start" => $start));


$query = $db->simple_select("users", "*", "lastactive > '{$threshold}'", array("order_by" => "lastactive", "order_dir" => "desc", "limit" => $perpage, "limit_start" => $start));





	$todayrows = '';
while($online = $db->fetch_array($query))
{
$invisiblemark = '';

	$todayrows = '';
while($online = $db->fetch_array($query))
{
$invisiblemark = '';

		if($online['invisible'] == 1)
{

		if($online['invisible'] == 1 && $mybb->usergroup['canbeinvisible'] == 1)
{

			$invisiblemark = "*";
}


			$invisiblemark = "*";
}


Zeile 87Zeile 87
			$onlinetime = my_date('normal', $online['lastactive']);

eval("\$todayrows .= \"".$templates->get("online_today_row")."\";");

			$onlinetime = my_date('normal', $online['lastactive']);

eval("\$todayrows .= \"".$templates->get("online_today_row")."\";");

		}
}

		}
}


$multipage = multipage($todaycount, $perpage, $page, "online.php?action=today");



$multipage = multipage($todaycount, $perpage, $page, "online.php?action=today");


Zeile 148Zeile 148
			default:
$sql = "IF( s.uid >0, 1, 0 ) DESC, s.time DESC";
break;

			default:
$sql = "IF( s.uid >0, 1, 0 ) DESC, s.time DESC";
break;

		}

		}

		$refresh_string = '';

		$refresh_string = '';

	}

	}


$timesearch = TIME_NOW - $mybb->settings['wolcutoffmins']*60;



$timesearch = TIME_NOW - $mybb->settings['wolcutoffmins']*60;


Zeile 162Zeile 162
			GROUP BY uid, ip
) s
");

			GROUP BY uid, ip
) s
");





	$online_count = $db->fetch_field($query, "online");

if(!$mybb->settings['threadsperpage'] || (int)$mybb->settings['threadsperpage'] < 1)
{
$mybb->settings['threadsperpage'] = 20;

	$online_count = $db->fetch_field($query, "online");

if(!$mybb->settings['threadsperpage'] || (int)$mybb->settings['threadsperpage'] < 1)
{
$mybb->settings['threadsperpage'] = 20;

	}

	}


// How many pages are there?
$perpage = $mybb->settings['threadsperpage'];


// How many pages are there?
$perpage = $mybb->settings['threadsperpage'];

Zeile 208Zeile 208
		($db->type == 'sqlite' && version_compare($dbversion, '3.25.0', '>='))
)
{

		($db->type == 'sqlite' && version_compare($dbversion, '3.25.0', '>='))
)
{

 
		$sql = str_replace('u.username', 's.username', $sql);


		$query = $db->query("
SELECT * FROM (
SELECT

		$query = $db->query("
SELECT * FROM (
SELECT