From 463d695c4f7ba87ba99f0ffc548ad6f994ff49d0 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 18 Nov 2014 19:48:44 +0100 Subject: Added proxy server settings --- inc/fileutil.inc.php | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 inc/fileutil.inc.php (limited to 'inc/fileutil.inc.php') diff --git a/inc/fileutil.inc.php b/inc/fileutil.inc.php new file mode 100644 index 00000000..f35f987e --- /dev/null +++ b/inc/fileutil.inc.php @@ -0,0 +1,66 @@ + $value) { + if (false === fwrite($fh, $key . ' = ' . preg_replace('/[\x00-\x1F]/s', '', (string)$value) . "\n")) { + fclose($fh); + return false; + } + } + fclose($fh); + return true; + } + +} \ No newline at end of file -- cgit v1.2.3-55-g7522