/web/status.php |
---|
301,7 → 301,7 |
$sql = "SELECT COUNT(*) AS nb_open FROM radacct WHERE username = '$user[5]' AND acctstoptime IS NULL;"; |
$res = @da_sql_query($link, $config, $sql); |
if ($res) { |
$row = @da_sql_fetch_array($search,$config); |
$row = @da_sql_fetch_array($res, $config); |
$nb_open_session = $row['nb_open']; |
} |