Subversion Repositories ALCASAR

Rev

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

Rev 2450 Rev 2535
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: status.php 2450 2017-12-05 21:53:42Z tom.houdayer $
2
# $Id: status.php 2535 2018-04-30 04:03:17Z tom.houdayer $
3
#
3
#
4
# status.php for ALCASAR captive portal
4
# status.php for ALCASAR captive portal
5
# by steweb57 & Rexy
5
# by steweb57 & Rexy
6
# 
6
# 
7
/****************************************************************
7
/****************************************************************
Line 299... Line 299...
299
 
299
 
300
			// Retrieve number of open session
300
			// Retrieve number of open session
301
			$sql = "SELECT COUNT(*) AS nb_open FROM radacct WHERE username = '$user[5]' AND acctstoptime IS NULL;";
301
			$sql = "SELECT COUNT(*) AS nb_open FROM radacct WHERE username = '$user[5]' AND acctstoptime IS NULL;";
302
			$res = @da_sql_query($link, $config, $sql);
302
			$res = @da_sql_query($link, $config, $sql);
303
			if ($res) {
303
			if ($res) {
304
				$row = @da_sql_fetch_array($search,$config);
304
				$row = @da_sql_fetch_array($res, $config);
305
				$nb_open_session = $row['nb_open'];
305
				$nb_open_session = $row['nb_open'];
306
			}
306
			}
307
 
307
 
308
			// Retrieve first name & last name
308
			// Retrieve first name & last name
309
			$sql = "SELECT Name FROM userinfo WHERE UserName='$user[5]'";
309
			$sql = "SELECT Name FROM userinfo WHERE UserName='$user[5]'";