Zeile 6 | Zeile 6 |
---|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* $Id: online.php 5638 2011-10-26 08:59:45Z Tomm $
| * $Id: online.php 5694 2011-12-01 12:50:34Z Tomm $
|
*/
define("IN_MYBB", 1);
| */
define("IN_MYBB", 1);
|
Zeile 38 | Zeile 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 62 | Zeile 65 |
---|
$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 = '';
|
$invis_count = 0;
| |
while($online = $db->fetch_array($query)) { $invisiblemark = ''; if($online['invisible'] == 1) {
|
while($online = $db->fetch_array($query)) { $invisiblemark = ''; if($online['invisible'] == 1) {
|
++$invis_count;
| |
$invisiblemark = "*"; }
| $invisiblemark = "*"; }
|