528 |
stephane |
1 |
<?php
|
958 |
franck |
2 |
# $Id: status.php 2137 2017-03-18 13:18:02Z richard $
|
528 |
stephane |
3 |
#
|
|
|
4 |
# status.php for Alcasar captive portal
|
847 |
richard |
5 |
# by steweb57 & Rexy
|
528 |
stephane |
6 |
#
|
847 |
richard |
7 |
/****************************************************************
|
|
|
8 |
* GLOBAL FILE PATHS *
|
|
|
9 |
*****************************************************************/
|
|
|
10 |
define ("CONF_FILE", "/usr/local/etc/alcasar.conf");
|
|
|
11 |
|
|
|
12 |
/****************************************************************
|
|
|
13 |
* FILE TEST *
|
|
|
14 |
*****************************************************************/
|
|
|
15 |
//Test de présence et des droits en lecture des fichiers de configuration.
|
|
|
16 |
if (!file_exists(CONF_FILE)){
|
|
|
17 |
exit("Fichier de configuration ".CONF_FILE." non présent");
|
|
|
18 |
}
|
|
|
19 |
if (!is_readable(CONF_FILE)){
|
|
|
20 |
exit("Vous n'avez pas les droits de lecture sur le fichier ".CONF_FILE);
|
|
|
21 |
}
|
|
|
22 |
|
|
|
23 |
/****************************************************************
|
|
|
24 |
* Read CONF_FILE *
|
|
|
25 |
*****************************************************************/
|
|
|
26 |
$ouvre=fopen(CONF_FILE,"r");
|
|
|
27 |
if ($ouvre){
|
|
|
28 |
while (!feof ($ouvre))
|
|
|
29 |
{
|
|
|
30 |
$tampon = fgets($ouvre, 4096);
|
|
|
31 |
if (strpos($tampon,"=")!==false){
|
|
|
32 |
$tmp = explode("=",$tampon);
|
|
|
33 |
$conf[$tmp[0]] = $tmp[1];
|
|
|
34 |
}
|
|
|
35 |
}
|
|
|
36 |
}else{
|
1030 |
stephane |
37 |
exit("Erreur d'ouverture du fichier ".CONF_FILE);
|
847 |
richard |
38 |
}
|
|
|
39 |
fclose($ouvre);
|
|
|
40 |
|
|
|
41 |
$organisme = $conf["ORGANISM"];
|
2134 |
richard |
42 |
$remote_ip = preg_match('#^([0-9]{1,3}\.){3}[0-9]{1,3}$#', $_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : "";
|
725 |
stephane |
43 |
$connection_history = "";
|
|
|
44 |
$nb_connection_history = 3;
|
528 |
stephane |
45 |
|
2134 |
richard |
46 |
// Wait for chilli (uptade its tables)
|
1026 |
richard |
47 |
sleep (1);
|
2134 |
richard |
48 |
// Retrieve user info in tab $user[]
|
1026 |
richard |
49 |
exec ("sudo /usr/sbin/chilli_query list | grep 'pass' | grep -Ew '($remote_ip)'" , $tab);
|
1878 |
raphael.pi |
50 |
if(isset($tab[0]))
|
725 |
stephane |
51 |
$user = explode (" ", $tab[0]);
|
|
|
52 |
|
2134 |
richard |
53 |
#### Time conversion
|
725 |
stephane |
54 |
function secondsToDuration($seconds = null){
|
|
|
55 |
if ($seconds == null) return "";
|
|
|
56 |
$temp = $seconds % 3600;
|
|
|
57 |
$time[0] = ( $seconds - $temp ) / 3600 ; // hours
|
732 |
richard |
58 |
$time[2] = $temp % 60 ; // seconds
|
725 |
stephane |
59 |
$time[1] = ( $temp - $time[2] ) / 60; // minutes
|
732 |
richard |
60 |
return $time[0]." h ".$time[1]." m ".$time[2]." s";
|
725 |
stephane |
61 |
}
|
|
|
62 |
|
528 |
stephane |
63 |
# Choice of language
|
|
|
64 |
//reste quelques traductions à faire
|
|
|
65 |
$Language = 'en';
|
|
|
66 |
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
|
|
|
67 |
$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
|
|
68 |
$Language = strtolower(substr(chop($Langue[0]),0,2)); }
|
|
|
69 |
if($Language == 'es'){
|
734 |
richard |
70 |
$l_login1 = "El éxito de la autenticación";
|
528 |
stephane |
71 |
$l_logout = "Conexión de cierre";
|
2066 |
richard |
72 |
$l_logout_question = "¿Seguro que desea desconectar?";
|
955 |
richard |
73 |
$l_loggedout = "Su sesión se cierra";
|
528 |
stephane |
74 |
$l_wait = "Por favor, espere un momento ...";
|
2066 |
richard |
75 |
$l_state_label = "Estado";
|
|
|
76 |
$l_session_id_label = "Sesión ID";
|
|
|
77 |
$l_max_session_time_label = "Tiempo máximo de sesión";
|
|
|
78 |
$l_max_idle_time_label = "Tiempo de inactividad autorizado";
|
2064 |
richard |
79 |
$l_start_time_label = "Start Time"; // to translate
|
528 |
stephane |
80 |
$l_session_time_label = "Tiempo de conexión";
|
2064 |
richard |
81 |
$l_idle_time_label = "Idle Time"; // to translate
|
|
|
82 |
$l_downloaded_label = "Downloaded"; // to translate
|
|
|
83 |
$l_uploaded_label = "Uploaded"; // to translate
|
|
|
84 |
$l_original_url_label = "Original URL"; // to translate
|
|
|
85 |
$l_not_available = "Not available"; // to translate
|
|
|
86 |
$l_error = "error"; // to translate
|
|
|
87 |
$l_welcome = "Welcome"; // to translate
|
|
|
88 |
$l_conn_history = "Your last $nb_connection_history connections"; // to translate
|
|
|
89 |
$l_connected = "logged"; // to translate
|
|
|
90 |
$l_a_connection = "You have"; // to translate
|
|
|
91 |
$l_a_connection_time = "active connections on the network"; // to translate
|
528 |
stephane |
92 |
}
|
2086 |
richard |
93 |
else if ($Language == 'zh'){
|
2066 |
richard |
94 |
$l_login1 = "验证通过";
|
|
|
95 |
$l_logout = "关闭连接";
|
|
|
96 |
$l_logout_question = "您确定需要断开连接吗?";
|
|
|
97 |
$l_loggedout = "您已登出";
|
|
|
98 |
$l_wait = "请等待 ...";
|
|
|
99 |
$l_state_label = "连接状态";
|
|
|
100 |
$l_session_id_label = "连接ID";
|
|
|
101 |
$l_max_session_time_label = "最大连接时间";
|
|
|
102 |
$l_max_idle_time_label = "最大闲置时间";
|
|
|
103 |
$l_start_time_label = "起始连接时间";
|
|
|
104 |
$l_session_time_label = "连接时间";
|
|
|
105 |
$l_idle_time_label = "闲置时间";
|
|
|
106 |
$l_downloaded_label = "数据下载";
|
|
|
107 |
$l_uploaded_label = "数据上传";
|
|
|
108 |
$l_original_url_label = "初始网址";
|
|
|
109 |
$l_not_available = "不可用";
|
|
|
110 |
$l_error = "出错";
|
|
|
111 |
$l_welcome = "欢迎";
|
|
|
112 |
$l_conn_history = "您最近的$nb_connection_history次连接";
|
|
|
113 |
$l_connected = "已登录";
|
|
|
114 |
$l_a_connection = "您已经有";
|
|
|
115 |
$l_a_connection_time = "在线时间";
|
|
|
116 |
}
|
2086 |
richard |
117 |
else if ($Language == 'ar'){
|
|
|
118 |
$l_login1 = "نجاح المصادقة";
|
|
|
119 |
$l_logout = "إغلاق الدورة";
|
|
|
120 |
$l_logout_question = "هل تريد فعلاً قطع الاتصال؟";
|
|
|
121 |
$l_loggedout = "دورتكَ مُغلَقة";
|
|
|
122 |
$l_wait = "...إنتظر بعض اللحظات";
|
|
|
123 |
$l_state_label = "وَضْع";
|
|
|
124 |
$l_session_id_label = "معرف الدورة";
|
|
|
125 |
$l_max_session_time_label = "الوقت المسموح للإتصال";
|
|
|
126 |
$l_max_idle_time_label = "الحد الأقصى لعدم التنشيط";
|
|
|
127 |
$l_start_time_label = "بداية الإتصال";
|
|
|
128 |
$l_session_time_label = "مدة الإتصال";
|
|
|
129 |
$l_idle_time_label = "انعدام التنشيط";
|
|
|
130 |
$l_downloaded_label = "تم تحميل المعطيات";
|
|
|
131 |
$l_uploaded_label = "تم إرسال المعطيات";
|
|
|
132 |
$l_original_url_label = "تم طلب URL";
|
|
|
133 |
$l_not_available = "غير متوفّر";
|
|
|
134 |
$l_na = "N/D";
|
|
|
135 |
$l_error = "خطأ";
|
|
|
136 |
$l_welcome = "مرحباً بك";
|
|
|
137 |
$l_conn_history = "($nb_connection_history) سِجِل اتصالاتك الاخيرة";
|
|
|
138 |
$l_connected = "دورة ناشطة";
|
|
|
139 |
$l_a_connection = "لديك";
|
|
|
140 |
$l_a_connection_time = "اتصالات ناشطة على الشبكة";
|
|
|
141 |
}
|
912 |
richard |
142 |
else if ($Language == 'pt'){
|
|
|
143 |
$l_login1 = "Autenticação bem sucedida.";
|
|
|
144 |
$l_logout = "Fechando a conexão";
|
955 |
richard |
145 |
$l_logout_question = "Tem certeza de que deseja desconectar agora?";
|
971 |
richard |
146 |
$l_loggedout = "Sua conexão será fechada";
|
912 |
richard |
147 |
$l_wait = "Por favor, aguarde um momento ...";
|
971 |
richard |
148 |
$l_state_label = "Estado da conexão";
|
955 |
richard |
149 |
$l_session_id_label = "Sessão ID";
|
971 |
richard |
150 |
$l_max_session_time_label = "Restante em horas da conexão";
|
|
|
151 |
$l_max_idle_time_label = "Restante máximo liberado por dia";
|
|
|
152 |
$l_start_time_label = "Dia, mês, ano e hora da conexão";
|
955 |
richard |
153 |
$l_session_time_label = "Duração da conexão";
|
|
|
154 |
$l_idle_time_label = "Tempo de Espera";
|
971 |
richard |
155 |
$l_downloaded_label = "Recebidos";
|
|
|
156 |
$l_uploaded_label = "Enviados";
|
912 |
richard |
157 |
$l_original_url_label = "URL Original";
|
955 |
richard |
158 |
$l_not_available = "Não disponível";
|
|
|
159 |
$l_error = "Erro";
|
971 |
richard |
160 |
$l_welcome = "Bem-vindo(a)";
|
|
|
161 |
$l_conn_history = "Suas últimos conexões : $nb_connection_history";
|
955 |
richard |
162 |
$l_connected = "Conectado";
|
971 |
richard |
163 |
$l_a_connection = "Conexão ativa já detectada para essa LAN";
|
912 |
richard |
164 |
$l_a_connection_time = "Tempo (s)";
|
|
|
165 |
}
|
2086 |
richard |
166 |
else if ($Language == 'de'){
|
734 |
richard |
167 |
$l_login1 = "Erfolgreiche Authentifizierung";
|
528 |
stephane |
168 |
$l_logout = "Beenden der Verbindung";
|
2074 |
richard |
169 |
$l_logout_question = "Möchten Sie die Verbindung jetzt wirklich trennen?";
|
2064 |
richard |
170 |
$l_loggedout = "Ihre Sitzung ist geschlossen";
|
528 |
stephane |
171 |
$l_wait = "Bitte warten Sie einen Moment ...";
|
2064 |
richard |
172 |
$l_state_label = "State"; // to translate
|
|
|
173 |
$l_session_id_label = "Session ID"; // to translate
|
|
|
174 |
$l_max_session_time_label = "Max Session Time"; // to translate
|
|
|
175 |
$l_max_idle_time_label = "Max Idle Time"; // to translate
|
|
|
176 |
$l_start_time_label = "Start Time"; // to translate
|
528 |
stephane |
177 |
$l_session_time_label = "Online-zeit";
|
2064 |
richard |
178 |
$l_idle_time_label = "Idle Time"; // to translate
|
|
|
179 |
$l_downloaded_label = "Downloaded"; // to translate
|
|
|
180 |
$l_uploaded_label = "Uploaded"; // to translate
|
|
|
181 |
$l_original_url_label = "Original URL"; // to translate
|
|
|
182 |
$l_not_available = "Not available"; // to translate
|
|
|
183 |
$l_error = "error"; // to translate
|
|
|
184 |
$l_welcome = "Welcome"; // to translate
|
|
|
185 |
$l_conn_history = "Your last $nb_connection_history connections"; // to translate
|
|
|
186 |
$l_connected = "logged"; // to translate
|
|
|
187 |
$l_a_connection = "You have"; // to translate
|
|
|
188 |
$l_a_connection_time = "active connections on the network"; // to translate
|
528 |
stephane |
189 |
}
|
2086 |
richard |
190 |
else if ($Language == 'nl'){
|
734 |
richard |
191 |
$l_login1 = "Succesvolle authenticatie";
|
528 |
stephane |
192 |
$l_logout = "Slotkoers verbinding";
|
2073 |
richard |
193 |
$l_logout_question = "Bent u zeker dat u wilt nu los te koppelen?";
|
2064 |
richard |
194 |
$l_loggedout = "Uw sessie is gesloten";
|
528 |
stephane |
195 |
$l_wait = "Wacht een moment ...";
|
2064 |
richard |
196 |
$l_state_label = "State"; // to translate
|
|
|
197 |
$l_session_id_label = "Session ID"; // to translate
|
|
|
198 |
$l_max_session_time_label = "Max Session Time"; // to translate
|
|
|
199 |
$l_max_idle_time_label = "Max Idle Time"; // to translate
|
|
|
200 |
$l_start_time_label = "Start Time"; // to translate
|
528 |
stephane |
201 |
$l_session_time_label = "Online tijd";
|
2064 |
richard |
202 |
$l_idle_time_label = "Idle Time"; // to translate
|
|
|
203 |
$l_downloaded_label = "Downloaded"; // to translate
|
|
|
204 |
$l_uploaded_label = "Uploaded"; // to translate
|
|
|
205 |
$l_original_url_label = "Original URL"; // to translate
|
|
|
206 |
$l_not_available = "Not available"; // to translate
|
|
|
207 |
$l_error = "error"; // to translate
|
|
|
208 |
$l_welcome = "Welcome"; // to translate
|
|
|
209 |
$l_conn_history = "Your last $nb_connection_history connections"; // to translate
|
|
|
210 |
$l_connected = "logged"; // to translate
|
|
|
211 |
$l_a_connection = "You have"; // to translate
|
|
|
212 |
$l_a_connection_time = "active connections on the network"; // to translate
|
528 |
stephane |
213 |
}
|
2086 |
richard |
214 |
else if ($Language == 'fr'){
|
2064 |
richard |
215 |
$l_login1 = "Authentification réussie";
|
528 |
stephane |
216 |
$l_logout = "Fermeture de la session";
|
2066 |
richard |
217 |
$l_logout_question = "Êtes vous sûr de vouloir vous déconnecter?";
|
2064 |
richard |
218 |
$l_loggedout = "Votre session est fermée";
|
528 |
stephane |
219 |
$l_wait = "Patientez un instant ....";
|
2066 |
richard |
220 |
$l_state_label = "État";
|
2064 |
richard |
221 |
$l_session_id_label = "Session ID";
|
|
|
222 |
$l_max_session_time_label = "Temps de connexion autorisé";
|
2066 |
richard |
223 |
$l_max_idle_time_label = "Temps d'inactivité autorisé";
|
2064 |
richard |
224 |
$l_start_time_label = "Début de connexion";
|
|
|
225 |
$l_session_time_label = "Durée de connexion";
|
|
|
226 |
$l_idle_time_label = "Inactivité";
|
|
|
227 |
$l_downloaded_label = "Données téléchargées";
|
|
|
228 |
$l_uploaded_label = "Données envoyées";
|
|
|
229 |
$l_original_url_label = "URL demandée";
|
|
|
230 |
$l_not_available = "Non disponible";
|
|
|
231 |
$l_error = "erreur";
|
|
|
232 |
$l_welcome = "Bienvenue";
|
|
|
233 |
$l_conn_history = "Vos $nb_connection_history dernières connexions";
|
737 |
franck |
234 |
$l_connected = "session active";
|
1708 |
richard |
235 |
$l_a_connection = "Vous avez";
|
|
|
236 |
$l_a_connection_time = "connexions actives sur le réseau";
|
528 |
stephane |
237 |
}
|
|
|
238 |
else {
|
|
|
239 |
$l_login1 = "Successful authentication.";
|
|
|
240 |
$l_logout = "Closing connection";
|
2064 |
richard |
241 |
$l_logout_question = "Are you sure you want to disconnect now?";
|
|
|
242 |
$l_loggedout = "Your session is closed";
|
528 |
stephane |
243 |
$l_wait = "Please wait a moment ...";
|
2064 |
richard |
244 |
$l_state_label = "State";
|
|
|
245 |
$l_session_id_label = "Session ID";
|
528 |
stephane |
246 |
$l_max_session_time_label = "Max Session Time";
|
|
|
247 |
$l_max_idle_time_label = "Max Idle Time";
|
2064 |
richard |
248 |
$l_start_time_label = "Start Time";
|
528 |
stephane |
249 |
$l_session_time_label = "Session Time";
|
2064 |
richard |
250 |
$l_idle_time_label = "Idle Time";
|
|
|
251 |
$l_downloaded_label = "Downloaded";
|
|
|
252 |
$l_uploaded_label = "Uploaded";
|
528 |
stephane |
253 |
$l_original_url_label = "Original URL";
|
2064 |
richard |
254 |
$l_not_available = "Not available";
|
|
|
255 |
$l_error = "error";
|
|
|
256 |
$l_welcome = "Welcome";
|
|
|
257 |
$l_conn_history = "Your last $nb_connection_history connections";
|
734 |
richard |
258 |
$l_connected = "logged";
|
2064 |
richard |
259 |
$l_a_connection = "You have";
|
|
|
260 |
$l_a_connection_time = "active connections on the network";
|
528 |
stephane |
261 |
}
|
734 |
richard |
262 |
|
|
|
263 |
if (isset($user[5])){
|
2134 |
richard |
264 |
// Retrieve the last connections
|
734 |
richard |
265 |
if ((is_file("./acc/manager/lib/sql/drivers/mysql/functions.php"))&&(is_file("/etc/freeradius-web/config.php"))){
|
|
|
266 |
include_once("/etc/freeradius-web/config.php");
|
|
|
267 |
include_once("./acc/manager/lib/sql/drivers/mysql/functions.php");
|
|
|
268 |
$sql = "SELECT UserName, AcctStartTime, AcctStopTime, acctsessiontime FROM radacct WHERE UserName='$user[5]' ORDER BY AcctStartTime DESC LIMIT 0 , $nb_connection_history";
|
2134 |
richard |
269 |
$link = @da_sql_pconnect($config);
|
734 |
richard |
270 |
if ($link){
|
2134 |
richard |
271 |
$res = @da_sql_query($link,$config,$sql);
|
734 |
richard |
272 |
if ($res){
|
1026 |
richard |
273 |
$a_connection = ""; $a_connected=0; $connection_history.= "<ul>";
|
734 |
richard |
274 |
while(($row = @da_sql_fetch_array($res,$config))){
|
|
|
275 |
$connected = "";
|
872 |
richard |
276 |
$start_conn = date_create($row['acctstarttime']);
|
737 |
franck |
277 |
$connection_history.="<li>".date_format($start_conn, 'd M Y - H:i:s')." - (";
|
872 |
richard |
278 |
if ($row['acctstoptime'] == "") {
|
737 |
franck |
279 |
$connected = $l_connected;
|
1026 |
richard |
280 |
$a_connected = $a_connected +1;
|
737 |
franck |
281 |
}else{
|
872 |
richard |
282 |
$connected = secondsToDuration($row['acctsessiontime']);
|
737 |
franck |
283 |
}
|
|
|
284 |
$connection_history.= "$connected)</li>";
|
734 |
richard |
285 |
}
|
|
|
286 |
$connection_history.="</ul>";
|
737 |
franck |
287 |
if ($a_connected > 1){
|
1026 |
richard |
288 |
$a_connection = $l_a_connection." ".$a_connected." ".$l_a_connection_time; }
|
737 |
franck |
289 |
}
|
|
|
290 |
}
|
2134 |
richard |
291 |
// Retrieve first name & last name
|
2137 |
richard |
292 |
$sql = "SELECT Name FROM userinfo WHERE UserName='$user[5]'";
|
|
|
293 |
$link = @da_sql_pconnect($config);
|
|
|
294 |
if ($link){
|
|
|
295 |
$res = @da_sql_query($link,$config,$sql);
|
|
|
296 |
if ($res){
|
|
|
297 |
$row = @da_sql_fetch_array($res,$config);
|
|
|
298 |
$cn = ($row['name'] != '') ? $row['name'] : $user[5];
|
|
|
299 |
}
|
|
|
300 |
}
|
2134 |
richard |
301 |
//store the user @IP in a file (to test if he is still active).
|
2108 |
richard |
302 |
$filename='/var/tmp/havp/current_users.txt';
|
2134 |
richard |
303 |
$change_me = 1; //avoid duplicate user @IP
|
2013 |
raphael.pi |
304 |
if(file_exists($filename)){
|
|
|
305 |
$fichier = fopen($filename, "r");
|
|
|
306 |
$content = file($filename);
|
2137 |
richard |
307 |
if (empty($content))
|
2013 |
raphael.pi |
308 |
{
|
|
|
309 |
file_put_contents($filename, $_SERVER['REMOTE_ADDR']);
|
|
|
310 |
}
|
|
|
311 |
else
|
|
|
312 |
{
|
2134 |
richard |
313 |
// if we found duplicate IP, we will not write user @IP (just set change_me = 0)
|
2013 |
raphael.pi |
314 |
foreach($content as $line){
|
|
|
315 |
$line = preg_replace('/\s+/', '', $line);
|
|
|
316 |
if($line == $_SERVER['REMOTE_ADDR'])
|
|
|
317 |
{
|
|
|
318 |
$change_me = 0;
|
|
|
319 |
}
|
|
|
320 |
}
|
2134 |
richard |
321 |
// if user @IP does not exist, we write it
|
2013 |
raphael.pi |
322 |
if($change_me)
|
|
|
323 |
{
|
|
|
324 |
file_put_contents($filename, $_SERVER['REMOTE_ADDR'].PHP_EOL , FILE_APPEND);
|
|
|
325 |
}
|
|
|
326 |
}
|
|
|
327 |
}
|
|
|
328 |
else
|
|
|
329 |
{
|
2134 |
richard |
330 |
//we create filename and we write user @IP.
|
2013 |
raphael.pi |
331 |
file_put_contents($filename, $_SERVER['REMOTE_ADDR'].PHP_EOL);
|
|
|
332 |
}
|
734 |
richard |
333 |
}
|
|
|
334 |
}
|
528 |
stephane |
335 |
?>
|
|
|
336 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
2137 |
richard |
337 |
<html>
|
|
|
338 |
<!-- written by steweb57 & Rexy -->
|
734 |
richard |
339 |
<head>
|
|
|
340 |
<title>Alcasar - <?php echo $organisme; ?></title>
|
|
|
341 |
<meta http-equiv="Cache-control" content="no-cache">
|
|
|
342 |
<meta http-equiv="Pragma" content="no-cache">
|
|
|
343 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
|
344 |
<script type="text/javascript" src="./js/ChilliLibrary.js"></script>
|
|
|
345 |
<script type="text/javascript" src="./js/statusControler.js"></script>
|
|
|
346 |
<link type="text/css" href="./css/status.css" rel="stylesheet">
|
|
|
347 |
</head>
|
|
|
348 |
<body>
|
|
|
349 |
<div id="Chilli">
|
|
|
350 |
<div id="locationName"></div>
|
|
|
351 |
<div id="chilliPage">
|
|
|
352 |
<div id="loggedOutPage" class="c1">
|
|
|
353 |
<table id="disconnectTable">
|
|
|
354 |
<tr>
|
|
|
355 |
<td><img height="150" src="./images/logo-alcasar.png" alt="logo"></td>
|
|
|
356 |
<td><p class="text_auth"><?php echo $l_loggedout; ?></p></td>
|
|
|
357 |
</tr>
|
|
|
358 |
</table>
|
|
|
359 |
</div>
|
|
|
360 |
<div id="statusPage" class="c1">
|
|
|
361 |
<table border="0" id="statusTable">
|
|
|
362 |
<tr>
|
737 |
franck |
363 |
<td colspan="2">
|
|
|
364 |
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
|
|
365 |
<tr>
|
|
|
366 |
<td valign="top" rowspan="4">
|
|
|
367 |
<img height="150" src="./images/logo-alcasar.png" alt="logo">
|
|
|
368 |
</td>
|
|
|
369 |
<td class="text_auth_welcom">
|
|
|
370 |
<?php echo $l_login1; ?>
|
|
|
371 |
</td>
|
|
|
372 |
</tr>
|
|
|
373 |
<tr>
|
|
|
374 |
<td class="text_auth">
|
2137 |
richard |
375 |
<?php echo "$l_welcome <br> $cn";?>
|
737 |
franck |
376 |
</td>
|
|
|
377 |
</tr>
|
|
|
378 |
<tr>
|
|
|
379 |
<td class="alert">
|
1878 |
raphael.pi |
380 |
<?php if(isset($a_connection))echo $a_connection; ?>
|
737 |
franck |
381 |
</td>
|
|
|
382 |
</tr>
|
|
|
383 |
<tr>
|
|
|
384 |
<td colspan="2" align="center" class="link_logout">
|
|
|
385 |
<a href="#" onclick="return logoutWithConfirmation('<?php echo $l_logout_question;?>');" class="lien_deco"><?php echo $l_logout; ?></a>
|
|
|
386 |
</td>
|
|
|
387 |
</tr>
|
|
|
388 |
</table>
|
734 |
richard |
389 |
</td>
|
|
|
390 |
</tr>
|
528 |
stephane |
391 |
<!--tr id="connectRow">
|
|
|
392 |
<td id="statusMessageLabel" class="chilliLabel"><strong><?php echo $l_state_label; ?></strong></td>
|
|
|
393 |
<td id="statusMessage" class="chilliValue">Connected</td>
|
|
|
394 |
</tr-->
|
|
|
395 |
<!--tr id="sessionIdRow">
|
|
|
396 |
<td id="sessionIdLabel" class="chilliLabel"><strong><?php echo $l_session_id_label; ?></strong></td>
|
|
|
397 |
<td id="sessionId" class="chilliValue"><?php echo $l_not_available; ?></td>
|
|
|
398 |
</tr-->
|
734 |
richard |
399 |
<tr id="sessionTimeoutRow">
|
|
|
400 |
<td id="sessionTimeoutLabel" class="chilliLabel"><?php echo $l_max_session_time_label; ?></td>
|
|
|
401 |
<td id="sessionTimeout" class="chilliValue"><?php echo $l_not_available; ?></td>
|
|
|
402 |
</tr>
|
|
|
403 |
<tr id="idleTimeoutRow">
|
|
|
404 |
<td id="idleTimeoutLabel" class="chilliLabel"><?php echo $l_max_idle_time_label; ?></td>
|
|
|
405 |
<td id="idleTimeout" class="chilliValue"><?php echo $l_not_available; ?></td>
|
|
|
406 |
</tr>
|
|
|
407 |
<tr id="startTimeRow">
|
|
|
408 |
<td id="startTimeLabel" class="chilliLabel"><?php echo $l_start_time_label; ?></td>
|
|
|
409 |
<td id="startTime" class="chilliValue"><?php echo $l_not_available; ?></td>
|
|
|
410 |
</tr>
|
|
|
411 |
<tr id="sessionTimeRow">
|
|
|
412 |
<td id="sessionTimeLabel" class="chilliLabel"><?php echo $l_session_time_label; ?></td>
|
|
|
413 |
<td id="sessionTime" class="chilliValue"><?php echo $l_not_available; ?></td>
|
|
|
414 |
</tr>
|
|
|
415 |
<tr id="idleTimeRow">
|
|
|
416 |
<td id="idleTimeLabel" class="chilliLabel"><?php echo $l_idle_time_label; ?></td>
|
|
|
417 |
<td id="idleTime" class="chilliValue"><?php echo $l_not_available; ?></td>
|
|
|
418 |
</tr>
|
|
|
419 |
<tr id="inputOctetsRow">
|
|
|
420 |
<td id="inputOctetsLabel" class="chilliLabel"><?php echo $l_downloaded_label; ?></td>
|
2073 |
richard |
421 |
<td id="inputOctets" class="chilliValue"><?php echo $l_not_available; ?></td>
|
734 |
richard |
422 |
</tr>
|
|
|
423 |
<tr id="outputOctetsRow">
|
|
|
424 |
<td id="outputOctetsLabel" class="chilliLabel"><?php echo $l_uploaded_label; ?></td>
|
2073 |
richard |
425 |
<td id="outputOctets" class="chilliValue"><?php echo $l_not_available; ?></td>
|
734 |
richard |
426 |
</tr>
|
725 |
stephane |
427 |
<!--tr id="originalURLRow">
|
734 |
richard |
428 |
<td id="originalURLLabel" class="chilliLabel"><?php echo $l_original_url_label; ?></td>
|
2073 |
richard |
429 |
<td id="originalURL" class="chilliValue"><?php echo $l_not_available; ?></td>
|
725 |
stephane |
430 |
</tr-->
|
734 |
richard |
431 |
<tr>
|
|
|
432 |
<td colspan=2 id="conHistoryLabel" class="chilliLabel"><?php echo $l_conn_history; ?></td>
|
|
|
433 |
</tr>
|
|
|
434 |
<tr id="conHistoryRow">
|
|
|
435 |
<td colspan=2 id="conHistory" class="chilliValue"><?php echo $connection_history; ?></td>
|
|
|
436 |
</tr>
|
|
|
437 |
</table>
|
|
|
438 |
</div>
|
|
|
439 |
<div id="waitPage">
|
|
|
440 |
<table id="waitTable">
|
|
|
441 |
<tr>
|
|
|
442 |
<td><img height="150" src="./images/logo-alcasar.png" alt="logo"></td>
|
|
|
443 |
<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>
|
|
|
444 |
</tr>
|
|
|
445 |
</table>
|
|
|
446 |
</div>
|
|
|
447 |
<div id="errorPage">
|
|
|
448 |
<table id="errorTable">
|
|
|
449 |
<tr>
|
|
|
450 |
<td><img height="150" src="./images/logo-alcasar.png" alt="logo"></td>
|
|
|
451 |
<td><span id="errorMessage"><?php echo $l_error; ?></span></td>
|
|
|
452 |
</tr>
|
|
|
453 |
</table>
|
|
|
454 |
</div>
|
|
|
455 |
</div>
|
528 |
stephane |
456 |
<!--div id="debugPage" style="display:inline;">
|
|
|
457 |
<textarea id="debugarea" rows="20" cols="60">
|
|
|
458 |
</textarea>
|
734 |
richard |
459 |
</div-->
|
|
|
460 |
</div>
|
|
|
461 |
</body>
|
2008 |
raphael.pi |
462 |
|
2097 |
raphael.pi |
463 |
|
528 |
stephane |
464 |
</html>
|