Subversion Repositories ALCASAR

Rev

Rev 735 | Rev 790 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 735 Rev 737
1
<?php
1
<?php
2
#
2
#
3
# status.php for Alcasar captive portal
3
# status.php for Alcasar captive portal
4
# by steweb57
4
# by steweb57
5
# 
5
# 
6
$organisme = "";
6
$organisme = "etrs-ssic";
7
$remote_ip = ($_SERVER['REMOTE_ADDR']);
7
$remote_ip = ($_SERVER['REMOTE_ADDR']);
8
$connection_history =  "";
8
$connection_history =  "";
9
$nb_connection_history = 3;
9
$nb_connection_history = 3;
10
 
10
 
11
//On récupère le nom de connexion de la session active. //on a l'info en ajax, mais trop tard -> A MODIFIER
11
//On récupère le nom de connexion de la session active. //on a l'info en ajax, mais trop tard -> A MODIFIER
12
exec ("sudo /usr/sbin/chilli_query list|grep $remote_ip" , $tab);
12
exec ("sudo /usr/sbin/chilli_query list|grep $remote_ip" , $tab);
13
$user = explode (" ", $tab[0]);
13
$user = explode (" ", $tab[0]);
14
 
14
 
15
#### Affichage des 3 dernières connexions de $user[5]
15
#### Affichage des 3 dernières connexions de $user[5]
16
function secondsToDuration($seconds = null){
16
function secondsToDuration($seconds = null){
17
	if ($seconds == null) return "";
17
	if ($seconds == null) return "";
18
 
18
 
19
	$temp = $seconds % 3600;
19
	$temp = $seconds % 3600;
20
	$time[0] = ( $seconds - $temp ) / 3600 ;	// hours
20
	$time[0] = ( $seconds - $temp ) / 3600 ;	// hours
21
	$time[2] = $temp % 60 ;				// seconds
21
	$time[2] = $temp % 60 ;				// seconds
22
	$time[1] = ( $temp - $time[2] ) / 60;		// minutes
22
	$time[1] = ( $temp - $time[2] ) / 60;		// minutes
23
	
23
	
24
	return $time[0]." h ".$time[1]." m ".$time[2]." s";
24
	return $time[0]." h ".$time[1]." m ".$time[2]." s";
25
}
25
}
26
 
26
 
27
 
27
 
28
 
28
 
29
# Choice of language
29
# Choice of language
30
//reste quelques traductions à faire
30
//reste quelques traductions à faire
31
$Language = 'en';
31
$Language = 'en';
32
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
32
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
33
  $Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
33
  $Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
34
  $Language = strtolower(substr(chop($Langue[0]),0,2)); }
34
  $Language = strtolower(substr(chop($Langue[0]),0,2)); }
