Subversion Repositories ALCASAR

Rev

Rev 2250 | Rev 2258 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2250 Rev 2257
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: intercept.php 2250 2017-05-22 22:00:03Z tom.houdayer $
2
# $Id: intercept.php 2257 2017-05-29 17:28:06Z tom.houdayer $
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 436... Line 436...
436
	header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');
436
	header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');
437
	header('Cache-Control: post-check=0, pre-check=0', false);
437
	header('Cache-Control: post-check=0, pre-check=0', false);
438
	header('Pragma: no-cache');
438
	header('Pragma: no-cache');
439
 
439
 
440
	header("Location: http://$uamip:$uamport/logon?username=$username&password=$pappassword&userurl=$userurl");
440
	header("Location: http://$uamip:$uamport/logon?username=$username&password=$pappassword&userurl=$userurl");
441
	?>
-
 
442
	<!DOCTYPE html>
-
 
443
	<html>
-
 
444
	<head>
-
 
445
		<meta charset="utf-8">
-
 
446
		<title><?= $l_loggingin ?></title>
-
 
447
		<meta http-equiv="refresh" content="0;url=<?= "http://$uamip:$uamport/logon?username=$username&password=$pappassword&userurl=$userurl" ?>">
-
 
448
	</head>
-
 
449
	<body style="background-color: white;">
-
 
450
		<h1 style="text-align: center;"><?= $l_loggingin ?></h1>
-
 
451
		<center><?= $l_wait ?></center> 
-
 
452
	</body>
-
 
453
	</html>
-
 
454
	<?php
-
 
455
	exit();
441
	exit();
456
}
442
}
457
 
443
 
458
switch($res) {
444
switch($res) {
459
	case 'success':	$result = 1; break; // If login successful
445
	case 'success':	$result = 1; break; // If login successful
Line 499... Line 485...
499
	header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');
485
	header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');
500
	header('Cache-Control: post-check=0, pre-check=0', false);
486
	header('Cache-Control: post-check=0, pre-check=0', false);
501
	header('Pragma: no-cache');
487
	header('Pragma: no-cache');
502
 
488
 
503
	header("Location: http://$uamip:$uamport/prelogin");
489
	header("Location: http://$uamip:$uamport/prelogin");
504
	?>
-
 
505
	<!DOCTYPE html>
-
 
506
	<html>
-
 
507
	<head>
-
 
508
		<meta charset="utf-8">
-
 
509
		<title><?= $l_loggingin ?></title>
-
 
510
		<meta http-equiv="refresh" content="0;url=<?= "http://$uamip:$uamport/prelogin" ?>">
-
 
511
	</head>
-
 
512
	<body style="background-color: white;">
-
 
513
		<h1 style="text-align: center;"><?= $l_loggingin ?></h1>
-
 
514
		<center><?= $l_wait ?></center> 
-
 
515
	</body>
-
 
516
	</html>
-
 
517
	<?php
-
 
518
	exit();
490
	exit();
519
}
491
}
520
 
492
 
521
// Cleaning the cache
493
// Cleaning the cache
522
header('Expires: Tue, 01 Jan 2000 00:00:00 GMT');
494
header('Expires: Tue, 01 Jan 2000 00:00:00 GMT');