Subversion Repositories ALCASAR

Rev

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

Rev 2317 Rev 2450
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: autoregistrationinfo.php 2317 2017-06-30 11:42:44Z tom.houdayer $
2
# $Id: autoregistrationinfo.php 2450 2017-12-05 21:53:42Z tom.houdayer $
3
 
3
 
4
// CHECK IF the SMS service is enable
4
// CHECK IF the SMS service is enable
5
$service_SMS_status = false;
5
$service_SMS_status = false;
6
 
6
 
7
if (!$service_SMS_status) {
7
if (!$service_SMS_status) {
Line 18... Line 18...
18
	exit('Error opening the file '.CONF_FILE);
18
	exit('Error opening the file '.CONF_FILE);
19
}
19
}
20
while (!feof($file_conf)) {
20
while (!feof($file_conf)) {
21
	$buffer = fgets($file_conf, 4096);
21
	$buffer = fgets($file_conf, 4096);
22
	if ((strpos($buffer, '=') !== false) && (substr($buffer, 0, 1) !== '#')) {
22
	if ((strpos($buffer, '=') !== false) && (substr($buffer, 0, 1) !== '#')) {
23
		$tmp = explode('=', $buffer);
23
		$tmp = explode('=', $buffer, 2);
24
		$conf[$tmp[0]] = trim($tmp[1]);
24
		$conf[trim($tmp[0])] = trim($tmp[1]);
25
	}
25
	}
26
}
26
}
27
fclose($file_conf);
27
fclose($file_conf);
28
 
28
 
29
$organisme = trim($conf["ORGANISM"]);
29
$organisme = trim($conf["ORGANISM"]);