35
if($Language == 'es'){
35
if($Language == 'es'){
36
	$l_login1			= "El éxito de la autenticación";
36
	$l_login1			= "El éxito de la autenticación";
37
	$l_login2			= "Cierre esta ventana interrumpte la sesion.";
37
	$l_login2			= "Cierre esta ventana interrumpte la sesion.";
38
	$l_logout			= "Conexión de cierre";
38
	$l_logout			= "Conexión de cierre";
39
	$l_logout_question	= "Are you sure you want to disconnect now?";	//à traduire
39
	$l_logout_question	= "Are you sure you want to disconnect now?";	//à traduire
40
	$l_loggedout		= "Su sesión se cierra";
40
	$l_loggedout		= "Su sesión se cierra";
41
	$l_wait				= "Por favor, espere un momento ...";
41
	$l_wait				= "Por favor, espere un momento ...";
42
	$l_state_label				= "State";		//à traduire
42
	$l_state_label				= "State";		//à traduire
43
	$l_session_id_label			= "Session ID";	//à traduire
43
	$l_session_id_label			= "Session ID";	//à traduire
44
	$l_max_session_time_label	= "Max Session Time";	//à traduire
44
	$l_max_session_time_label	= "Max Session Time";	//à traduire
45
	$l_max_idle_time_label		= "Max Idle Time";		//à traduire
45
	$l_max_idle_time_label		= "Max Idle Time";		//à traduire
46
	$l_start_time_label			= "Start Time";	//à traduire
46
	$l_start_time_label			= "Start Time";	//à traduire
47
	$l_session_time_label		= "Tiempo de conexión";
47
	$l_session_time_label		= "Tiempo de conexión";
48
	$l_idle_time_label			= "Idle Time";	//à traduire
48
	$l_idle_time_label			= "Idle Time";	//à traduire
49
	$l_downloaded_label			= "Downloaded";	//à traduire
49
	$l_downloaded_label			= "Downloaded";	//à traduire
50
	$l_uploaded_label			= "Uploaded";	//à traduire
50
	$l_uploaded_label			= "Uploaded";	//à traduire
51
	$l_original_url_label		= "Original URL";	//à traduire
51
	$l_original_url_label		= "Original URL";	//à traduire
52
	$l_not_available			= "Not available";	//à traduire
52
	$l_not_available			= "Not available";	//à traduire
53
	$l_na						= "N/A";		//à traduire
53
	$l_na						= "N/A";		//à traduire
54
	$l_error					= "error";		//à traduire
54
	$l_error					= "error";		//à traduire
55
	$l_welcome					= "Welcome";	//à traduire
55
	$l_welcome					= "Welcome";	//à traduire
56
	$l_conn_history				= "Your last $nb_connection_history connections";	//à traduire
56
	$l_conn_history				= "Your last $nb_connection_history connections";	//à traduire
57
	$l_connected 			= "logged"; //à traduire 
57
	$l_connected 			= "logged"; //à traduire
-
 
58
	$l_a_connection			= "Active connection detected on LAN"; //à traduire
-
 
59
	$l_a_connection_time		= "time(s)"; //à traduire
58
}
60
}
59
else if($Language == 'de'){
61
else if($Language == 'de'){
60
	$l_login1			= "Erfolgreiche Authentifizierung";
62
	$l_login1			= "Erfolgreiche Authentifizierung";
61
	$l_login2			= "Schlißen dieses fensters unterbricht die sitzung";
63
	$l_login2			= "Schlißen dieses fensters unterbricht die sitzung";
62
	$l_logout			= "Beenden der Verbindung";
64
	$l_logout			= "Beenden der Verbindung";
63
	$l_logout_question	= "Are you sure you want to disconnect now?";	//à traduire
65
	$l_logout_question	= "Are you sure you want to disconnect now?";	//à traduire
64
	$l_loggedout		= "Ihre Sitzung ist geschlossen";
66
	$l_loggedout		= "Ihre Sitzung ist geschlossen";
65
	$l_wait				= "Bitte warten Sie einen Moment ...";
67
	$l_wait				= "Bitte warten Sie einen Moment ...";
66
	$l_state_label				= "State";		//à traduire
68
	$l_state_label				= "State";		//à traduire
67
	$l_session_id_label			= "Session ID";	//à traduire
69
	$l_session_id_label			= "Session ID";	//à traduire
68
	$l_max_session_time_label	= "Max Session Time";	//à traduire
70
	$l_max_session_time_label	= "Max Session Time";	//à traduire
69
	$l_max_idle_time_label		= "Max Idle Time";		//à traduire
71
	$l_max_idle_time_label		= "Max Idle Time";		//à traduire
70
	$l_start_time_label			= "Start Time";	//à traduire
72
	$l_start_time_label			= "Start Time";	//à traduire
71
	$l_session_time_label		= "Online-zeit";
73
	$l_session_time_label		= "Online-zeit";
72
	$l_idle_time_label			= "Idle Time";	//à traduire
74
	$l_idle_time_label			= "Idle Time";	//à traduire
73
	$l_downloaded_label			= "Downloaded";	//à traduire
75
	$l_downloaded_label			= "Downloaded";	//à traduire
74
	$l_uploaded_label			= "Uploaded";	//à traduire
76
	$l_uploaded_label			= "Uploaded";	//à traduire
75
	$l_original_url_label		= "Original URL";	//à traduire
77
	$l_original_url_label		= "Original URL";	//à traduire
76
	$l_not_available			= "Not available";	//à traduire
78
	$l_not_available			= "Not available";	//à traduire
77
	$l_na						= "N/A";		//à traduire
79
	$l_na						= "N/A";		//à traduire
78
	$l_error					= "error";		//à traduire
80
	$l_error					= "error";		//à traduire
79
	$l_welcome					= "Welcome"; 	//à traduire
81
	$l_welcome					= "Welcome"; 	//à traduire
80
	$l_conn_history				= "Your last $nb_connection_history connections";	//à traduire
82
	$l_conn_history				= "Your last $nb_connection_history connections";	//à traduire
81
	$l_connected 			= "logged"; //à traduire 
83
	$l_connected 			= "logged"; //à traduire 
-
 
84
	$l_a_connection			= "Active connection detected on LAN"; //à traduire
-
 
85
	$l_a_connection_time		= "time(s)"; //à traduire
82
}
86
}
83
else if($Language == 'nl'){
87
else if($Language == 'nl'){
84
	$l_login1			= "Succesvolle authenticatie";
88
	$l_login1			= "Succesvolle authenticatie";
85
	$l_login2			= "Dit venster te sluiten onderbreekt uw sessie.";
89
	$l_login2			= "Dit venster te sluiten onderbreekt uw sessie.";
86
	$l_logout			= "Slotkoers verbinding";
90
	$l_logout			= "Slotkoers verbinding";
87
	$l_logout_question	= "Are you sure you want to disconnect now?";	//à traduire
91
	$l_logout_question	= "Are you sure you want to disconnect now?";	//à traduire
88
	$l_loggedout		= "Uw sessie is gesloten";
92
	$l_loggedout		= "Uw sessie is gesloten";
89
	$l_wait				= "Wacht een moment ...";
93
	$l_wait				= "Wacht een moment ...";
90
	$l_state_label				= "State";		//à traduire
94
	$l_state_label				= "State";		//à traduire
91
	$l_session_id_label			= "Session ID";	//à traduire
95
	$l_session_id_label			= "Session ID";	//à traduire
92
	$l_max_session_time_label	= "Max Session Time";	//à traduire
96
	$l_max_session_time_label	= "Max Session Time";	//à traduire
93
	$l_max_idle_time_label		= "Max Idle Time";		//à traduire
97
	$l_max_idle_time_label		= "Max Idle Time";		//à traduire
94
	$l_start_time_label			= "Start Time";	//à traduire
98
	$l_start_time_label			= "Start Time";	//à traduire
95
	$l_session_time_label		= "Online tijd";
99
	$l_session_time_label		= "Online tijd";
96
	$l_idle_time_label			= "Idle Time";	//à traduire
100
	$l_idle_time_label			= "Idle Time";	//à traduire
97
	$l_downloaded_label			= "Downloaded";	//à traduire
101
	$l_downloaded_label			= "Downloaded";	//à traduire
98
	$l_uploaded_label			= "Uploaded";	//à traduire
102
	$l_uploaded_label			= "Uploaded";	//à traduire
99
	$l_original_url_label		= "Original URL";	//à traduire
103
	$l_original_url_label		= "Original URL";	//à traduire
100
	$l_not_available			= "Not available";	//à traduire
104
	$l_not_available			= "Not available";	//à traduire
101
	$l_na						= "N/A";		//à traduire
105
	$l_na						= "N/A";		//à traduire
102
	$l_error					= "error";		//à traduire
106
	$l_error					= "error";		//à traduire
103
	$l_welcome					= "Welcome";	//à traduire
107
	$l_welcome					= "Welcome";	//à traduire
104
	$l_conn_history				= "Your last $nb_connection_history connections";	//à traduire
108
	$l_conn_history				= "Your last $nb_connection_history connections";	//à traduire
105
	$l_connected 			= "logged"; //à traduire 
109
	$l_connected 			= "logged"; //à traduire 
-
 
110
	$l_a_connection			= "Active connection detected on LAN"; //à traduire
-
 
111
	$l_a_connection_time		= "time(s)"; //à traduire
106
}
112
}
107
else if($Language == 'fr'){
113
else if($Language == 'fr'){
108
	$l_login1			= "Authentification r&eacute;ussie";
114
	$l_login1			= "Authentification r&eacute;ussie";
109
	$l_login2			= "La fermeture de cette fenêtre interrompt votre session.";
115
	$l_login2			= "La fermeture de cette fenêtre interrompt votre session.";
110
	$l_logout			= "Fermeture de la session";
116
	$l_logout			= "Fermeture de la session";
111
	$l_logout_question	= "Etes vous sûr de vouloir vous déconnecter?";
117
	$l_logout_question	= "Etes vous sûr de vouloir vous déconnecter?";
112
	$l_loggedout		= "Votre session est fermée";
118
	$l_loggedout		= "Votre session est fermée";
113
	$l_wait				= "Patientez un instant ....";
119
	$l_wait				= "Patientez un instant ....";
114
	$l_state_label				= "Etat";
120
	$l_state_label				= "Etat";
115
	$l_session_id_label			= "Session ID";
121
	$l_session_id_label			= "Session ID";
116
	$l_max_session_time_label	= "Temps de connexion autoris&eacute";
122
	$l_max_session_time_label	= "Temps de connexion autoris&eacute";
117
	$l_max_idle_time_label		= "Inactivit&eacute; max. autoris&eacute;e";
123
	$l_max_idle_time_label		= "Inactivit&eacute; max. autoris&eacute;e";
118
	$l_start_time_label			= "D&eacute;but de connexion";
124
	$l_start_time_label			= "D&eacute;but de connexion";
119
	$l_session_time_label		= "Dur&eacute;e de connexion";
125
	$l_session_time_label		= "Dur&eacute;e de connexion";
120
	$l_idle_time_label			= "Inactivit&eacute;";
126
	$l_idle_time_label			= "Inactivit&eacute;";
121
	$l_downloaded_label			= "Donn&eacute;es t&eacute;l&eacute;charg&eacute;es";
127
	$l_downloaded_label			= "Donn&eacute;es t&eacute;l&eacute;charg&eacute;es";
122
	$l_uploaded_label			= "Donn&eacute;es envoy&eacute;es";
128
	$l_uploaded_label			= "Donn&eacute;es envoy&eacute;es";
123
	$l_original_url_label		= "URL demand&eacute;e";
129
	$l_original_url_label		= "URL demand&eacute;e";
124
	$l_not_available			= "Non disponible";
130
	$l_not_available			= "Non disponible";
125
	$l_na						= "N/D";	//à traduire
131
	$l_na						= "N/D";	//à traduire
126
	$l_error					= "erreur";
132
	$l_error					= "erreur";
127
	$l_welcome					= "Bienvenue";
133
	$l_welcome					= "Bienvenue";
128
	$l_conn_history				= "Vos $nb_connection_history derni&egrave;res connexions";
134
	$l_conn_history				= "Vos $nb_connection_history derni&egrave;res connexions";
129
	$l_connected 			= "connect&eacute;";  
135
	$l_connected 			= "session active";  
-
 
136
	$l_a_connection			= "Vous &ecirc;tes d&eacute;j&agrave; connect&eacute; sur le r&eacute;seau";
-
 
137
	$l_a_connection_time		= "fois";
130
}
138
}
131
else {
139
else {
132
	$l_login1			= "Successful authentication.";
140
	$l_login1			= "Successful authentication.";
133
	$l_login2			= "Closing this window interrupts your session.";
141
	$l_login2			= "Closing this window interrupts your session.";
134
	$l_logout			= "Closing connection";
142
	$l_logout			= "Closing connection";
135
	$l_logout_question	= "Are you sure you want to disconnect now?";
143
	$l_logout_question	= "Are you sure you want to disconnect now?";
136
	$l_loggedout		= "Your session is closed";
144
	$l_loggedout		= "Your session is closed";
137
	$l_wait				= "Please wait a moment ...";
145
	$l_wait				= "Please wait a moment ...";
138
	$l_state_label				= "State";
146
	$l_state_label				= "State";
139
	$l_session_id_label			= "Session ID";
147
	$l_session_id_label			= "Session ID";
140
	$l_max_session_time_label	= "Max Session Time";
148
	$l_max_session_time_label	= "Max Session Time";
141
	$l_max_idle_time_label		= "Max Idle Time";
149
	$l_max_idle_time_label		= "Max Idle Time";
142
	$l_start_time_label			= "Start Time";
150
	$l_start_time_label			= "Start Time";
143
	$l_session_time_label		= "Session Time";
151
	$l_session_time_label		= "Session Time";
144
	$l_idle_time_label			= "Idle Time";
152
	$l_idle_time_label			= "Idle Time";
145
	$l_downloaded_label			= "Downloaded";
153
	$l_downloaded_label			= "Downloaded";
146
	$l_uploaded_label			= "Uploaded";
154
	$l_uploaded_label			= "Uploaded";
147
	$l_original_url_label		= "Original URL";
155
	$l_original_url_label		= "Original URL";
148
	$l_not_available			= "Not available";
156
	$l_not_available			= "Not available";
149
	$l_na						= "N/A";
157
	$l_na						= "N/A";
150
	$l_error					= "error";
158
	$l_error					= "error";
151
	$l_welcome					= "Welcome";
159
	$l_welcome					= "Welcome";
152
	$l_conn_history				= "Your last $nb_connection_history connections";
160
	$l_conn_history				= "Your last $nb_connection_history connections";
153
	$l_connected 			= "logged"; 
161
	$l_connected 			= "logged"; 
-
 
162
	$l_a_connection			= "Active connection detected on LAN";
-
 
163
	$l_a_connection_time		= "time(s)";
154
}
164
}
155
 
