aboutsummaryrefslogtreecommitdiffstats
path: root/config/unbound/unbound_status.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-11-21 18:17:58 -0500
committerScott Ullrich <sullrich@pfsense.org>2010-11-21 18:17:58 -0500
commitc35d33b5e818885eb65b8b18e1954986ae287791 (patch)
tree3454360d612b6f9d3f1b71926842a50531acdf7e /config/unbound/unbound_status.php
parent42188ddd47793b248f964f3d337de5199f5a74a9 (diff)
downloadpfsense-packages-c35d33b5e818885eb65b8b18e1954986ae287791.tar.gz
pfsense-packages-c35d33b5e818885eb65b8b18e1954986ae287791.tar.bz2
pfsense-packages-c35d33b5e818885eb65b8b18e1954986ae287791.zip
Resize rows on a few of the textareas
Diffstat (limited to 'config/unbound/unbound_status.php')
-rw-r--r--config/unbound/unbound_status.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/config/unbound/unbound_status.php b/config/unbound/unbound_status.php
index dccdf3b6..d325885f 100644
--- a/config/unbound/unbound_status.php
+++ b/config/unbound/unbound_status.php
@@ -43,12 +43,12 @@ $pfSversion = str_replace("\n", "", file_get_contents("/etc/version"));
if(strstr($pfSversion, "1.2"))
$one_two = true;
-function doCmdT($title, $command) {
+function doCmdT($title, $command, $rows) {
echo "<p>\n";
echo "<a name=\"" . $title . "\">\n";
echo "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n";
echo "<tr><td class=\"listtopic\">" . $title . "</td></tr>\n";
- echo "<tr><td class=\"listlr\"><textarea style=\"font-family:courier\"cols=\"101\" rows=\"20\">"; /* no newline after pre */
+ echo "<tr><td class=\"listlr\"><textarea style=\"font-family:courier\"cols=\"101\" rows=\"$rows\">"; /* no newline after pre */
if ($command == "dumpconfigxml") {
$fd = @fopen("/conf/config.xml", "r");
@@ -85,10 +85,10 @@ function doCmd($command) {
}
/* Define a command, with a title, to be executed later. */
-function defCmdT($title, $command) {
+function defCmdT($title, $command, $rows = "20") {
global $commands;
$title = htmlspecialchars($title,ENT_NOQUOTES);
- $commands[] = array($title, $command);
+ $commands[] = array($title, $command, $rows);
}
/* Define a command, with a title which is the same as the command,
@@ -113,7 +113,7 @@ function listCmds() {
function execCmds() {
global $commands;
for ($i = 0; isset($commands[$i]); $i++ ) {
- doCmdT($commands[$i][0], $commands[$i][1]);
+ doCmdT($commands[$i][0], $commands[$i][1], $commands[$i][2]);
}
}
@@ -140,13 +140,13 @@ function execCmds() {
<tr>
<td class="tabcont" width="100%">
<?php
- defCmdT("Unbound status", "unbound-control status");
+ defCmdT("Unbound status", "unbound-control status", "8");
defCmdT("Unbound stats_noreset", "unbound-control stats_noreset");
- defCmdT("Unbound list_stubs", "unbound-control list_stubs");
+ defCmdT("Unbound list_stubs", "unbound-control list_stubs", "8");
defCmdT("Unbound list_forwards", "unbound-control list_forwards");
defCmdT("Unbound list_local_zones", "unbound-control list_local_zones");
defCmdT("Unbound list_local_data", "unbound-control list_local_data");
- defCmdT("Unbound configuration", "/bin/cat /usr/local/etc/unbound/unbound.conf");
+ defCmdT("Unbound configuration", "/bin/cat /usr/local/etc/unbound/unbound.conf", "40");
listCmds();
execCmds();
?>