diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-10-08 19:00:18 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-10-08 19:00:18 +0000 |
commit | 3ecefca65b76270986ae34d54263eb10fc8774d3 (patch) | |
tree | c9a561f3f633038c2be941af92c20f0d49b2cd87 /packages/autoconfigbackup | |
parent | aeab9c3fc0ef3f32ce85390a7ccf741f2fa86c3f (diff) | |
download | pfsense-packages-3ecefca65b76270986ae34d54263eb10fc8774d3.tar.gz pfsense-packages-3ecefca65b76270986ae34d54263eb10fc8774d3.tar.bz2 pfsense-packages-3ecefca65b76270986ae34d54263eb10fc8774d3.zip |
Use file_get_contents()
Diffstat (limited to 'packages/autoconfigbackup')
-rw-r--r-- | packages/autoconfigbackup/crypt_acb.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/packages/autoconfigbackup/crypt_acb.php b/packages/autoconfigbackup/crypt_acb.php index 3fdfb4f2..804b6a41 100644 --- a/packages/autoconfigbackup/crypt_acb.php +++ b/packages/autoconfigbackup/crypt_acb.php @@ -35,13 +35,10 @@ fwrite($fd, $val); fclose($fd); exec("/usr/bin/openssl enc {$opt} -aes-256-cbc -in $file.dec -out $file.enc -k {$pass}"); - $myfile = file("$file.enc"); + $result = file_get_contents("$file.enc"); exec("rm $file"); exec("rm $file.dec"); exec("rm $file.enc"); - while (list($line_num, $line) = each($myfile)) { - $result .= $line; - } return $result; } |