165
 
156
// si on a pas d'accès à la bdd, la page s'affiche quand même correctement
166
// si on a pas d'accès à la bdd, la page s'affiche quand même correctement
157
if (isset($user[5])){
167
if (isset($user[5])){
158
	if ((is_file("./acc/manager/lib/sql/drivers/mysql/functions.php"))&&(is_file("/etc/freeradius-web/config.php"))){
168
	if ((is_file("./acc/manager/lib/sql/drivers/mysql/functions.php"))&&(is_file("/etc/freeradius-web/config.php"))){
159
		include_once("/etc/freeradius-web/config.php");
169
		include_once("/etc/freeradius-web/config.php");
160
		include_once("./acc/manager/lib/sql/drivers/mysql/functions.php");
170
		include_once("./acc/manager/lib/sql/drivers/mysql/functions.php");
161
		
171
		
162
		$sql = "SELECT UserName, AcctStartTime, AcctStopTime, acctsessiontime FROM radacct WHERE UserName='$user[5]' ORDER BY AcctStartTime DESC LIMIT 0 , $nb_connection_history";
172
		$sql = "SELECT UserName, AcctStartTime, AcctStopTime, acctsessiontime FROM radacct WHERE UserName='$user[5]' ORDER BY AcctStartTime DESC LIMIT 0 , $nb_connection_history";
163
		$link = @da_sql_pconnect($config); // on affiche pas les erreurs
173
		$link = @da_sql_pconnect($config); // on affiche pas les erreurs
164
		
174
		
165
		if ($link){
175
		if ($link){
166
			$res = @da_sql_query($link,$config,$sql); // on affiche pas les erreurs
176
			$res = @da_sql_query($link,$config,$sql); // on affiche pas les erreurs
167
			
177
			
168
			if ($res){
178
			if ($res){
169
				$connection_history.= "<ul>";
179
				$connection_history.= "<ul>";
170
				while(($row = @da_sql_fetch_array($res,$config))){
180
				while(($row = @da_sql_fetch_array($res,$config))){
171
					$connected = "";
181
					$connected = "";
172
					$start_conn = date_create($row[acctstarttime]);
182
					$start_conn = date_create($row[acctstarttime]);
-
 
183
					$connection_history.="<li>".date_format($start_conn, 'd M Y - H:i:s')." - (";
173
					if ($row[acctstoptime] == "") $connected = " ($l_connected)";
184
					if ($row[acctstoptime] == "") {
-
 
185
						$connected = $l_connected;
-
 
186
					}else{
-
 
187
						$connected = secondsToDuration($row[acctsessiontime]);
-
 
188
					}
-
 
189
					$connection_history.= "$connected)</li>";
174
					$connection_history.="<li>".date_format($start_conn, 'd M Y - H:i:s')." - (".secondsToDuration($row[acctsessiontime]).") $connected</li>";
190
//					$connection_history.="<li>".date_format($start_conn, 'd M Y - H:i:s')." - (".secondsToDuration($row[acctsessiontime]).") $connected</li>";
175
				}
191
				}
176
				$connection_history.="</ul>";
192
				$connection_history.="</ul>";
177
			}
193
			}
178
		}
194
		}
-
 
195
		$sql_2 = "SELECT UserName, AcctStartTime, AcctStopTime, acctsessiontime FROM radacct WHERE UserName='$user[5]' AND AcctStopTime IS NULL ORDER BY AcctStartTime DESC";
-
 
196
		$link_2 = @da_sql_pconnect($config); // on affiche pas les erreurs
-
 
197
		
-
 
198
		if ($link_2){
-
 
199
			$res_2 = @da_sql_query($link_2,$config,$sql_2); // on affiche pas les erreurs
-
 
200
			$a_connection = "";
-
 
201
			if ($res_2){
-
 
202
				while(($row_2 = @da_sql_fetch_array($res_2,$config))){
-
 
203
					$a_connected = 1;
-
 
204
					if ($row_2[acctstoptime] == "") $a_connected = $a_connected + 1;
-
 
205
				}
-
 
206
				if ($a_connected > 1){
-
 
207
					$a_connection = $l_a_connection." ".$a_connected." ".$l_a_connection_time;
-
 
208
				}
-
 
209
			}
-
 
210
		}
179
	}
211
	}
180
}
212
}
181
?>
213
?>
182
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
214
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
183
<html lang="fr">
215
<html lang="fr">
184
<!-- written by steweb57 -->
216
<!-- written by steweb57 -->
185
	<head>
