Subversion Repositories ALCASAR

Rev

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

Rev 1744 Rev 1748
Line 1... Line 1...
1
<?php
1
<?php
2
/* written by steweb57 & Rexy */
2
/* written by steweb57 & Rexy */
3
 
3
 
4
/********************
4
/********************
5
* TEST CONF FILES   *
5
* READ CONF FILES   *
6
*********************/
6
*********************/
7
define ("CONF_FILE", "/usr/local/etc/alcasar.conf");
7
define ("CONF_FILE", "/usr/local/etc/alcasar.conf");
8
define ("ETHERS_FILE", "/usr/local/etc/alcasar-ethers");
8
define ("ETHERS_FILE", "/usr/local/etc/alcasar-ethers");
9
$conf_files=array(CONF_FILE,ETHERS_FILE);
9
$conf_files=array(CONF_FILE,ETHERS_FILE);
10
foreach ($conf_files as $file){
10
foreach ($conf_files as $file){
Line 176... Line 176...
176
		if (strpos($tampon,"=")!==false){
176
		if (strpos($tampon,"=")!==false){
177
			$tmp = explode("=",$tampon);
177
			$tmp = explode("=",$tampon);
178
			$conf[$tmp[0]] = $tmp[1];
178
			$conf[$tmp[0]] = $tmp[1];
179
		}
179
		}
180
	}
180
	}
181
}else{
181
	fclose($ouvre);
182
	exit("Erreur d'ouverture du fichier ".CONF_FILE);
-
 
183
}
182
}
184
fclose($ouvre);
-
 
185
 
183
 
186
/************************
184
/************************
187
*	TO DO		*
185
*	TO DO		*
188
*************************/
186
*************************/
189
//modification de la conf réseau  --> V3.0
187
//modification de la conf réseau  --> V3.0