Subversion Repositories ALCASAR

Rev

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

Rev 2338 Rev 2450
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: menu.php 2338 2017-07-21 17:36:03Z tom.houdayer $
2
# $Id: menu.php 2450 2017-12-05 21:53:42Z tom.houdayer $
3
 
3
 
4
/****************************************************************
4
/****************************************************************
5
*			GLOBAL FILE PATHS			*
5
*			GLOBAL FILE PATHS			*
6
*****************************************************************/
6
*****************************************************************/
7
define('CONF_FILE', '/usr/local/etc/alcasar.conf');
7
define('CONF_FILE', '/usr/local/etc/alcasar.conf');
Line 28... Line 28...
28
	exit('Error opening the file '.CONF_FILE);
28
	exit('Error opening the file '.CONF_FILE);
29
}
29
}
30
while (!feof($file_conf)) {
30
while (!feof($file_conf)) {
31
	$buffer = fgets($file_conf, 4096);
31
	$buffer = fgets($file_conf, 4096);
32
	if ((strpos($buffer, '=') !== false) && (substr($buffer, 0, 1) !== '#')) {
32
	if ((strpos($buffer, '=') !== false) && (substr($buffer, 0, 1) !== '#')) {
33
		$tmp = explode('=', $buffer);
33
		$tmp = explode('=', $buffer, 2);
34
		$conf[trim($tmp[0])] = trim($tmp[1]);
34
		$conf[trim($tmp[0])] = trim($tmp[1]);
35
	}
35
	}
36
}
36
}
37
fclose($file_conf);
37
fclose($file_conf);
38
 
38