217
	<head>
186
		<title>Alcasar - <?php echo $organisme; ?></title>
218
		<title>Alcasar - <?php echo $organisme; ?></title>
187
		<meta http-equiv="Cache-control" content="no-cache">
219
		<meta http-equiv="Cache-control" content="no-cache">
188
		<meta http-equiv="Pragma" content="no-cache">
220
		<meta http-equiv="Pragma" content="no-cache">
189
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
221
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
190
		<script type="text/javascript" src="./js/ChilliLibrary.js"></script>
222
		<script type="text/javascript" src="./js/ChilliLibrary.js"></script>
191
		<script type="text/javascript" src="./js/statusControler.js"></script>
223
		<script type="text/javascript" src="./js/statusControler.js"></script>
192
		<link type="text/css" href="./css/status.css" rel="stylesheet">
224
		<link type="text/css" href="./css/status.css" rel="stylesheet">
193
	</head>
225
	</head>
194
	<body>
226
	<body>
195
		<div id="Chilli">
227
		<div id="Chilli">
196
		<div id="locationName"></div>
228
		<div id="locationName"></div>
197
		<div id="chilliPage">
229
		<div id="chilliPage">
198
		<div id="loggedOutPage" class="c1">
230
		<div id="loggedOutPage" class="c1">
199
			<table id="disconnectTable">
