diff options
author | Serg <dv_serg@mail.ru> | 2010-04-28 00:15:22 +0400 |
---|---|---|
committer | Serg <dv_serg@mail.ru> | 2010-04-28 00:15:22 +0400 |
commit | 1af50c2a89b3a367c5a6fe7c03e39702f5148cb2 (patch) | |
tree | 1e2464cf144c16d77d45e51165800899e2f09911 /config/varnish64 | |
parent | b9a21e48a9852a767a0048af899335a840fee583 (diff) | |
parent | 5e885637287cd4b3f36e4f57a41e57075fabf3e2 (diff) | |
download | pfsense-packages-1af50c2a89b3a367c5a6fe7c03e39702f5148cb2.tar.gz pfsense-packages-1af50c2a89b3a367c5a6fe7c03e39702f5148cb2.tar.bz2 pfsense-packages-1af50c2a89b3a367c5a6fe7c03e39702f5148cb2.zip |
Merge branch 'master' of http://gitweb.pfsense.org/pfsense-packages/mainline
Diffstat (limited to 'config/varnish64')
-rw-r--r-- | config/varnish64/varnish_view_config.php | 46 |
1 files changed, 6 insertions, 40 deletions
diff --git a/config/varnish64/varnish_view_config.php b/config/varnish64/varnish_view_config.php index 5a5421a7..6c3bfcf0 100644 --- a/config/varnish64/varnish_view_config.php +++ b/config/varnish64/varnish_view_config.php @@ -31,17 +31,6 @@ require("guiconfig.inc"); -if($_REQUEST['getactivity']) { - $varnishlogs = `cat /var/etc/default.vcl`; - echo "Varnish Server configuration as of " . date("D M j G:i:s T Y") . "\n\n"; - echo $varnishlogs; - exit; -} - -/* Defaults to this page but if no settings are present, redirect to setup page */ -if(!$config['installedpackages']['varnish']['config'][0]) - Header("Location: /pkg_edit.php?xml=varnish.xml&id=0"); - $pfSversion = str_replace("\n", "", file_get_contents("/etc/version")); if(strstr($pfSversion, "1.2")) $one_two = true; @@ -51,25 +40,6 @@ include("head.inc"); ?> <body link="#0000CC" vlink="#0000CC" alink="#0000CC"> -<script src="/javascript/scriptaculous/prototype.js" type="text/javascript"></script> - <script type="text/javascript"> - function getlogactivity() { - var url = "/varnish_view_config.php"; - var pars = 'getactivity=yes'; - var myAjax = new Ajax.Request( - url, - { - method: 'post', - parameters: pars, - onComplete: activitycallback - }); - } - function activitycallback(transport) { - $('varnishlogs').innerHTML = '<font face="Courier"><pre>' + transport.responseText + '</pre></font>'; - setTimeout('getlogactivity()', 2500); - } - setTimeout('getlogactivity()', 10000); - </script> <?php include("fbegin.inc"); ?> <?php if($one_two): ?> @@ -95,19 +65,15 @@ include("head.inc"); <tr> <td class="tabcont" > <form action="varnish_view_config.php" method="post"> - <br> - <div id="varnishlogs"> - <pre>One moment please, loading Varnish logs...</pre> - </div> +<textarea id="varnishlogs" rows="50" cols="80"> +<?php + $config_file = file_get_contents("/var/etc/default.vcl"); + echo $config_file; +?> +</textarea> </td> </tr> </table> -<td align="left" valign="top"> - <form id="filterform" name="filterform" action="varnish_view_config.php" method="post" style="margin-top: 14px;"> - <p/> - <input id="submit" name="clear" type="submit" class="formbtn" value="<?=gettext("Clear log");?>" /> - </form> -</td> </div> <?php include("fend.inc"); ?> </body> |