diff options
author | Warren Baker <warren@decoy.co.za> | 2013-10-07 19:38:09 +0200 |
---|---|---|
committer | Warren Baker <warren@decoy.co.za> | 2013-10-07 19:38:09 +0200 |
commit | e390d6645c00d3e2480701fc4435ca897831b901 (patch) | |
tree | c382606fde596e0a43194ed4519076eba163cfa1 | |
parent | 7add9de03a68aa920a35672cdaa3d5e1691ffc98 (diff) | |
download | pfsense-e390d6645c00d3e2480701fc4435ca897831b901.zip pfsense-e390d6645c00d3e2480701fc4435ca897831b901.tar.gz |
Replace pfSense with the rebrand
-rwxr-xr-x | usr/local/www/diag_nanobsd.php | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/usr/local/www/diag_nanobsd.php b/usr/local/www/diag_nanobsd.php index 51348cf..dbabf0f 100755 --- a/usr/local/www/diag_nanobsd.php +++ b/usr/local/www/diag_nanobsd.php @@ -229,20 +229,20 @@ if ($savemsg) <td width="22%" valign="top" class="vncell"><?=gettext("View previous upgrade log");?></td> <td width="78%" class="vtable"> <?php - if($_POST['viewupgradelog']) { - echo "<textarea name='log' cols='80' rows='40'>"; - echo file_get_contents("/conf/upgrade_log.txt"); - echo "\nFile list:\n"; - echo file_get_contents("/conf/file_upgrade_log.txt"); - echo "\nMisc log:\n"; - echo file_get_contents("/conf/firmware_update_misc.log"); - echo "\nfdisk/bsdlabel log:\n"; - echo file_get_contents("/conf/fdisk_upgrade_log.txt"); - echo "</textarea>"; - } else { - echo "<form action='diag_nanobsd.php' method='post' name='iform'>"; - echo "<input type='submit' name='viewupgradelog' value='View upgrade log'>"; - } + if ($_POST['viewupgradelog']) { + echo "<textarea name='log' cols='80' rows='40'>"; + echo str_ireplace("pfsense", $g['product_name'], file_get_contents("/conf/upgrade_log.txt")); + echo "\nFile list:\n"; + echo str_ireplace("pfsense", $g['product_name'], file_get_contents("/conf/file_upgrade_log.txt")); + echo "\nMisc log:\n"; + echo str_ireplace("pfsense", $g['product_name'], file_get_contents("/conf/firmware_update_misc_log.txt")); + echo "\nfdisk/bsdlabel log:\n"; + echo str_ireplace("pfsense", $g['product_name'], file_get_contents("/conf/fdisk_upgrade_log.txt")); + echo "</textarea>"; + } else { + echo "<form action='diag_nanobsd.php' method='post' name='iform'>"; + echo "<input type='submit' name='viewupgradelog' value='View upgrade log'>"; + } ?> </td> </tr> |