diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-12-01 11:04:00 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-12-01 11:04:00 -0200 |
commit | ce0b35daecfdf452ad37d2c526c846dcdea191cf (patch) | |
tree | f7024e1032fb25bb9f68bd1eb16e8467caf3a867 /config/varnish3/varnish_view_config.php | |
parent | bc7e20f0fac8c79d7c7e20371006c12944748b8d (diff) | |
parent | 013b19b7ab96847cffc6fdb9c6adb29f4da47323 (diff) | |
download | pfsense-packages-ce0b35daecfdf452ad37d2c526c846dcdea191cf.tar.gz pfsense-packages-ce0b35daecfdf452ad37d2c526c846dcdea191cf.tar.bz2 pfsense-packages-ce0b35daecfdf452ad37d2c526c846dcdea191cf.zip |
Merge pull request #742 from marcelloc/varnish_20141130
Diffstat (limited to 'config/varnish3/varnish_view_config.php')
-rw-r--r-- | config/varnish3/varnish_view_config.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/config/varnish3/varnish_view_config.php b/config/varnish3/varnish_view_config.php index b02e5c88..30765756 100644 --- a/config/varnish3/varnish_view_config.php +++ b/config/varnish3/varnish_view_config.php @@ -28,7 +28,7 @@ */ require("guiconfig.inc"); - +require("varnish.inc"); $pf_version=substr(trim(file_get_contents("/etc/version")),0,3); if ($pf_version < 2.0) $one_two = true; @@ -44,7 +44,7 @@ include("head.inc"); <p class="pgtitle"><?=$pgtitle?></font></p> <?php endif; ?> -<?php if ($savemsg) print_info_box($savemsg); ?> +<?php varnish_check_config();if ($savemsg) print_info_box($savemsg); ?> <form action="varnishstat_view_config.php" method="post"> @@ -71,8 +71,9 @@ include("head.inc"); <td class="tabcont" > <textarea id="varnishlogs" rows="50" cols="100%"> <?php - $config_file = file_get_contents("/var/etc/default.vcl"); - echo $config_file; + $config_file = file("/var/etc/default.vcl"); + foreach ($config_file as $l => $v) + echo ($l+1)." - {$v}"; ?> </textarea> </td> |