231
			<table id="disconnectTable">
200
				<tr>
232
				<tr>
201
					<td><img height="150" src="./images/logo-alcasar.png" alt="logo"></td>
233
					<td><img height="150" src="./images/logo-alcasar.png" alt="logo"></td>
202
					<td><p class="text_auth"><?php echo $l_loggedout; ?></p></td>
234
					<td><p class="text_auth"><?php echo $l_loggedout; ?></p></td>
203
				</tr>
235
				</tr>
204
			</table>
236
			</table>
205
		</div>
237
		</div>
206
		<div id="statusPage" class="c1">
238
		<div id="statusPage" class="c1">
207
			<table border="0" id="statusTable">
239
			<table border="0" id="statusTable">
208
				<tr>
240
				<tr>
-
 
241
					<td colspan="2">
-
 
242
						<table border="0" cellpadding="0" cellspacing="0" width="100%">
-
 
243
							<tr>
-
 
244
								<td valign="top" rowspan="4">
209
					<td rowspan="2" valign="top"><img height="150" src="./images/logo-alcasar.png" alt="logo"></td>
245
									<img height="150" src="./images/logo-alcasar.png" alt="logo">
210
					<td>
246
								</td>
211
						<p class="text_auth_welcom"><?php echo $l_login1; ?></p>
