From df367a38e3594843f1f3afc2cf968aa22b68b5e9 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 20 Dec 2008 22:46:26 +0000 Subject: [PATCH] Use file_get_contents() --- usr/local/www/system_advanced_create_certs.php | 7 ++----- 1 file 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 c4bc7dde37..0823447e36 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 */