Vergleich online.php - 1.4.1 - 1.4.8

  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 4081 2008-08-08 01:47:02Z Tikitiki $

 * $Id: online.php 4341 2009-04-06 21:49:53Z Tikitiki $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 117Zeile 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 168Zeile 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']));