diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-07-08 21:15:09 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-07-08 21:15:09 +0000 |
commit | 5563a2c0043b2b90820f4155ab8553ef1390da6b (patch) | |
tree | f6957c6c0a0e251e6efcdc8223c80d3edd087e0a | |
parent | 4c24a0efe2146f7e7112f0e6c299cbc6e3fcbc1a (diff) | |
download | pfsense-5563a2c0043b2b90820f4155ab8553ef1390da6b.zip pfsense-5563a2c0043b2b90820f4155ab8553ef1390da6b.tar.gz |
Add file_put_contents() function
-rw-r--r-- | etc/inc/pfsense-utils.inc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 0decd70..3c0bebb 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -139,6 +139,14 @@ function return_filename_as_array($filename, $strip = array('#')) { return $file; } +if(!function_exists("file_put_contents")) { + function file_put_contents($filename, $data) { + $fd = fopen($filename,"w"); + fwrite($fd, $data); + fclose($fd); + } +} + /****f* pfsense-utils/get_carp_status * NAME * get_carp_status - Return whether CARP is enabled or disabled. |