Subversion Repositories ALCASAR

Rev

Rev 2450 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2450 Rev 2600
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: autoregistrationinfo.php 2450 2017-12-05 21:53:42Z tom.houdayer $
2
# $Id: autoregistrationinfo.php 2600 2018-08-19 23:48:55Z tom.houdayer $
3
 
-
 
4
// CHECK IF the SMS service is enable
-
 
5
$service_SMS_status = false;
-
 
6
 
-
 
7
if (!$service_SMS_status) {
-
 
8
	header('Location: /');
-
 
9
	exit();
-
 
10
}
-
 
11
 
-
 
12
 
3
 
13
define('CONF_FILE', '/usr/local/etc/alcasar.conf');
4
define('CONF_FILE', '/usr/local/etc/alcasar.conf');
14
 
5
 
15
// Read CONF_FILE
6
// Read CONF_FILE
16
$file_conf = fopen(CONF_FILE, 'r');
7
$file_conf = fopen(CONF_FILE, 'r');
Line 24... Line 15...
24
		$conf[trim($tmp[0])] = trim($tmp[1]);
15
		$conf[trim($tmp[0])] = trim($tmp[1]);
25
	}
16
	}
26
}
17
}
27
fclose($file_conf);
18
fclose($file_conf);
28
 
19
 
-
 
20
// Check if the SMS service is enable
-
 
21
if ($conf['SMS'] !== 'on') {
-
 
22
	header('Location: /');
-
 
23
	exit();
-
 
24
}
-
 
25
 
29
$organisme = trim($conf["ORGANISM"]);
26
$organisme   = $conf['ORGANISM'];
30
$current_num='XXXXXXXXXX';
27
$current_num = $conf['SMS_NUM'];
31
 
28
 
32
 
29
 
33
// Choice of language
30
// Choice of language
34
$Language = 'en';
31
$Language = 'en';
35
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
32
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {