diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-07-05 21:43:03 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-07-05 21:43:03 -0400 |
commit | be6e1e8ad55b633770d229c1fec2b4716cfbaba2 (patch) | |
tree | 9300deece637465c262539021015fd418f77a1f8 | |
parent | af214f1da06fa10b23128f406a03d5e5522d0596 (diff) | |
download | pfsense-be6e1e8ad55b633770d229c1fec2b4716cfbaba2.zip pfsense-be6e1e8ad55b633770d229c1fec2b4716cfbaba2.tar.gz |
Cleanup text
-rwxr-xr-x | usr/local/www/diag_nanobsd.php | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/usr/local/www/diag_nanobsd.php b/usr/local/www/diag_nanobsd.php index 8dcf999..95f4d96 100755 --- a/usr/local/www/diag_nanobsd.php +++ b/usr/local/www/diag_nanobsd.php @@ -46,6 +46,7 @@ $BOOT_DEVICE=trim(`/sbin/mount | /usr/bin/grep pfsense | /usr/bin/cut -d'/' -f4 $REAL_BOOT_DEVICE=trim(`/sbin/glabel list | /usr/bin/grep -B2 ufs/{$BOOT_DEVICE} | /usr/bin/head -n 1 | /usr/bin/cut -f3 -d' '`); $BOOT_DRIVE=trim(`/sbin/glabel list | /usr/bin/grep -B2 ufs/pfsense | /usr/bin/head -n 1 | /usr/bin/cut -f3 -d' ' | /usr/bin/cut -d's' -f1`); +// Detect which slice is active and set information. if(strstr($REAL_BOOT_DEVICE, "s1")) { $SLICE="2"; $OLDSLICE="1"; @@ -69,14 +70,16 @@ if(strstr($REAL_BOOT_DEVICE, "s1")) { ?> <body link="#0000CC" vlink="#0000CC" alink="#0000CC" onload="<?=$jsevents["body"]["onload"];?>"> -<script src="/javascript/sorttable.js" type="text/javascript"></script> + <?php include("fbegin.inc"); ?> + <?php if($_POST['bootslice']) { echo <<<EOF <div id="loading"> - <img src="/themes/metallic/images/misc/loader.gif"> Setting slice, please wait... + <img src="/themes/metallic/images/misc/loader.gif"> + Setting slice information, please wait... <p/> </div> EOF; @@ -100,7 +103,8 @@ if($_POST['destslice']) { echo <<<EOF <div id="loading"> - <img src="/themes/metallic/images/misc/loader.gif"> Duplicaating slice, please wait... + <img src="/themes/metallic/images/misc/loader.gif"> + Duplicaating slice. Please wait, this will take a moment... <p/> </div> EOF; @@ -227,6 +231,7 @@ if ($savemsg) <?php +// Clear the loading indicator echo "<script type=\"text/javascript\">"; echo "$('loading').innerHTML = '';"; echo "</script>"; |