Subversion Repositories ALCASAR

Rev

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

Rev 2385 Rev 2450
Line 17... Line 17...
17
 *   along with this program; if not, write to the                         *
17
 *   along with this program; if not, write to the                         *
18
 *   Free Software Foundation, Inc.,                                       *
18
 *   Free Software Foundation, Inc.,                                       *
19
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
19
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
20
 ***************************************************************************/
20
 ***************************************************************************/
21
 
21
 
22
// $Id: portail.php 2385 2017-08-22 16:36:16Z tom.houdayer $
22
// $Id: portail.php 2450 2017-12-05 21:53:42Z tom.houdayer $
23
 
23
 
24
// xml_utilisateur()
24
// xml_utilisateur()
25
 
25
 
26
function request ($texte) {
26
function request ($texte) {
27
		$strResult = 0;
27
		$strResult = 0;
Line 104... Line 104...
104
	$file_conf = fopen(CONF_FILE, 'r');
104
	$file_conf = fopen(CONF_FILE, 'r');
105
	if (!$file_conf) {
105
	if (!$file_conf) {
106
		exit('Error opening the file '.CONF_FILE);
106
		exit('Error opening the file '.CONF_FILE);
107
	}
107
	}
108
	while (!feof($file_conf)) {
108
	while (!feof($file_conf)) {
109
		$tampon = fgets($file_conf, 4096);
109
		$buffer = fgets($file_conf, 4096);
110
		if ((strpos($tampon, '=') !== false) && (substr($tampon, 0, 1) !== '#')) {
110
		if ((strpos($buffer, '=') !== false) && (substr($buffer, 0, 1) !== '#')) {
111
			$tmp = explode('=', $tampon);
111
			$tmp = explode('=', $buffer, 2);
112
			$conf[$tmp[0]] = trim($tmp[1]);
112
			$conf[trim($tmp[0])] = trim($tmp[1]);
113
		}
113
		}
114
	}
114
	}
115
	fclose($file_conf);
115
	fclose($file_conf);
116
 
116
 
117
	exec ("sudo /usr/local/bin/alcasar-watchdog.sh -lt");
117
	exec ("sudo /usr/local/bin/alcasar-watchdog.sh -lt");