Vergleich online.php - 1.4.0 - 1.4.15

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * $Id: online.php 4052 2008-07-29 15:45:49Z Tikitiki $

 * $Id: online.php 5379 2011-02-21 11:06:42Z Tomm $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

 
define('THIS_SCRIPT', 'online.php');


$templatelist = "online,online_row,online_row_ip,online_today,online_today_row,online_iplookup,mostonline";
require_once "./global.php";


$templatelist = "online,online_row,online_row_ip,online_today,online_today_row,online_iplookup,mostonline";
require_once "./global.php";

Zeile 116Zeile 117
	switch($db->type)
{
case "sqlite3":

	switch($db->type)
{
case "sqlite3":

		case "sqlite2":	
$query = $db->simple_select("sessions", "COUNT(count_sid)", "(SELECT DISTINCT sid as count_sid FROM ".TABLE_PREFIX."sessions WHERE time > {$timesearch})");








		case "sqlite2":
$sessions = array();
$query = $db->simple_select("sessions", "sid", "time > {$timesearch}");
while($sid = $db->fetch_field($query, "sid"))
{
$sessions[$sid] = 1;
}
$online_count = count($sessions);
unset($sessions);

			break;
case "pgsql":
default:

			break;
case "pgsql":
default:

			$query = $db->simple_select("sessions", "COUNT(DISTINCT sid) as online", "time > {$timesearch}");


			$query = $db->simple_select("sessions", "COUNT(sid) as online", "time > {$timesearch}");
$online_count = $db->fetch_field($query, "online");

			break;
}

			break;
}

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

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

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

Zeile 167Zeile 175
		$plugins->run_hooks("online_user");

// Fetch the WOL activity

		$plugins->run_hooks("online_user");

// Fetch the WOL activity

		$user['activity'] = fetch_wol_activity($user['location']);

		$user['activity'] = fetch_wol_activity($user['location'], $user['nopermission']);


$botkey = my_strtolower(str_replace("bot=", '', $user['sid']));



$botkey = my_strtolower(str_replace("bot=", '', $user['sid']));