summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_firmware.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@gmail.com>2011-09-25 20:09:41 -0400
committerScott Ullrich <sullrich@gmail.com>2011-09-25 20:09:41 -0400
commite40d415ab308d7b718c874c130bc7392122e1d56 (patch)
tree649fcf986ee3f7537cc23375275acd6e0b73d809 /usr/local/www/system_firmware.php
parent9928303bebf9e36530f0e3155796bbfe6968f000 (diff)
downloadpfsense-e40d415ab308d7b718c874c130bc7392122e1d56.zip
pfsense-e40d415ab308d7b718c874c130bc7392122e1d56.tar.gz
Make the manual firmware upgrade screen look a little less busy.
Diffstat (limited to 'usr/local/www/system_firmware.php')
-rwxr-xr-xusr/local/www/system_firmware.php57
1 files changed, 34 insertions, 23 deletions
diff --git a/usr/local/www/system_firmware.php b/usr/local/www/system_firmware.php
index 9949bfd..6ad9d2c 100755
--- a/usr/local/www/system_firmware.php
+++ b/usr/local/www/system_firmware.php
@@ -253,28 +253,30 @@ if(stristr($_FILES['ulfile']['name'],"nanobsd"))
<tr>
<td width="22%" valign="baseline" class="vncell">&nbsp;</td>
<td width="78%" class="vtable">
- <p>
- <?php printf(gettext('Click "Enable firmware '.
- 'upload" below, then choose the image file (%s) '.
- 'to be uploaded.'),$g['firmware_update_text']);?>
- <br>
- <?=gettext('Click "Upgrade firmware" to start the upgrade process.');?>
- </p>
<?php if (!is_subsystem_dirty('rebootreq')): ?>
<?php if (!is_subsystem_dirty('firmware')): ?>
- <input name="Submit" type="submit" class="formbtn" value="<?=gettext("Enable firmware upload");?>">
+ <input name="Submit" type="submit" class="formbtn" value="<?=gettext("Enable firmware upload");?>">
+ <br/>
+ <?php printf(gettext('Click "Enable firmware '.
+ 'upload", then choose the image file (%s) '.
+ 'to be uploaded.'),$g['firmware_update_text']);?>
+ <br/>
<?php else: ?>
<input name="Submit" type="submit" class="formbtn" value="<?=gettext("Disable firmware upload");?>">
- <br><br>
- <strong><?=gettext("Firmware image file:");?> </strong>&nbsp;
+ </td>
+ </tr>
+ <tr>
+ <td width="22%" valign="baseline" class="vncell">&nbsp;</td>
+ <td width="78%" class="vtable">
+ <?php
+ if ($g['platform'] == "nanobsd")
+ $type = "*.img.gz";
+ else
+ $type = "*.tgz";
+ ?>
+ <strong><?=gettext("Firmware image file ($type):");?> </strong>
<input name="ulfile" type="file" class="formfld">
- <br><br>
- <?php if ($g['platform'] == "nanobsd"): ?>
- <b><?=gettext("NOTE: You must upload a .img.gz image, not an uncompressed image!");?></b>
- <?php else: ?>
- <b><?=gettext("NOTE: You must upload a .tgz image, not an uncompressed image!");?></b>
- <?php endif; ?>
- <br><br>
+ <br>
<?php
if(!file_exists("/boot/kernel/pfsense_kernel.txt")) {
if($g['platform'] == "pfSense") {
@@ -285,7 +287,7 @@ if(stristr($_FILES['ulfile']['name'],"nanobsd"))
echo "<option value='wrap'>" . gettext("Embedded kernel") . "</option>";
echo "<option value='Developers'>" . gettext("Developers kernel") . "</option>";
echo "</select>";
- echo "<br><br>";
+ echo "<br>";
}
}
?>
@@ -295,8 +297,9 @@ if(stristr($_FILES['ulfile']['name'],"nanobsd"))
*/
?>
<input type="checkbox" name='backupbeforeupgrade' id='backupbeforeupgrade'> <?=gettext("Perform full backup prior to upgrade");?>
- <br><br>
+ <br>
<input name="Submit" type="submit" class="formbtn" value="<?=gettext("Upgrade firmware");?>">
+ <?=gettext('Click "Upgrade firmware" to start the upgrade process.');?>
<?php endif; else: ?>
<strong><?=gettext("You must reboot the system before you can upgrade the firmware.");?></strong>
<?php endif; ?>
@@ -305,10 +308,18 @@ if(stristr($_FILES['ulfile']['name'],"nanobsd"))
</tr>
<tr>
<td width="22%" valign="top">&nbsp;</td>
- <td width="78%"><span class="vexpl"><span class="red"><strong><?=gettext("Warning:");?><br>
- </strong></span><?=gettext("DO NOT abort the firmware upgrade once it " .
- "has started. The firewall will reboot automatically after " .
- "storing the new firmware. The configuration will be maintained.");?></span></td>
+ <td width="78%">
+ <span class="vexpl">
+ <span class="red">
+ <strong>
+ <?=gettext("Warning:");?><br>
+ </strong>
+ </span>
+ <?=gettext("DO NOT abort the firmware upgrade once it " .
+ "has started. The firewall will reboot automatically after " .
+ "storing the new firmware. The configuration will be maintained.");?>
+ </span>
+ </td>
</table>
</div>
</tr>
OpenPOWER on IntegriCloud