Subversion Repositories ALCASAR

Rev

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

Rev 1269 Rev 1314
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: intercept.php 1269 2013-12-16 23:13:20Z richard $
2
# $Id: intercept.php 1314 2014-02-26 15:13:05Z 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 285... Line 285...
285
</html>";
285
</html>";
286
    exit(0);
286
    exit(0);
287
}
287
}
288
 
288
 
289
# Read form parameters which we care about
289
# Read form parameters which we care about
-
 
290
# avoid the "user as a MAC address" attempts
-
 
291
if ((isset($_POST['UserName'])) && (preg_match('/^([0-9A-F]{2}-){5}[0-9A-F]{2}$/',$_POST['UserName'])!=1)){
290
if (isset($_POST['UserName'])){	$username	= $_POST['UserName'];} else {$username="";}
292
				$username	= $_POST['UserName'];} else {$username="";}
291
if (isset($_POST['Password'])){	$password	= $_POST['Password'];} else {$password="";}
293
if (isset($_POST['Password'])){	$password	= $_POST['Password'];} else {$password="";}
292
if (isset($_POST['challenge'])){$challenge	= $_POST['challenge'];} else {$challenge="";}
294
if (isset($_POST['challenge'])){$challenge	= $_POST['challenge'];} else {$challenge="";}
293
if (isset($_POST['button'])){	$button		= $_POST['button'];} else { $button="";}
295
if (isset($_POST['button'])){	$button		= $_POST['button'];} else { $button="";}
294
//if (isset($_POST['logout'])){	$logout		= $_POST['logout'];} else {$logout="";}
296
//if (isset($_POST['logout'])){	$logout		= $_POST['logout'];} else {$logout="";}
295
//if (isset($_POST['prelogin'])){	$prelogin	= $_POST['prelogin'];} else {$prelogin="";}
297
//if (isset($_POST['prelogin'])){	$prelogin	= $_POST['prelogin'];} else {$prelogin="";}