Vergleich online.php - 1.6.4 - 1.6.17

  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('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_iplookup,mostonline";

$templatelist = "online,online_row,online_row_ip,online_today,online_today_row";

require_once "./global.php";
require_once MYBB_ROOT."inc/functions_post.php";
require_once MYBB_ROOT."inc/functions_online.php";

require_once "./global.php";
require_once MYBB_ROOT."inc/functions_post.php";
require_once MYBB_ROOT."inc/functions_online.php";

Zeile 39Zeile 39
	$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}'");
$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");

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


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


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


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

		{
$start = 0;
$page = 1;

		}
}

		}
}

	else
{
$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 = '';
while($online = $db->fetch_array($query))

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

	{
if($online['invisible'] != 1 || $groupscache[$online['usergroup']]['canviewwolinvis'] == 1 || $online['uid'] == $mybb->user['uid'])
{
if($online['invisible'] == 1)
{
$invisiblemark = "*";
}
else
{
$invisiblemark = "";
}


	{
$invisiblemark = '';
if($online['invisible'] == 1)
{
$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 91Zeile 96
	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");

Zeile 153Zeile 170
			break;
}


			break;
}


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