Vergleich online.php - 1.6.4 - 1.6.9

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 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$

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 38Zeile 38
	$threshold = TIME_NOW-(60*60*24);
$query = $db->simple_select("users", "COUNT(uid) AS users", "lastactive > '{$threshold}'");
$todaycount = $db->fetch_field($query, "users");

	$threshold = TIME_NOW-(60*60*24);
$query = $db->simple_select("users", "COUNT(uid) AS users", "lastactive > '{$threshold}'");
$todaycount = $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");


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


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

Zeile 51Zeile 54
		{
$start = 0;
$page = 1;

		{
$start = 0;
$page = 1;

		}
}
else
{

		}
}
else
{

		$start = 0;
$page = 1;

		$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))
{

	$todayrows = '';
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 = "";
}


			$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']);

			$username = $online['username'];
$username = format_name($username, $online['usergroup'], $online['displaygroup']);
$online['profilelink'] = build_profile_link($username, $online['uid']);

Zeile 85Zeile 85
	}

if($todaycount == 1)

	}

if($todaycount == 1)

	{

	{

		$onlinetoday = $lang->member_online_today;

		$onlinetoday = $lang->member_online_today;

	}

	}

	else

	else

	{

	{

		$onlinetoday = $lang->sprintf($lang->members_were_online_today, $todaycount);

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