Subversion Repositories ALCASAR

Rev

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

Rev 1508 Rev 1521
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: index.php 1508 2014-11-30 18:19:16Z richard $
2
# $Id: index.php 1521 2014-12-17 22:57:44Z richard $
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 88... Line 88...
88
			
88
			
89
			if ($res){
89
			if ($res){
90
				$connection_history.= "<ul>";
90
				$connection_history.= "<ul>";
91
				while(($row = @da_sql_fetch_array($res,$config))){
91
				while(($row = @da_sql_fetch_array($res,$config))){
92
					$connected = "";
92
					$connected = "";
93
					if ($row[acctstoptime] == "") $connected = " ($l_connected)";
93
					if ($row['acctstoptime'] == "") $connected = " ($l_connected)";
94
					$connection_history.="<li title='$row[username] $row[acctstarttime] $row[acctstoptime] (".secondsToDuration($row[acctsessiontime]).")'>$row[acctstarttime] (".secondsToDuration($row[acctsessiontime]).") $connected</li>";
94
					$connection_history.="<li title='$row[username] $row[acctstarttime] $row[acctstoptime] (".secondsToDuration($row['acctsessiontime']).")'>$row[acctstarttime] (".secondsToDuration($row[acctsessiontime]).") $connected</li>";
95
				}
95
				}
96
				$connection_history.="</ul>";
96
				$connection_history.="</ul>";
97
			}
97
			}
98
		}
98
		}
99
	}
99
	}