| Line 1... |
Line 1... |
| 1 |
<?php
|
1 |
<?php
|
| 2 |
# $Id: status.php 2013 2016-07-28 15:51:12Z raphael.pion $
|
2 |
# $Id: status.php 2064 2016-11-05 08:11:03Z richard $
|
| 3 |
#
|
3 |
#
|
| 4 |
# status.php for Alcasar captive portal
|
4 |
# status.php for Alcasar captive portal
|
| 5 |
# by steweb57 & Rexy
|
5 |
# by steweb57 & Rexy
|
| 6 |
#
|
6 |
#
|
| 7 |
/****************************************************************
|
7 |
/****************************************************************
|
| Line 71... |
Line 71... |
| 71 |
$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
71 |
$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
| 72 |
$Language = strtolower(substr(chop($Langue[0]),0,2)); }
|
72 |
$Language = strtolower(substr(chop($Langue[0]),0,2)); }
|
| 73 |
if($Language == 'es'){
|
73 |
if($Language == 'es'){
|
| 74 |
$l_login1 = "El éxito de la autenticación";
|
74 |
$l_login1 = "El éxito de la autenticación";
|
| 75 |
$l_logout = "Conexión de cierre";
|
75 |
$l_logout = "Conexión de cierre";
|
| 76 |
$l_logout_question = "Are you sure you want to disconnect now?"; //à traduire
|
76 |
$l_logout_question = "Are you sure you want to disconnect now?"; // to translate
|
| 77 |
$l_loggedout = "Su sesión se cierra";
|
77 |
$l_loggedout = "Su sesión se cierra";
|
| 78 |
$l_wait = "Por favor, espere un momento ...";
|
78 |
$l_wait = "Por favor, espere un momento ...";
|
| 79 |
$l_state_label = "State"; //à traduire
|
79 |
$l_state_label = "State"; // to translate
|
| 80 |
$l_session_id_label = "Session ID"; //à traduire
|
80 |
$l_session_id_label = "Session ID"; // to translate
|
| 81 |
$l_max_session_time_label = "Max Session Time"; //à traduire
|
81 |
$l_max_session_time_label = "Max Session Time"; // to translate
|
| 82 |
$l_max_idle_time_label = "Max Idle Time"; //à traduire
|
82 |
$l_max_idle_time_label = "Max Idle Time"; // to translate
|
| 83 |
$l_start_time_label = "Start Time"; //à traduire
|
83 |
$l_start_time_label = "Start Time"; // to translate
|
| 84 |
$l_session_time_label = "Tiempo de conexión";
|
84 |
$l_session_time_label = "Tiempo de conexión";
|
| 85 |
$l_idle_time_label = "Idle Time"; //à traduire
|
85 |
$l_idle_time_label = "Idle Time"; // to translate
|
| 86 |
$l_downloaded_label = "Downloaded"; //à traduire
|
86 |
$l_downloaded_label = "Downloaded"; // to translate
|
| 87 |
$l_uploaded_label = "Uploaded"; //à traduire
|
87 |
$l_uploaded_label = "Uploaded"; // to translate
|
| 88 |
$l_original_url_label = "Original URL"; //à traduire
|
88 |
$l_original_url_label = "Original URL"; // to translate
|
| 89 |
$l_not_available = "Not available"; //à traduire
|
89 |
$l_not_available = "Not available"; // to translate
|
| 90 |
$l_na = "N/A"; //à traduire
|
90 |
$l_na = "N/A"; // to translate
|
| 91 |
$l_error = "error"; //à traduire
|
91 |
$l_error = "error"; // to translate
|
| 92 |
$l_welcome = "Welcome"; //à traduire
|
92 |
$l_welcome = "Welcome"; // to translate
|
| 93 |
$l_conn_history = "Your last $nb_connection_history connections"; //à traduire
|
93 |
$l_conn_history = "Your last $nb_connection_history connections"; // to translate
|
| 94 |
$l_connected = "logged"; //à traduire
|
94 |
$l_connected = "logged"; // to translate
|
| 95 |
$l_a_connection = "You have"; //à traduire
|
95 |
$l_a_connection = "You have"; // to translate
|
| 96 |
$l_a_connection_time = "active connections on the network"; //à traduire
|
96 |
$l_a_connection_time = "active connections on the network"; // to translate
|
| 97 |
}
|
97 |
}
|
| 98 |
else if ($Language == 'pt'){
|
98 |
else if ($Language == 'pt'){
|
| 99 |
$l_login1 = "Autenticação bem sucedida.";
|
99 |
$l_login1 = "Autenticação bem sucedida.";
|
| 100 |
$l_logout = "Fechando a conexão";
|
100 |
$l_logout = "Fechando a conexão";
|
| 101 |
$l_logout_question = "Tem certeza de que deseja desconectar agora?";
|
101 |
$l_logout_question = "Tem certeza de que deseja desconectar agora?";
|
| Line 121... |
Line 121... |
| 121 |
$l_a_connection_time = "Tempo (s)";
|
121 |
$l_a_connection_time = "Tempo (s)";
|
| 122 |
}
|
122 |
}
|
| 123 |
else if($Language == 'de'){
|
123 |
else if($Language == 'de'){
|
| 124 |
$l_login1 = "Erfolgreiche Authentifizierung";
|
124 |
$l_login1 = "Erfolgreiche Authentifizierung";
|
| 125 |
$l_logout = "Beenden der Verbindung";
|
125 |
$l_logout = "Beenden der Verbindung";
|
| 126 |
$l_logout_question = "Are you sure you want to disconnect now?"; //à traduire
|
126 |
$l_logout_question = "Are you sure you want to disconnect now?"; // to translate
|
| 127 |
$l_loggedout = "Ihre Sitzung ist geschlossen";
|
127 |
$l_loggedout = "Ihre Sitzung ist geschlossen";
|
| 128 |
$l_wait = "Bitte warten Sie einen Moment ...";
|
128 |
$l_wait = "Bitte warten Sie einen Moment ...";
|
| 129 |
$l_state_label = "State"; //à traduire
|
129 |
$l_state_label = "State"; // to translate
|
| 130 |
$l_session_id_label = "Session ID"; //à traduire
|
130 |
$l_session_id_label = "Session ID"; // to translate
|
| 131 |
$l_max_session_time_label = "Max Session Time"; //à traduire
|
131 |
$l_max_session_time_label = "Max Session Time"; // to translate
|
| 132 |
$l_max_idle_time_label = "Max Idle Time"; //à traduire
|
132 |
$l_max_idle_time_label = "Max Idle Time"; // to translate
|
| 133 |
$l_start_time_label = "Start Time"; //à traduire
|
133 |
$l_start_time_label = "Start Time"; // to translate
|
| 134 |
$l_session_time_label = "Online-zeit";
|
134 |
$l_session_time_label = "Online-zeit";
|
| 135 |
$l_idle_time_label = "Idle Time"; //à traduire
|
135 |
$l_idle_time_label = "Idle Time"; // to translate
|
| 136 |
$l_downloaded_label = "Downloaded"; //à traduire
|
136 |
$l_downloaded_label = "Downloaded"; // to translate
|
| 137 |
$l_uploaded_label = "Uploaded"; //à traduire
|
137 |
$l_uploaded_label = "Uploaded"; // to translate
|
| 138 |
$l_original_url_label = "Original URL"; //à traduire
|
138 |
$l_original_url_label = "Original URL"; // to translate
|
| 139 |
$l_not_available = "Not available"; //à traduire
|
139 |
$l_not_available = "Not available"; // to translate
|
| 140 |
$l_na = "N/A"; //à traduire
|
140 |
$l_na = "N/A"; // to translate
|
| 141 |
$l_error = "error"; //à traduire
|
141 |
$l_error = "error"; // to translate
|
| 142 |
$l_welcome = "Welcome"; //à traduire
|
142 |
$l_welcome = "Welcome"; // to translate
|
| 143 |
$l_conn_history = "Your last $nb_connection_history connections"; //à traduire
|
143 |
$l_conn_history = "Your last $nb_connection_history connections"; // to translate
|
| 144 |
$l_connected = "logged"; //à traduire
|
144 |
$l_connected = "logged"; // to translate
|
| 145 |
$l_a_connection = "You have"; //à traduire
|
145 |
$l_a_connection = "You have"; // to translate
|
| 146 |
$l_a_connection_time = "active connections on the network"; //à traduire
|
146 |
$l_a_connection_time = "active connections on the network"; // to translate
|
| 147 |
}
|
147 |
}
|
| 148 |
else if($Language == 'nl'){
|
148 |
else if($Language == 'nl'){
|
| 149 |
$l_login1 = "Succesvolle authenticatie";
|
149 |
$l_login1 = "Succesvolle authenticatie";
|
| 150 |
$l_logout = "Slotkoers verbinding";
|
150 |
$l_logout = "Slotkoers verbinding";
|
| 151 |
$l_logout_question = "Are you sure you want to disconnect now?"; //à traduire
|
151 |
$l_logout_question = "Are you sure you want to disconnect now?"; // to translate
|
| 152 |
$l_loggedout = "Uw sessie is gesloten";
|
152 |
$l_loggedout = "Uw sessie is gesloten";
|
| 153 |
$l_wait = "Wacht een moment ...";
|
153 |
$l_wait = "Wacht een moment ...";
|
| 154 |
$l_state_label = "State"; //à traduire
|
154 |
$l_state_label = "State"; // to translate
|
| 155 |
$l_session_id_label = "Session ID"; //à traduire
|
155 |
$l_session_id_label = "Session ID"; // to translate
|
| 156 |
$l_max_session_time_label = "Max Session Time"; //à traduire
|
156 |
$l_max_session_time_label = "Max Session Time"; // to translate
|
| 157 |
$l_max_idle_time_label = "Max Idle Time"; //à traduire
|
157 |
$l_max_idle_time_label = "Max Idle Time"; // to translate
|
| 158 |
$l_start_time_label = "Start Time"; //à traduire
|
158 |
$l_start_time_label = "Start Time"; // to translate
|
| 159 |
$l_session_time_label = "Online tijd";
|
159 |
$l_session_time_label = "Online tijd";
|
| 160 |
$l_idle_time_label = "Idle Time"; //à traduire
|
160 |
$l_idle_time_label = "Idle Time"; // to translate
|
| 161 |
$l_downloaded_label = "Downloaded"; //à traduire
|
161 |
$l_downloaded_label = "Downloaded"; // to translate
|
| 162 |
$l_uploaded_label = "Uploaded"; //à traduire
|
162 |
$l_uploaded_label = "Uploaded"; // to translate
|
| 163 |
$l_original_url_label = "Original URL"; //à traduire
|
163 |
$l_original_url_label = "Original URL"; // to translate
|
| 164 |
$l_not_available = "Not available"; //à traduire
|
164 |
$l_not_available = "Not available"; // to translate
|
| 165 |
$l_na = "N/A"; //à traduire
|
165 |
$l_na = "N/A"; // to translate
|
| 166 |
$l_error = "error"; //à traduire
|
166 |
$l_error = "error"; // to translate
|
| 167 |
$l_welcome = "Welcome"; //à traduire
|
167 |
$l_welcome = "Welcome"; // to translate
|
| 168 |
$l_conn_history = "Your last $nb_connection_history connections"; //à traduire
|
168 |
$l_conn_history = "Your last $nb_connection_history connections"; // to translate
|
| 169 |
$l_connected = "logged"; //à traduire
|
169 |
$l_connected = "logged"; // to translate
|
| 170 |
$l_a_connection = "You have"; //à traduire
|
170 |
$l_a_connection = "You have"; // to translate
|
| 171 |
$l_a_connection_time = "active connections on the network"; //à traduire
|
171 |
$l_a_connection_time = "active connections on the network"; // to translate
|
| 172 |
}
|
172 |
}
|
| 173 |
else if($Language == 'fr'){
|
173 |
else if($Language == 'fr'){
|
| 174 |
$l_login1 = "Authentification réussie";
|
174 |
$l_login1 = "Authentification réussie";
|
| 175 |
$l_logout = "Fermeture de la session";
|
175 |
$l_logout = "Fermeture de la session";
|
| 176 |
$l_logout_question = "Etes vous sûr de vouloir vous déconnecter?";
|
176 |
$l_logout_question = "Etes vous sûr de vouloir vous déconnecter?";
|
| 177 |
$l_loggedout = "Votre session est fermée";
|
177 |
$l_loggedout = "Votre session est fermée";
|
| 178 |
$l_wait = "Patientez un instant ....";
|
178 |
$l_wait = "Patientez un instant ....";
|
| 179 |
$l_state_label = "Etat";
|
179 |
$l_state_label = "Etat";
|
| 180 |
$l_session_id_label = "Session ID";
|
180 |
$l_session_id_label = "Session ID";
|
| 181 |
$l_max_session_time_label = "Temps de connexion autorisé";
|
181 |
$l_max_session_time_label = "Temps de connexion autorisé";
|
| 182 |
$l_max_idle_time_label = "Inactivité max. autorisée";
|
182 |
$l_max_idle_time_label = "Inactivité max. autorisée";
|
| 183 |
$l_start_time_label = "Début de connexion";
|
183 |
$l_start_time_label = "Début de connexion";
|
| 184 |
$l_session_time_label = "Durée de connexion";
|
184 |
$l_session_time_label = "Durée de connexion";
|
| 185 |
$l_idle_time_label = "Inactivité";
|
185 |
$l_idle_time_label = "Inactivité";
|
| 186 |
$l_downloaded_label = "Données téléchargées";
|
186 |
$l_downloaded_label = "Données téléchargées";
|
| 187 |
$l_uploaded_label = "Données envoyées";
|
187 |
$l_uploaded_label = "Données envoyées";
|
| 188 |
$l_original_url_label = "URL demandée";
|
188 |
$l_original_url_label = "URL demandée";
|
| 189 |
$l_not_available = "Non disponible";
|
189 |
$l_not_available = "Non disponible";
|
| 190 |
$l_na = "N/D"; //à traduire
|
190 |
$l_na = "N/D"; // to translate
|
| 191 |
$l_error = "erreur";
|
191 |
$l_error = "erreur";
|
| 192 |
$l_welcome = "Bienvenue";
|
192 |
$l_welcome = "Bienvenue";
|
| 193 |
$l_conn_history = "Vos $nb_connection_history dernières connexions";
|
193 |
$l_conn_history = "Vos $nb_connection_history dernières connexions";
|
| 194 |
$l_connected = "session active";
|
194 |
$l_connected = "session active";
|
| 195 |
$l_a_connection = "Vous avez";
|
195 |
$l_a_connection = "Vous avez";
|
| 196 |
$l_a_connection_time = "connexions actives sur le réseau";
|
196 |
$l_a_connection_time = "connexions actives sur le réseau";
|
| 197 |
}
|
197 |
}
|
| 198 |
else {
|
198 |
else {
|
| 199 |
$l_login1 = "Successful authentication.";
|
199 |
$l_login1 = "Successful authentication.";
|
| 200 |
$l_logout = "Closing connection";
|
200 |
$l_logout = "Closing connection";
|
| 201 |
$l_logout_question = "Are you sure you want to disconnect now?";
|
201 |
$l_logout_question = "Are you sure you want to disconnect now?";
|
| 202 |
$l_loggedout = "Your session is closed";
|
202 |
$l_loggedout = "Your session is closed";
|
| 203 |
$l_wait = "Please wait a moment ...";
|
203 |
$l_wait = "Please wait a moment ...";
|
| 204 |
$l_state_label = "State";
|
204 |
$l_state_label = "State";
|
| 205 |
$l_session_id_label = "Session ID";
|
205 |
$l_session_id_label = "Session ID";
|
| 206 |
$l_max_session_time_label = "Max Session Time";
|
206 |
$l_max_session_time_label = "Max Session Time";
|
| 207 |
$l_max_idle_time_label = "Max Idle Time";
|
207 |
$l_max_idle_time_label = "Max Idle Time";
|
| 208 |
$l_start_time_label = "Start Time";
|
208 |
$l_start_time_label = "Start Time";
|
| 209 |
$l_session_time_label = "Session Time";
|
209 |
$l_session_time_label = "Session Time";
|
| 210 |
$l_idle_time_label = "Idle Time";
|
210 |
$l_idle_time_label = "Idle Time";
|
| 211 |
$l_downloaded_label = "Downloaded";
|
211 |
$l_downloaded_label = "Downloaded";
|
| 212 |
$l_uploaded_label = "Uploaded";
|
212 |
$l_uploaded_label = "Uploaded";
|
| 213 |
$l_original_url_label = "Original URL";
|
213 |
$l_original_url_label = "Original URL";
|
| 214 |
$l_not_available = "Not available";
|
214 |
$l_not_available = "Not available";
|
| 215 |
$l_na = "N/A";
|
215 |
$l_na = "N/A";
|
| 216 |
$l_error = "error";
|
216 |
$l_error = "error";
|
| 217 |
$l_welcome = "Welcome";
|
217 |
$l_welcome = "Welcome";
|
| 218 |
$l_conn_history = "Your last $nb_connection_history connections";
|
218 |
$l_conn_history = "Your last $nb_connection_history connections";
|
| 219 |
$l_connected = "logged";
|
219 |
$l_connected = "logged";
|
| 220 |
$l_a_connection = "You have"; //à traduire
|
220 |
$l_a_connection = "You have";
|
| 221 |
$l_a_connection_time = "active connections on the network"; //à traduire
|
221 |
$l_a_connection_time = "active connections on the network";
|
| 222 |
}
|
222 |
}
|
| 223 |
|
223 |
|
| 224 |
// si on a pas d'accès à la bdd, la page s'affiche quand même correctement
|
224 |
// si on a pas d'accès à la bdd, la page s'affiche quand même correctement
|
| 225 |
if (isset($user[5])){
|
225 |
if (isset($user[5])){
|
| 226 |
if ((is_file("./acc/manager/lib/sql/drivers/mysql/functions.php"))&&(is_file("/etc/freeradius-web/config.php"))){
|
226 |
if ((is_file("./acc/manager/lib/sql/drivers/mysql/functions.php"))&&(is_file("/etc/freeradius-web/config.php"))){
|