Subversion Repositories ALCASAR

Rev

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

Rev 2182 Rev 2184
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: intercept.php 2182 2017-04-25 22:10:46Z tom.houdayer $
2
# $Id: intercept.php 2184 2017-04-26 17:15:13Z 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 592... Line 592...
592
					$domain_allowed = explode("#", $line);
592
					$domain_allowed = explode("#", $line);
593
					if (trim($domain_allowed[1]) !== '') {
593
					if (trim($domain_allowed[1]) !== '') {
594
						$domain = explode('"', $domain_allowed[0]);
594
						$domain = explode('"', $domain_allowed[0]);
595
						// remove every '.' from the beginning of domain
595
						// remove every '.' from the beginning of domain
596
						$domain[1] = ltrim($domain[1], '.');
596
						$domain[1] = ltrim($domain[1], '.');
597
						echo '<a href="http://'.trim($domain[1]).'">'.trim($domain_allowed[1]).'</a>';
597
						echo '<a href="http://'.trim($domain[1]).'">'.trim($domain_allowed[1]).'</a>  ';
598
					}
598
					}
599
				}
599
				}
600
			}
600
			}
601
		}
601
		}
602
		?>
602
		?>