Subversion Repositories ALCASAR

Rev

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

Rev 2591 Rev 2600
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: intercept.php 2591 2018-08-17 15:43:41Z rexy $
2
# $Id: intercept.php 2600 2018-08-19 23:48:55Z 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 62... Line 62...
62
 
62
 
63
// URL loaded after success authenticates (let blank for browser defaults)
63
// URL loaded after success authenticates (let blank for browser defaults)
64
$adminurl = "";
64
$adminurl = "";
65
 
65
 
66
// Check if the SMS service is enable
66
// Check if the SMS service is enable
67
$service_SMS_status = false;
67
$service_SMS_status = ($conf['SMS'] === 'on');
68
 
68
 
69
// Our own path
69
// Our own path
70
$loginpath = htmlspecialchars($_SERVER['PHP_SELF']);
70
$loginpath = htmlspecialchars($_SERVER['PHP_SELF']);
71
$useHTTPS = ((isset($_SERVER['HTTPS'])) && (!empty($_SERVER['HTTPS'])) && ($_SERVER['HTTPS'] !== 'off'));
71
$useHTTPS = ((isset($_SERVER['HTTPS'])) && (!empty($_SERVER['HTTPS'])) && ($_SERVER['HTTPS'] !== 'off'));
72
$alcasarpath = (($useHTTPS) ? 'https' : 'http' ).'://'.$conf['HOSTNAME'].'.'.$conf['DOMAIN'];
72
$alcasarpath = (($useHTTPS) ? 'https' : 'http' ).'://'.$conf['HOSTNAME'].'.'.$conf['DOMAIN'];