Subversion Repositories ALCASAR

Rev

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

Rev 2272 Rev 2450
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: password.php 2272 2017-06-04 19:03:43Z tom.houdayer $
2
# $Id: password.php 2450 2017-12-05 21:53:42Z tom.houdayer $
3
#
3
#
4
# change user password on ALACASAR NAC
4
# change user password on ALACASAR NAC
5
# Copyright (C) 2003, 2004 Mondru AB.
5
# Copyright (C) 2003, 2004 Mondru AB.
6
# Copyright (C) 2008-20017 ANGEL95 & REXY
6
# Copyright (C) 2008-20017 ANGEL95 & REXY
7
 
7
 
Line 31... Line 31...
31
	exit('Error opening the file '.CONF_FILE);
31
	exit('Error opening the file '.CONF_FILE);
32
}
32
}
33
while (!feof($file_conf)) {
33
while (!feof($file_conf)) {
34
	$buffer = fgets($file_conf, 4096);
34
	$buffer = fgets($file_conf, 4096);
35
	if ((strpos($buffer, '=') !== false) && (substr($buffer, 0, 1) !== '#')) {
35
	if ((strpos($buffer, '=') !== false) && (substr($buffer, 0, 1) !== '#')) {
36
		$tmp = explode('=', $buffer);
36
		$tmp = explode('=', $buffer, 2);
37
		$conf[$tmp[0]] = trim($tmp[1]);
37
		$conf[trim($tmp[0])] = trim($tmp[1]);
38
	}
38
	}
39
}
39
}
40
fclose($file_conf);
40
fclose($file_conf);
41
 
41
 
42
// Redirect to HTTPS
42
// Redirect to HTTPS