Line 1... |
Line 1... |
1 |
<?php
|
1 |
<?php
|
2 |
# $Id: intercept.php 1491 2014-11-19 10:00:30Z franck $
|
2 |
# $Id: intercept.php 1670 2015-07-24 21:19:11Z richard $
|
3 |
#
|
3 |
#
|
4 |
# intercept.php for ALCASAR captive portal
|
4 |
# intercept.php for ALCASAR captive portal
|
5 |
# Copyright (C) 2003, 2004 Mondru AB.
|
5 |
# Copyright (C) 2003, 2004 Mondru AB.
|
6 |
# Modify by REXY & steweb57
|
6 |
# Modify by REXY & steweb57
|
7 |
# UI & css style by stephane ERARD
|
7 |
# UI & css style by stephane ERARD
|
Line 236... |
Line 236... |
236 |
$l_reply_4 = "Votre compte a expiré";
|
236 |
$l_reply_4 = "Votre compte a expiré";
|
237 |
$l_reply_5 = "Vous avez atteint le nombre maximum de connexions simultanées";
|
237 |
$l_reply_5 = "Vous avez atteint le nombre maximum de connexions simultanées";
|
238 |
$l_reply_6 = "Votre durée de connexion autorisée a été atteinte";
|
238 |
$l_reply_6 = "Votre durée de connexion autorisée a été atteinte";
|
239 |
$l_online_time = "Temps de connexion";
|
239 |
$l_online_time = "Temps de connexion";
|
240 |
$l_remaining_time = "Temps restant";
|
240 |
$l_remaining_time = "Temps restant";
|
241 |
$l_uam_domain = "Sites autorisés : ";}
|
241 |
$l_uam_domain = "Sites autorisés : ";
|
- |
|
242 |
$l_autoregistration = "Auto enregistrement (sms)";}
|
242 |
else{
|
243 |
else{
|
243 |
$l_ChilliError = "The authentication must be successful through the captive portal service.";
|
244 |
$l_ChilliError = "The authentication must be successful through the captive portal service.";
|
244 |
$l_login = "Successful authentication.<HR>Closing this window interrupts your session";
|
245 |
$l_login = "Successful authentication.<HR>Closing this window interrupts your session";
|
245 |
$l_logout = "Closing connection";
|
246 |
$l_logout = "Closing connection";
|
246 |
$l_loginfailed = "Authentication Failed";
|
247 |
$l_loginfailed = "Authentication Failed";
|
Line 269... |
Line 270... |
269 |
$l_reply_5 = "You have reached the maximum number of simultaneous logins";
|
270 |
$l_reply_5 = "You have reached the maximum number of simultaneous logins";
|
270 |
$l_reply_6 = "Your authorized connexion time has been reached";
|
271 |
$l_reply_6 = "Your authorized connexion time has been reached";
|
271 |
$l_online_time = "Online time";
|
272 |
$l_online_time = "Online time";
|
272 |
$l_remaining_time = "Remaining time";
|
273 |
$l_remaining_time = "Remaining time";
|
273 |
$l_uam_domain = "Authorized websites : ";
|
274 |
$l_uam_domain = "Authorized websites : ";
|
- |
|
275 |
$l_autoregistration = "Auto registration (sms)";
|
274 |
}
|
276 |
}
|
275 |
|
277 |
|
276 |
# If https not use, tell it's wrong
|
278 |
# If https not use, tell it's wrong
|
277 |
if (!(isset($_SERVER['HTTPS'])&&($_SERVER['HTTPS'] == 'on'))) {
|
279 |
if (!(isset($_SERVER['HTTPS'])&&($_SERVER['HTTPS'] == 'on'))) {
|
278 |
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
|
280 |
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
|
Line 452... |
Line 454... |
452 |
</tr>
|
454 |
</tr>
|
453 |
<tr>
|
455 |
<tr>
|
454 |
<td align=\"right\">$l_password</td>
|
456 |
<td align=\"right\">$l_password</td>
|
455 |
<td align=\"left\"><INPUT maxLength=\"32\" type=\"password\" name=\"Password\" autocomplete=\"off\"></td>
|
457 |
<td align=\"left\"><INPUT maxLength=\"32\" type=\"password\" name=\"Password\" autocomplete=\"off\"></td>
|
456 |
</tr>
|
458 |
</tr>
|
457 |
<tr>";
|
459 |
";
|
458 |
|
460 |
|
- |
|
461 |
echo " </tr>
|
459 |
echo "</td><td height=\"23\" align=\"left\"><INPUT value=\"$l_boutonO\" type=\"submit\" name=\"button\" onclick=\"javascript:popUp('$statuspath')\"></td>
|
462 |
<td height=\"23\" align=\"left\"><INPUT value=\"$l_boutonO\" type=\"submit\" name=\"button\" onclick=\"javascript:popUp('$statuspath')\"></td>
|
460 |
";
|
463 |
";
|
461 |
|
464 |
|
- |
|
465 |
|
- |
|
466 |
$service_SMS_status=false;
|
- |
|
467 |
if($service_SMS_status){
|
- |
|
468 |
echo " <td><a href=\"./autoregistrationinfo.php\">".$l_autoregistration."</a></td>";
|
- |
|
469 |
}
|
- |
|
470 |
|
462 |
echo "</table>
|
471 |
echo " </tr>
|
- |
|
472 |
</table>
|
- |
|
473 |
|
463 |
</form>
|
474 |
</form>
|
464 |
<table id=\"boite-info\" cellSpacing=\"0\" cellPadding=\"0\" width=\"80%\">
|
475 |
<table id=\"boite-info\" cellSpacing=\"0\" cellPadding=\"0\" width=\"80%\">
|
465 |
<tr>
|
476 |
<tr>
|
466 |
<td align=\"center\"><FONT color=\"red\"><B>$l_loggedin_stringl1</B></FONT></td>
|
477 |
<td align=\"center\"><FONT color=\"red\"><B>$l_loggedin_stringl1</B></FONT></td>
|
467 |
</tr>
|
478 |
</tr>
|