Revision e390d664
Added by Warren Baker almost 12 years ago
usr/local/www/diag_nanobsd.php | ||
---|---|---|
229 | 229 |
<td width="22%" valign="top" class="vncell"><?=gettext("View previous upgrade log");?></td> |
230 | 230 |
<td width="78%" class="vtable"> |
231 | 231 |
<?php |
232 |
if($_POST['viewupgradelog']) {
|
|
233 |
echo "<textarea name='log' cols='80' rows='40'>";
|
|
234 |
echo file_get_contents("/conf/upgrade_log.txt");
|
|
235 |
echo "\nFile list:\n";
|
|
236 |
echo file_get_contents("/conf/file_upgrade_log.txt");
|
|
237 |
echo "\nMisc log:\n";
|
|
238 |
echo file_get_contents("/conf/firmware_update_misc.log");
|
|
239 |
echo "\nfdisk/bsdlabel log:\n";
|
|
240 |
echo file_get_contents("/conf/fdisk_upgrade_log.txt");
|
|
241 |
echo "</textarea>";
|
|
242 |
} else {
|
|
243 |
echo "<form action='diag_nanobsd.php' method='post' name='iform'>";
|
|
244 |
echo "<input type='submit' name='viewupgradelog' value='View upgrade log'>";
|
|
245 |
}
|
|
232 |
if ($_POST['viewupgradelog']) {
|
|
233 |
echo "<textarea name='log' cols='80' rows='40'>"; |
|
234 |
echo str_ireplace("pfsense", $g['product_name'], file_get_contents("/conf/upgrade_log.txt"));
|
|
235 |
echo "\nFile list:\n"; |
|
236 |
echo str_ireplace("pfsense", $g['product_name'], file_get_contents("/conf/file_upgrade_log.txt"));
|
|
237 |
echo "\nMisc log:\n"; |
|
238 |
echo str_ireplace("pfsense", $g['product_name'], file_get_contents("/conf/firmware_update_misc_log.txt"));
|
|
239 |
echo "\nfdisk/bsdlabel log:\n"; |
|
240 |
echo str_ireplace("pfsense", $g['product_name'], file_get_contents("/conf/fdisk_upgrade_log.txt"));
|
|
241 |
echo "</textarea>"; |
|
242 |
} else { |
|
243 |
echo "<form action='diag_nanobsd.php' method='post' name='iform'>"; |
|
244 |
echo "<input type='submit' name='viewupgradelog' value='View upgrade log'>"; |
|
245 |
} |
|
246 | 246 |
?> |
247 | 247 |
</td> |
248 | 248 |
</tr> |
Also available in: Unified diff
Replace pfSense with the rebrand