Project

General

Profile

« Previous | Next » 

Revision 43affef2

Added by Ermal LUÇI over 12 years ago

Use file_put_contents for simplicity and concistency

View differences:

etc/inc/filter.inc
336 336
	layer7_start_l7daemon();
337 337

  
338 338
	if(!empty($filterdns)) {
339
		$filterdnsfd = fopen("{$g['varetc_path']}/filterdns.conf", "w");
340
		if($filterdnsfd) {
341
			fwrite($filterdnsfd, $filterdns);
342
			fclose($filterdnsfd);
343
		}
344 339
		killbypid("{$g['tmp_path']}/filterdns.pid");
340
		@file_put_contents("{$g['varetc_path']}/filterdns.conf", $filterdns);
345 341
		/*
346 342
		 * FilterDNS has three debugging levels. The default choosen is 1.
347 343
		 * Availabe are level 2 and greater then 2.

Also available in: Unified diff