<?php
$all = isset($_GET['all']) ? 1 : FALSE;
$allQuery = $all ? FALSE : 'where `userid` > 0';
$total = DB::run()->querySingle("select count(`id`) from `online` $allQuery;");
if ($total)
{
require_once 'core/navsetvars.php';
$query = DB::run()->query("select * from `online` $allQuery ORDER BY `time` DESC LIMIT $start, $config[ipp];");
}
$config['newtitle'] = 'Online';
$tpl['file'] = 'online';
require_once 'core/header.php';