Vergleich online.php - 1.8.22 - 1.8.26

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 48Zeile 48
	{
$mybb->settings['threadsperpage'] = 20;
}

	{
$mybb->settings['threadsperpage'] = 20;
}

	



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

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





	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));

$todayrows = '';

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

$todayrows = '';

Zeile 76Zeile 76
	{
$invisiblemark = '';
if($online['invisible'] == 1)

	{
$invisiblemark = '';
if($online['invisible'] == 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;


	$query = $db->query("
SELECT COUNT(*) AS online FROM (
SELECT 1

	$query = $db->query("
SELECT COUNT(*) AS online FROM (
SELECT 1

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

	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