summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2015-07-21 08:43:17 -0400
committerjim-p <jimp@pfsense.org>2015-07-21 08:43:17 -0400
commit58fb43263a20cf5d3f46f7ccc5cbaaa654786287 (patch)
tree675446e91851e50de770a06e4185e5f7bcd5e170
parentf5b375886048bee70a456ce3e059b27756a5eb9d (diff)
downloadpfsense-58fb43263a20cf5d3f46f7ccc5cbaaa654786287.zip
pfsense-58fb43263a20cf5d3f46f7ccc5cbaaa654786287.tar.gz
Allow pre-filling (but no automatic action) of the download filename on exec.php. Setup a link to download the status output.tgz in status.php
-rw-r--r--usr/local/www/exec.php2
-rwxr-xr-xusr/local/www/status.php3
2 files changed, 3 insertions, 2 deletions
diff --git a/usr/local/www/exec.php b/usr/local/www/exec.php
index 61fbcc5..48c192b 100644
--- a/usr/local/www/exec.php
+++ b/usr/local/www/exec.php
@@ -281,7 +281,7 @@ if (!isBlank($_POST['txtPHPCommand'])) {
<tr>
<td align="right"><?=gettext("File to download"); ?>:</td>
<td>
- <input name="dlPath" type="text" class="formfld file" id="dlPath" size="50" />
+ <input name="dlPath" type="text" class="formfld file" id="dlPath" size="50" value="<?php echo htmlspecialchars($_GET['dlPath']) ?>" />
</td></tr>
<tr>
<td valign="top">&nbsp;&nbsp;&nbsp;</td>
diff --git a/usr/local/www/status.php b/usr/local/www/status.php
index 5bbcf14..68954a1 100755
--- a/usr/local/www/status.php
+++ b/usr/local/www/status.php
@@ -255,7 +255,8 @@ pre {
"(passwords, maybe also IP addresses) before posting " .
"information from this page in public places (like mailing lists)"); ?>!</strong></span><br />
<?=gettext("Passwords in config.xml have been automatically removed"); ?>.<br /><br />
-<?=gettext("When the page has finished loading, the output will be stored in {$output_file}. It may be downloaded via Diagnostics > Command Prompt or scp."); ?>
+<?=gettext("When the page has finished loading, the output will be stored in {$output_file}. It may be downloaded via scp or "); ?>
+<a href="/exec.php?dlPath=<?= $output_file ?>"><?=gettext("Diagnostics > Command Prompt")?></a>
<div id="cmdspace" style="width:700px">
<?php listCmds(); ?>
OpenPOWER on IntegriCloud