Subversion Repositories ALCASAR

Rev

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

Rev 2283 Rev 2324
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: intercept.php 2283 2017-06-20 08:06:02Z tom.houdayer $
2
# $Id: intercept.php 2324 2017-07-10 10:18:59Z 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 341... Line 341...
341
	$l_remaining_time		= "Remaining time";
341
	$l_remaining_time		= "Remaining time";
342
	$l_uam_domain			= "Authorized websites : ";
342
	$l_uam_domain			= "Authorized websites : ";
343
	$l_autoregistration		= "Auto registration (sms)";
343
	$l_autoregistration		= "Auto registration (sms)";
344
}
344
}
345
 
345
 
346
# If https not use, tell it's wrong
346
# If HTTPS not use, tell it's wrong
347
if ((!isset($_SERVER['HTTPS'])) || (empty($_SERVER['HTTPS'])) || ($_SERVER['HTTPS'] === 'off')) {
347
if (($conf['HTTPS_LOGIN'] === 'on') && ((!isset($_SERVER['HTTPS'])) || (empty($_SERVER['HTTPS'])) || ($_SERVER['HTTPS'] === 'off'))) {
348
	// Cleaning the cache
348
	// Cleaning the cache
349
	header('Expires: Tue, 01 Jan 2000 00:00:00 GMT');
349
	header('Expires: Tue, 01 Jan 2000 00:00:00 GMT');
350
	header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
350
	header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
351
	header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');
351
	header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');
352
	header('Cache-Control: post-check=0, pre-check=0', false);
352
	header('Cache-Control: post-check=0, pre-check=0', false);