135,24 → 135,6 |
$OptServiceStatus['freshclam'] = checkServiceStatus("freshclam","pid"); |
$OptServiceStatus['ntpd'] = checkServiceStatus("ntpd","pid"); |
|
/******************************************************************** |
* Lecture du fichier CONF_FILE * |
*********************************************************************/ |
$ouvre=fopen(CONF_FILE,"r"); |
if ($ouvre){ |
while (!feof ($ouvre)) |
{ |
$tampon = fgets($ouvre, 4096); |
if (strpos($tampon,"=")!==false){ |
$tmp = explode("=",$tampon); |
$conf[$tmp[0]] = $tmp[1]; |
} |
} |
}else{ |
exit("Erreur d'ouverture du fichier ".ALCASAR_ETH1); |
} |
fclose($ouvre); |
|
/**************** |
* MAIN * |
*****************/ |