Subversion Repositories ALCASAR

Rev

Rev 1956 | Rev 2222 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1956 Rev 2191
Line 1... Line 1...
1
<?php
1
<?php
-
 
2
# $Id: user_stats.php 2191 2017-04-28 22:00:32Z tom.houdayer $
-
 
3
 
2
require('/etc/freeradius-web/config.php');
4
require('/etc/freeradius-web/config.php');
3
require('../lib/functions.php');
5
require('../lib/functions.php');
4
require('../lib/sql/nas_list.php');
6
require('../lib/sql/nas_list.php');
5
require_once('../lib/xlat.php');
7
require_once('../lib/xlat.php');
6
?>
8
?>
Line 255... Line 257...
255
<?php
257
<?php
256
foreach ($nas_list as $nas){
258
foreach ($nas_list as $nas){
257
	$name = $nas['name'];
259
	$name = $nas['name'];
258
	if ($nas['ip'] == '')
260
	if ($nas['ip'] == '')
259
		continue;
261
		continue;
260
	$servers[$name] = $nas[ip];
262
	$servers[$name] = $nas['ip'];
261
}
263
}
262
ksort($servers);
264
ksort($servers);
263
foreach ($servers as $name => $ip){
265
foreach ($servers as $name => $ip){
264
	if ($server == $ip)
266
	if (isset($server) && ($server == $ip))
265
		echo "<option selected value=\"$ip\">$name\n";
267
		echo "<option selected value=\"$ip\">$name\n";
266
	else
268
	else
267
		echo "<option value=\"$ip\">$name\n";
269
		echo "<option value=\"$ip\">$name\n";
268
}
270
}
269
if (isset($server) && ($server == '' || $server == 'all'))
271
if (isset($server) && ($server == '' || $server == 'all'))