247
								<td class="text_auth_welcom">
-
 
248
									<?php echo $l_login1; ?>
-
 
249
								</td>
-
 
250
							</tr>
-
 
251
							<tr>
-
 
252
								<td class="text_auth">
-
 
253
									<?php echo $l_welcome; ?>
212
						<p class="text_auth"><?php echo $l_welcome; ?><br><span id="userName"></span></p>
254
									<br><span id="userName"></span>
-
 
255
								</td>
-
 
256
							</tr>
-
 
257
							<tr>
-
 
258
								<td class="alert">
-
 
259
									<?php echo $a_connection; ?>
-
 
260
								</td>
-
 
261
							</tr>
213
						<hr>
262
							<tr>
-
 
263
								<td class="text_warn">
214
						<?php echo $l_login2; ?>
264
									<?php echo $l_login2; ?>
-
 
265
								</td>
-
 
266
							</tr>
-
 
267
							<tr>
-
 
268
								<td colspan="2" align="center" class="link_logout">
-
 
269
									<a href="#" onclick="return logoutWithConfirmation('<?php echo $l_logout_question;?>');" class="lien_deco"><?php echo $l_logout; ?></a>
-
 
270
								</td>
-
 
271
							</tr>
-
 
272
						</table>
215
					</td>
273
					</td>
