Subversion Repositories ALCASAR

Rev

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

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