Subversion Repositories ALCASAR

Rev

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

Rev 2409 Rev 2450
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: intercept.php 2409 2017-09-14 18:52:54Z tom.houdayer $
2
# $Id: intercept.php 2450 2017-12-05 21:53:42Z 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 47... Line 47...
47
	exit('Error opening the file '.CONF_FILE);
47
	exit('Error opening the file '.CONF_FILE);
48
}
48
}
49
while (!feof($file_conf)) {
49
while (!feof($file_conf)) {
50
	$buffer = fgets($file_conf, 4096);
50
	$buffer = fgets($file_conf, 4096);
51
	if ((strpos($buffer, '=') !== false) && (substr($buffer, 0, 1) !== '#')) {
51
	if ((strpos($buffer, '=') !== false) && (substr($buffer, 0, 1) !== '#')) {
52
		$tmp = explode('=', $buffer);
52
		$tmp = explode('=', $buffer, 2);
53
		$conf[trim($tmp[0])] = trim($tmp[1]);
53
		$conf[trim($tmp[0])] = trim($tmp[1]);
54
	}
54
	}
55
}
55
}
56
fclose($file_conf);
56
fclose($file_conf);
57
 
57