216
				</tr>
274
				</tr>
217
				<tr>
-
 
218
					<td align="center"><br><a href="#" onclick="return logoutWithConfirmation('<?php echo $l_logout_question;?>');" class="lien_deco"><?php echo $l_logout; ?></a><br><br></td>
-
 
219
				</tr>
-
 
220
<!--tr id="connectRow">
275
<!--tr id="connectRow">
221
<td id="statusMessageLabel" class="chilliLabel"><strong><?php echo $l_state_label; ?></strong></td>
276
<td id="statusMessageLabel" class="chilliLabel"><strong><?php echo $l_state_label; ?></strong></td>
222
<td id="statusMessage" class="chilliValue">Connected</td>
277
<td id="statusMessage" class="chilliValue">Connected</td>
223
</tr-->
278
</tr-->
224
<!--tr id="sessionIdRow">
279
<!--tr id="sessionIdRow">
225
<td id="sessionIdLabel" class="chilliLabel"><strong><?php echo $l_session_id_label; ?></strong></td>
280
<td id="sessionIdLabel" class="chilliLabel"><strong><?php echo $l_session_id_label; ?></strong></td>
226
<td id="sessionId" class="chilliValue"><?php echo $l_not_available; ?></td>
281
<td id="sessionId" class="chilliValue"><?php echo $l_not_available; ?></td>
227
</tr-->
282
</tr-->
228
				<tr id="sessionTimeoutRow">
283
				<tr id="sessionTimeoutRow">
229
					<td id="sessionTimeoutLabel" class="chilliLabel"><?php echo $l_max_session_time_label; ?></td>
284
					<td id="sessionTimeoutLabel" class="chilliLabel"><?php echo $l_max_session_time_label; ?></td>
230
					<td id="sessionTimeout" class="chilliValue"><?php echo $l_not_available; ?></td>
285
					<td id="sessionTimeout" class="chilliValue"><?php echo $l_not_available; ?></td>
231
				</tr>
286
				</tr>
232
				<tr id="idleTimeoutRow">
287
				<tr id="idleTimeoutRow">
233
					<td id="idleTimeoutLabel" class="chilliLabel"><?php echo $l_max_idle_time_label; ?></td>
288
					<td id="idleTimeoutLabel" class="chilliLabel"><?php echo $l_max_idle_time_label; ?></td>
234
					<td id="idleTimeout" class="chilliValue"><?php echo $l_not_available; ?></td>
289
					<td id="idleTimeout" class="chilliValue"><?php echo $l_not_available; ?></td>
235
				</tr>
290
				</tr>
236
				<tr id="startTimeRow">
291
				<tr id="startTimeRow">
237
					<td id="startTimeLabel" class="chilliLabel"><?php echo $l_start_time_label; ?></td>
292
					<td id="startTimeLabel" class="chilliLabel"><?php echo $l_start_time_label; ?></td>
238
					<td id="startTime" class="chilliValue"><?php echo $l_not_available; ?></td>
293
					<td id="startTime" class="chilliValue"><?php echo $l_not_available; ?></td>
239
				</tr>
294
				</tr>
240
				<tr id="sessionTimeRow">
295
				<tr id="sessionTimeRow">
241
					<td id="sessionTimeLabel" class="chilliLabel"><?php echo $l_session_time_label; ?></td>
296
					<td id="sessionTimeLabel" class="chilliLabel"><?php echo $l_session_time_label; ?></td>
242
					<td id="sessionTime" class="chilliValue"><?php echo $l_not_available; ?></td>
297
					<td id="sessionTime" class="chilliValue"><?php echo $l_not_available; ?></td>
243
				</tr>
298
				</tr>
244
				<tr id="idleTimeRow">
299
				<tr id="idleTimeRow">
245
					<td id="idleTimeLabel" class="chilliLabel"><?php echo $l_idle_time_label; ?></td>
300
					<td id="idleTimeLabel" class="chilliLabel"><?php echo $l_idle_time_label; ?></td>
246
					<td id="idleTime" class="chilliValue"><?php echo $l_not_available; ?></td>
301
					<td id="idleTime" class="chilliValue"><?php echo $l_not_available; ?></td>
