Subversion Repositories ALCASAR

Rev

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

Rev 2010 Rev 2044
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: intercept.php 2010 2016-07-26 14:08:50Z raphael.pion $
2
# $Id: intercept.php 2044 2016-08-24 13:33:17Z raphael.pion $
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 539... Line 539...
539
		if (trim($line) != '') # the line isn't empty
539
		if (trim($line) != '') # the line isn't empty
540
			{
540
			{
541
			$domain_allowed=explode("#", $line);
541
			$domain_allowed=explode("#", $line);
542
			if (trim($domain_allowed[1]) != ''){
542
			if (trim($domain_allowed[1]) != ''){
543
				$domain=explode("\"", $domain_allowed[0]);
543
				$domain=explode("\"", $domain_allowed[0]);
-
 
544
				#remove every '.' from the beginning of domain
-
 
545
                                $domain[1] = ltrim($domain[1], '.');
544
				echo "<a href=\"http://".trim($domain[1])."\">".trim($domain_allowed[1])."</a> ";}
546
				echo "<a href=\"http://".trim($domain[1])."\">".trim($domain_allowed[1])."</a> ";}
545
			}	
547
			}	
546
		}
548
		}
547
	}
549
	}
548
echo "	
550
echo "