diff options
author | jim-p <jimp@pfsense.org> | 2015-07-21 08:43:17 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2015-07-21 08:43:17 -0400 |
commit | 58fb43263a20cf5d3f46f7ccc5cbaaa654786287 (patch) | |
tree | 675446e91851e50de770a06e4185e5f7bcd5e170 | |
parent | f5b375886048bee70a456ce3e059b27756a5eb9d (diff) | |
download | pfsense-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.php | 2 | ||||
-rwxr-xr-x | usr/local/www/status.php | 3 |
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"> </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(); ?> |