Subversion Repositories ALCASAR

Rev

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

Rev 1501 Rev 1503
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: index.php 1501 2014-11-27 17:57:17Z franck $
2
# $Id: index.php 1503 2014-11-27 20:18:57Z franck $
3
#
3
#
4
# index.php for ALCASAR captive portal
4
# index.php for ALCASAR captive portal
5
# by REXY
5
# by REXY
6
# UI & css style by stephane ERARD
6
# UI & css style by stephane ERARD
7
# The contents of this file may be used under the terms of the GNU
7
# The contents of this file may be used under the terms of the GNU
Line 89... Line 89...
89
			
89
			
90
			if ($res){
90
			if ($res){
91
				$connection_history.= "<ul>";
91
				$connection_history.= "<ul>";
92
				while(($row = @da_sql_fetch_array($res,$config))){
92
				while(($row = @da_sql_fetch_array($res,$config))){
93
					$connected = "";
93
					$connected = "";
94
					if ($row[acctstoptime] == "") $connected = " ($l_connected)";
94
					if ($row['acctstoptime'] == "") $connected = " ($l_connected)";
95
					$connection_history.="<li title='$row[username] $row[acctstarttime] $row[acctstoptime] (".secondsToDuration($row[acctsessiontime]).")'>$row[acctstarttime] (".secondsToDuration($row[acctsessiontime]).") $connected</li>";
95
					$connection_history.="<li title='$row['username'] $row['acctstarttime'] $row['acctstoptime'] (".secondsToDuration($row['acctsessiontime']).")'>$row['acctstarttime'] (".secondsToDuration($row['acctsessiontime']).") $connected</li>";
96
				}
96
				}
97
				$connection_history.="</ul>";
97
				$connection_history.="</ul>";
98
			}
98
			}
99
		}
99
		}
100
	}
100
	}