summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-12-20 22:46:26 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-12-20 22:46:26 +0000
commitdf367a38e3594843f1f3afc2cf968aa22b68b5e9 (patch)
tree00fd16dfdc09d364cffd05be026ad8902ab1d9a6
parent9a706a57ba6888eea230c79064c099c4c59b514d (diff)
downloadpfsense-df367a38e3594843f1f3afc2cf968aa22b68b5e9.zip
pfsense-df367a38e3594843f1f3afc2cf968aa22b68b5e9.tar.gz
Use file_get_contents()
-rwxr-xr-xusr/local/www/system_advanced_create_certs.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/usr/local/www/system_advanced_create_certs.php b/usr/local/www/system_advanced_create_certs.php
index c4bc7dd..0823447 100755
--- a/usr/local/www/system_advanced_create_certs.php
+++ b/usr/local/www/system_advanced_create_certs.php
@@ -31,11 +31,8 @@
require("guiconfig.inc");
-if(file_exists("/var/etc/ssl/openssl.cnf")) {
- $fd = fopen("/var/etc/ssl/openssl.cnf", "r");
- $openssl = fread($fd,8096);
- fclose($fd);
-}
+if(file_exists("/var/etc/ssl/openssl.cnf"))
+ $openssl = file_get_contents("/var/etc/ssl/openssl.cnf");
/* Lets match the fileds in the read in file and
populate the variables for the form */
OpenPOWER on IntegriCloud