Subversion Repositories ALCASAR

Rev

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

Rev 838 Rev 847
Line 133... Line 133...
133
$OptServiceStatus = array();
133
$OptServiceStatus = array();
134
$OptServiceStatus['sshd'] = checkServiceStatus("sshd","pid");
134
$OptServiceStatus['sshd'] = checkServiceStatus("sshd","pid");
135
$OptServiceStatus['freshclam'] = checkServiceStatus("freshclam","pid");
135
$OptServiceStatus['freshclam'] = checkServiceStatus("freshclam","pid");
136
$OptServiceStatus['ntpd'] = checkServiceStatus("ntpd","pid");
136
$OptServiceStatus['ntpd'] = checkServiceStatus("ntpd","pid");
137
 
137
 
138
/********************************************************************
-
 
139
*			Lecture du fichier CONF_FILE							*
-
 
140
*********************************************************************/
-
 
141
$ouvre=fopen(CONF_FILE,"r");
-
 
142
if ($ouvre){
-
 
143
	while (!feof ($ouvre))
-
 
144
	{
-
 
145
		$tampon = fgets($ouvre, 4096);
-
 
146
		if (strpos($tampon,"=")!==false){
-
 
147
			$tmp = explode("=",$tampon);
-
 
148
			$conf[$tmp[0]] = $tmp[1];
-
 
149
		}
-
 
150
	}
-
 
151
}else{
-
 
152
	exit("Erreur d'ouverture du fichier ".ALCASAR_ETH1);
-
 
153
}
-
 
154
fclose($ouvre);
-
 
155
 
-
 
156
/****************
138
/****************
157
*	MAIN	*
139
*	MAIN	*
158
*****************/
140
*****************/
159
 
141
 
160
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
142
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">