Subversion Repositories ALCASAR

Rev

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

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