Subversion Repositories ALCASAR

Rev

Rev 2404 | Rev 2479 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log

Rev 2404 Rev 2450
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: network.php 2404 2017-08-28 18:10:38Z tom.houdayer $
2
# $Id: network.php 2450 2017-12-05 21:53:42Z tom.houdayer $
3
 
3
 
4
// written by steweb57, Rexy & Tom HOUDAYER
4
// written by steweb57, Rexy & Tom HOUDAYER
5
 
5
 
6
/********************
6
/********************
7
*  READ CONF FILES  *
7
*  READ CONF FILES  *
Line 29... Line 29...
29
	exit('Error opening the file '.CONF_FILE);
29
	exit('Error opening the file '.CONF_FILE);
30
}
30
}
31
while (!feof($file_conf)) {
31
while (!feof($file_conf)) {
32
	$buffer = fgets($file_conf, 4096);
32
	$buffer = fgets($file_conf, 4096);
33
	if ((strpos($buffer, '=') !== false) && (substr($buffer, 0, 1) !== '#')) {
33
	if ((strpos($buffer, '=') !== false) && (substr($buffer, 0, 1) !== '#')) {
34
		$tmp = explode('=', $buffer);
34
		$tmp = explode('=', $buffer, 2);
35
		$conf[trim($tmp[0])] = trim($tmp[1]);
35
		$conf[trim($tmp[0])] = trim($tmp[1]);
36
	}
36
	}
37
}
37
}
38
fclose($file_conf);
38
fclose($file_conf);
39
 
39
 
Line 337... Line 337...
337
		exit('Error opening the file '.CONF_FILE);
337
		exit('Error opening the file '.CONF_FILE);
338
	}
338
	}
339
	while (!feof($file_conf)) {
339
	while (!feof($file_conf)) {
340
		$buffer = fgets($file_conf, 4096);
340
		$buffer = fgets($file_conf, 4096);
341
		if ((strpos($buffer, '=') !== false) && (substr($buffer, 0, 1) !== '#')) {
341
		if ((strpos($buffer, '=') !== false) && (substr($buffer, 0, 1) !== '#')) {
342
			$tmp = explode('=', $buffer);
342
			$tmp = explode('=', $buffer, 2);
343
			$conf[trim($tmp[0])] = trim($tmp[1]);
343
			$conf[trim($tmp[0])] = trim($tmp[1]);
344
		}
344
		}
345
	}
345
	}
346
	fclose($file_conf);
346
	fclose($file_conf);
347
}
347
}
Line 377... Line 377...
377
	exit('Error opening the file '.LETS_ENCRYPT_FILE);
377
	exit('Error opening the file '.LETS_ENCRYPT_FILE);
378
}
378
}
379
while (!feof($file_conf_LE)) {
379
while (!feof($file_conf_LE)) {
380
	$buffer = fgets($file_conf_LE, 4096);
380
	$buffer = fgets($file_conf_LE, 4096);
381
	if ((strpos($buffer, '=') !== false) && (substr($buffer, 0, 1) !== '#')) {
381
	if ((strpos($buffer, '=') !== false) && (substr($buffer, 0, 1) !== '#')) {
382
		$tmp = explode('=', $buffer);
382
		$tmp = explode('=', $buffer, 2);
383
		$LE_conf[trim($tmp[0])] = trim($tmp[1]);
383
		$LE_conf[trim($tmp[0])] = trim($tmp[1]);
384
	}
384
	}
385
}
385
}
386
fclose($file_conf_LE);
386
fclose($file_conf_LE);
387
 
387