247
				</tr>
302
				</tr>
248
				<tr id="inputOctetsRow">
303
				<tr id="inputOctetsRow">
249
					<td id="inputOctetsLabel" class="chilliLabel"><?php echo $l_downloaded_label; ?></td>
304
					<td id="inputOctetsLabel" class="chilliLabel"><?php echo $l_downloaded_label; ?></td>
250
					<td id="inputOctets" class="chilliValue"><?php echo $l_na; ?></td>
305
					<td id="inputOctets" class="chilliValue"><?php echo $l_na; ?></td>
251
				</tr>
306
				</tr>
252
				<tr id="outputOctetsRow">
307
				<tr id="outputOctetsRow">
253
					<td id="outputOctetsLabel" class="chilliLabel"><?php echo $l_uploaded_label; ?></td>
308
					<td id="outputOctetsLabel" class="chilliLabel"><?php echo $l_uploaded_label; ?></td>
254
					<td id="outputOctets" class="chilliValue"><?php echo $l_na; ?></td>
309
					<td id="outputOctets" class="chilliValue"><?php echo $l_na; ?></td>
255
				</tr>
310
				</tr>
256
<!--tr id="originalURLRow">
311
<!--tr id="originalURLRow">
257
<td id="originalURLLabel" class="chilliLabel"><?php echo $l_original_url_label; ?></td>
312
<td id="originalURLLabel" class="chilliLabel"><?php echo $l_original_url_label; ?></td>
258
<td id="originalURL" class="chilliValue"><?php echo $l_na; ?></td>
313
<td id="originalURL" class="chilliValue"><?php echo $l_na; ?></td>
259
</tr-->
314
</tr-->
260
				<tr>
315
				<tr>
261
					<td colspan=2 id="conHistoryLabel" class="chilliLabel"><?php echo $l_conn_history; ?></td>
316
					<td colspan=2 id="conHistoryLabel" class="chilliLabel"><?php echo $l_conn_history; ?></td>
262
				</tr>
317
				</tr>
263
				<tr id="conHistoryRow">
318
				<tr id="conHistoryRow">
264
					<td colspan=2 id="conHistory" class="chilliValue"><?php echo $connection_history; ?></td>
319
					<td colspan=2 id="conHistory" class="chilliValue"><?php echo $connection_history; ?></td>
265
				</tr>
320
				</tr>
266
			</table>
321
			</table>
267
		</div>
322
		</div>
268
		<div id="waitPage">
323
		<div id="waitPage">
269
			<table id="waitTable">
324
			<table id="waitTable">
270
				<tr>
325
				<tr>
271
					<td><img height="150" src="./images/logo-alcasar.png" alt="logo"></td>
326
					<td><img height="150" src="./images/logo-alcasar.png" alt="logo"></td>
272
					<td><p class="text_auth"><img src="./images/wait.gif" width="16" height="16" class="wait" alt="<?php echo $l_wait; ?>"><?php echo $l_wait; ?></p></td>
327
					<td><p class="text_auth"><img src="./images/wait.gif" width="16" height="16" class="wait" alt="<?php echo $l_wait; ?>"><?php echo $l_wait; ?></p></td>
273
				</tr>
328
				</tr>
274
			</table>
329
			</table>
275
		</div>
330
		</div>
276
		<div id="errorPage">
331
		<div id="errorPage">
277
			<table id="errorTable">
332
			<table id="errorTable">
278
				<tr>
333
				<tr>
279
					<td><img height="150" src="./images/logo-alcasar.png" alt="logo"></td>
334
					<td><img height="150" src="./images/logo-alcasar.png" alt="logo"></td>
280
					<td><span id="errorMessage"><?php echo $l_error; ?></span></td>
335
					<td><span id="errorMessage"><?php echo $l_error; ?></span></td>
281
				</tr>
336
				</tr>
282
			</table>
337
			</table>
283
		</div>
338
		</div>
284
		</div>
339
		</div>
285
<!--div id="debugPage" style="display:inline;">
340
<!--div id="debugPage" style="display:inline;">
286
<textarea id="debugarea" rows="20" cols="60">
341
<textarea id="debugarea" rows="20" cols="60">
287
</textarea>
342
</textarea>
288
</div-->
343
</div-->
289
		</div>
344
		</div>
290
	</body>
345
	</body>
291
</html>
346
</html>
292
 
347