Line 1... |
Line 1... |
1 |
<?php
|
1 |
<?php
|
2 |
# $Id: intercept.php 1349 2014-05-14 14:52:19Z richard $
|
2 |
# $Id: intercept.php 1452 2014-09-19 13:21:07Z 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";}
|
- |
|
243 |
else{
|
242 |
else{
|
244 |
$l_ChilliError = "The authentication must be successful through the captive portal service.";
|
243 |
$l_ChilliError = "The authentication must be successful through the captive portal service.";
|
245 |
$l_login = "Successful authentication.<HR>Closing this window interrupts your session";
|
244 |
$l_login = "Successful authentication.<HR>Closing this window interrupts your session";
|
246 |
$l_logout = "Closing connection";
|
245 |
$l_logout = "Closing connection";
|
247 |
$l_loginfailed = "Authentication Failed";
|
246 |
$l_loginfailed = "Authentication Failed";
|
Line 270... |
Line 269... |
270 |
$l_reply_5 = "You have reached the maximum number of simultaneous logins";
|
269 |
$l_reply_5 = "You have reached the maximum number of simultaneous logins";
|
271 |
$l_reply_6 = "Your authorized connexion time has been reached";
|
270 |
$l_reply_6 = "Your authorized connexion time has been reached";
|
272 |
$l_online_time = "Online time";
|
271 |
$l_online_time = "Online time";
|
273 |
$l_remaining_time = "Remaining time";
|
272 |
$l_remaining_time = "Remaining time";
|
274 |
$l_uam_domain = "Authorized websites : ";
|
273 |
$l_uam_domain = "Authorized websites : ";
|
275 |
$l_autoregistration = "Auto registration";}
|
- |
|
- |
|
274 |
}
|
276 |
|
275 |
|
277 |
# If https not use, tell it's wrong
|
276 |
# If https not use, tell it's wrong
|
278 |
if (!(isset($_SERVER['HTTPS'])&&($_SERVER['HTTPS'] == 'on'))) {
|
277 |
if (!(isset($_SERVER['HTTPS'])&&($_SERVER['HTTPS'] == 'on'))) {
|
279 |
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
|
278 |
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
|
280 |
<html>
|
279 |
<html>
|
Line 458... |
Line 457... |
458 |
<tr>";
|
457 |
<tr>";
|
459 |
|
458 |
|
460 |
echo "</td><td height=\"23\" align=\"left\"><INPUT value=\"$l_boutonO\" type=\"submit\" name=\"button\" onclick=\"javascript:popUp('$statuspath')\"></td>
|
459 |
echo "</td><td height=\"23\" align=\"left\"><INPUT value=\"$l_boutonO\" type=\"submit\" name=\"button\" onclick=\"javascript:popUp('$statuspath')\"></td>
|
461 |
";
|
460 |
";
|
462 |
|
461 |
|
463 |
|
- |
|
464 |
$gammu_smsd=exec("pidof gammu-smsd");
|
- |
|
465 |
if ($gammu_smsd != "")
|
- |
|
466 |
{
|
- |
|
467 |
echo "<td height=\"23\" align=\"left\"><a target=\"_blank\" href=\"autoregistrationinfo.php\">$l_autoregistration</a></td></tr>";
|
- |
|
468 |
|
- |
|
469 |
}
|
- |
|
470 |
|
- |
|
471 |
echo "</table>
|
462 |
echo "</table>
|
472 |
</form>
|
463 |
</form>
|
473 |
<table id=\"boite-info\" cellSpacing=\"0\" cellPadding=\"0\" width=\"80%\">
|
464 |
<table id=\"boite-info\" cellSpacing=\"0\" cellPadding=\"0\" width=\"80%\">
|
474 |
<tr>
|
465 |
<tr>
|
475 |
<td align=\"center\"><FONT color=\"red\"><B>$l_loggedin_stringl1</B></FONT></td>
|
466 |
<td align=\"center\"><FONT color=\"red\"><B>$l_loggedin_stringl1</B></FONT></td>
|