Revision 374379c6
Added by Scott Ullrich almost 15 years ago
usr/local/www/installer.php | ||
---|---|---|
605 | 605 |
ob_flush(); |
606 | 606 |
$disks = installer_find_all_disks(); |
607 | 607 |
if(!$disks) { |
608 |
$custom_txt = gettext("WARNING: Could not find any suitable disks for installation.");
|
|
608 |
$custom_txt = gettext("ERROR: Could not find any suitable disks for installation.");
|
|
609 | 609 |
} else { |
610 | 610 |
// Prepare disk selection dropdown |
611 | 611 |
$custom_txt = <<<EOF |
... | ... | |
676 | 676 |
if(file_exists("/boot/gptzfsboot")) |
677 | 677 |
$zfs_enabled = "<tr bgcolor=\"#9A9A9A\"><td align=\"center\"><a href=\"installer.php?state=verify_before_install&fstype=ZFS\">Easy installation of {$g['product_name']} using the ZFS filesystem on disk {$disk}</a></td></tr>"; |
678 | 678 |
$disk = installer_find_first_disk(); |
679 |
if(!$disk) |
|
680 |
echo gettext("WARNING: Could not find any suitable disks for installation."); |
|
681 | 679 |
page_table_start(); |
682 | 680 |
echo <<<EOF |
683 | 681 |
<form action="installer.php" method="post" state="step1_post"> |
... | ... | |
699 | 697 |
<td> |
700 | 698 |
<div id="pfsenseinstaller"> |
701 | 699 |
<center> |
700 |
EOF; |
|
701 |
if(!$disk) { |
|
702 |
echo gettext("ERROR: Could not find any suitable disks for installation."); |
|
703 |
echo "</div></td></tr></table></div></table></div>"; |
|
704 |
end_html(); |
|
705 |
exit; |
|
706 |
} |
|
707 |
echo <<<EOF |
|
708 |
|
|
702 | 709 |
<table cellspacing="5" cellpadding="5" style="border: 1px dashed;"> |
703 | 710 |
<tr bgcolor="#CECECE"><td align="center"> |
704 | 711 |
<a href="installer.php?state=verify_before_install&disk={$disk}&fstype=UFS">Easy installation of {$g['product_name']} using the UFS filesystem on disk {$disk}</a> |
Also available in: Unified diff
Move ERROR down into main screen area