Use file_get_contents()

This commit is contained in:
Scott Ullrich 2008-12-20 22:46:26 +00:00
parent 9a706a57ba
commit df367a38e3

View File

@ -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 */