Ejemplo n.º 1
0
				</table>
				<div id="submit">
					<input name="Submit" type="submit" class="formbtn" value="<?php 
echo gettext("Format disk");
?>
" onclick="return confirm('<?php 
echo gettext("Do you really want to format this disk? All data will be lost!");
?>
')" />
				</div>
				<?php 
if ($do_format) {
    echo sprintf("<div id='cmdoutput'>%s</div>", gettext("Command output:"));
    echo '<pre class="cmdoutput">';
    //ob_end_flush();
    disks_format($disk, $type, $notinitmbr, $minspace, $volumelabel, $aft4k, $zfsgpt);
    echo '</pre>';
}
?>
				<div id="remarks">
					<?php 
html_remark("Warning", gettext("Warning"), sprintf(gettext("UFS and ZFS are the NATIVE filesystems of FreeBSD (the underlying OS of %s). Attempting to use other filesystems such as FAT, FAT32, EXT2, EXT3, EXT4 or NTFS can result in unpredictable results, file corruption, and loss of data!"), get_product_name()));
?>
				</div>
			</td>
		</tr>
	</table>
	<?php 
include "formend.inc";
?>
</form>
Ejemplo n.º 2
0
				<div id="submit">
					<input name="Submit" type="submit" class="formbtn" value="<?php 
echo gettext("Format disk");
?>
" onclick="return confirm('<?php 
echo gettext("Do you really want to format this disk? All data will be lost!");
?>
')" />
				</div>
				<?php 
if (count($disks) > 0) {
    foreach ($disks as $key => $disk) {
        if ($do_format[$key]) {
            echo sprintf("<div id='cmdoutput'>%s</div>", sprintf(gettext("Command output") . " for disk %s :", $disk));
            echo '<pre class="cmdoutput">';
            disks_format($disk, $type, $notinitmbr, $minspace, $_volumelabels[$key], $aft4k);
            echo '</pre><br/>';
        }
    }
}
?>
				<div id="remarks">
					<?php 
html_remark("Warning", gettext("Warning"), sprintf(gettext("UFS and ZFS are the NATIVE filesystems of FreeBSD (the underlying OS of %s). Attempting to use other filesystems such as FAT, FAT32, EXT2, EXT3, EXT4 or NTFS can result in unpredictable results, file corruption, and loss of data!"), get_product_name()));
?>
				</div>
			</td>
		</tr>
	</table>
	<?php 
include "formend.inc";
Ejemplo n.º 3
0
				</table>
				<div id="submit">
					<input name="Submit" type="submit" class="formbtn" value="<?php 
echo gettext("Format disk");
?>
" onclick="return confirm('<?php 
echo gettext("Do you really want to format this disk? All data will be lost!");
?>
')" />
				</div>
				<?php 
if ($do_format) {
    echo sprintf("<div id='cmdoutput'>%s</div>", gettext("Command output:"));
    echo '<pre class="cmdoutput">';
    ob_end_flush();
    disks_format($disk, $type, $notinitmbr, $minspace, $volumelabel);
    echo '</pre>';
}
?>
				<div id="remarks">
					<?php 
html_remark("Warning", gettext("Warning"), sprintf(gettext("UFS is the NATIVE file format for FreeBSD (the underlying OS of %s). Attempting to use other file formats such as FAT, FAT32, EXT2, EXT3, or NTFS can result in unpredictable results, file corruption, and loss of data!"), get_product_name()));
?>
				</div>
			</td>
		</tr>
	</table>
	<?php 
include "formend.inc";
?>
</form>