Subversion Repositories ALCASAR

Rev

Rev 2993 | Rev 3026 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log

Rev 2993 Rev 3001
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: intercept.php 2993 2022-03-06 23:02:08Z rexy $
2
# $Id: intercept.php 3001 2022-03-20 23:06:20Z rexy $
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 55... Line 55...
55
}
55
}
56
fclose($file_conf);
56
fclose($file_conf);
57
 
57
 
58
$organisme = $conf["ORGANISM"];
58
$organisme = $conf["ORGANISM"];
59
$service_SMS_status = ($conf['SMS'] === 'on');
59
$service_SMS_status = ($conf['SMS'] === 'on');
60
$service_Email_status = ($conf['Email'] === 'on');
60
$service_Email_status = ($conf['MAIL'] === 'on');
61
$service_wifi4eu_status = ($conf['WIFI4EU'] === 'on');
61
$service_wifi4eu_status = ($conf['WIFI4EU'] === 'on');
62
$service_wifi4eu_code = $conf['WIFI4EU_CODE'];
62
$service_wifi4eu_code = $conf['WIFI4EU_CODE'];
63
$service_wifi4eu_server = 'https://collection.wifi4eu.ec.europa.eu/wifi4eu.min.js';
63
$service_wifi4eu_server = 'https://collection.wifi4eu.ec.europa.eu/wifi4eu.min.js';
64
 
64
 
65
// Shared secret used to encrypt password with coova.
65
// Shared secret used to encrypt password with coova.
66
$uamsecret = "";
66
$uamsecret = "F3t9VEY6jOwHm7xE";
67
 
67
 
68
// URL loaded after success authenticates (let blank for browser defaults)
68
// URL loaded after success authenticates (let blank for browser defaults)
69
$adminurl = "";
69
$adminurl = "";
70
 
70
 
71
// Our own path
71
// Our own path
Line 322... Line 322...
322
	$l_reply_6			= "Votre durée de connexion autorisée a été atteinte";
322
	$l_reply_6			= "Votre durée de connexion autorisée a été atteinte";
323
	$l_online_time			= "Temps de connexion";
323
	$l_online_time			= "Temps de connexion";
324
	$l_remaining_time		= "Temps restant";
324
	$l_remaining_time		= "Temps restant";
325
	$l_uam_domain			= "Sites en accès libre : ";
325
	$l_uam_domain			= "Sites en accès libre : ";
326
	$l_sms_registration		= "S'inscrire par SMS";
326
	$l_sms_registration		= "S'inscrire par SMS";
327
	$l_email_registration 	= "S'incrire pae E-mail";
327
	$l_email_registration		= "S'incrire par E-mail";
328
} else {				// English
328
} else {				// English
329
	$l_ChilliError			= "The authentication must be successful through the captive portal service.";
329
	$l_ChilliError			= "The authentication must be successful through the captive portal service.";
330
	$l_login			= "Successful authentication.<HR>Closing this window interrupts your session";
330
	$l_login			= "Successful authentication.<HR>Closing this window interrupts your session";
331
	$l_logout			= "Closing connection";
331
	$l_logout			= "Closing connection";
332
	$l_loginfailed			= "Authentication Failed";
332
	$l_loginfailed			= "Authentication Failed";
Line 501... Line 501...
501
//////////////////////////////////////////////////////////////////
501
//////////////////////////////////////////////////////////////////
502
//$result = 5;     // = 1/2/3/4/5 
502
//$result = 5;     // = 1/2/3/4/5 
503
// reply is a displayed sentence
503
// reply is a displayed sentence
504
//$reply = 'dsfsdfsdfdsf';    //  = ''/'Incorrect user/password'
504
//$reply = 'dsfsdfsdfdsf';    //  = ''/'Incorrect user/password'
505
//$service_SMS_status = true;    // = true/false
505
//$service_SMS_status = true;    // = true/false
-
 
506
//$service_Email_status = true;    // = true/false
506
// test of domain Allowed
507
// test of domain Allowed
507
//////////////////////////////////////////////////////////////////
508
//////////////////////////////////////////////////////////////////
508
 
509
 
509
// Cleaning the cache
510
// Cleaning the cache
510
header('Expires: Tue, 01 Jan 2000 00:00:00 GMT');
511
header('Expires: Tue, 01 Jan 2000 00:00:00 GMT');
Line 652... Line 653...
652
						<?php if ($service_SMS_status): ?>
653
						<?php if ($service_SMS_status): ?>
653
							<div class= "row sms_registration">
654
							<div class= "row sms_registration">
654
								<a href="sms_registration.php"><?= $l_sms_registration ?></a>
655
								<a href="sms_registration.php"><?= $l_sms_registration ?></a>
655
							</div>
656
							</div>
656
						<?php endif; ?>
657
						<?php endif; ?>
-
 
658
						<?php if ($service_Email_status): ?>
-
 
659
							<div class= "row sms_registration">
-
 
660
								<a href="email_registration_front.php"><?= $l_email_registration ?></a>
-
 
661
							</div>
-
 
662
						<?php endif; ?>
657
					</form>
663
					</form>
658
				</div>
664
				</div>
659
			</div>
665
			</div>
660
		</div>
666
		</div>
661
			<div class="row boite-info-spacing">
667
			<div class="row boite-info-spacing">