#!/usr/bin/env php
// Listar solo usuarios online segĂșn rm_onlineradius
public function listOnlineRadiusUsers(int $offset, int $limit): array {
if ($this->hasTable('rm_onlineradius')) {
$sql = "SELECT r.username, r.cid, r.cpeip FROM rm_onlineradius r ORDER BY r.username ASC LIMIT :off, :lim";
$st = $this->db->prepare($sql);
$st->bindValue(':off', $offset, PDO::PARAM_INT);
$st->bindValue(':lim', $limit, PDO::PARAM_INT);
$st->execute();
return $st->fetchAll(PDO::FETCH_ASSOC);
}
return [];
}
Warning: Use of undefined constant STDOUT - assumed 'STDOUT' (this will throw an Error in a future version of PHP) in /var/www/html/isp-manager/bin/enforce.php on line 51
Warning: fwrite() expects parameter 1 to be resource, string given in /var/www/html/isp-manager/bin/enforce.php on line 51