mirror of
https://github.com/ipxe/ipxe
synced 2026-01-21 09:57:23 +03:00
[contrib] Fix rom-o-matic
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
committed by
Michael Brown
parent
d3630b6a64
commit
4108321bf5
@@ -1,4 +1,4 @@
|
|||||||
<?
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Copyright (C) 2009 Marty Connor <mdc@etherboot.org>.
|
* Copyright (C) 2009 Marty Connor <mdc@etherboot.org>.
|
||||||
@@ -53,7 +53,7 @@ Resources:
|
|||||||
<hr>
|
<hr>
|
||||||
<font size="-1">
|
<font size="-1">
|
||||||
<br>
|
<br>
|
||||||
Please email <a href="mailto:<? echo "${webmaster_email}" ?>"><? echo "${webmaster_email}"?></a>
|
Please email <a href="mailto:<?php echo "${webmaster_email}" ?>"><?php echo "${webmaster_email}"?></a>
|
||||||
with questions or comments about this website.
|
with questions or comments about this website.
|
||||||
</font>
|
</font>
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|||||||
@@ -34,30 +34,30 @@ include_once $top_inc;
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<form action="build.php" method=POST>
|
<form action="build.php" method=POST>
|
||||||
<input type="hidden" name="version" value = "<? echo $version ?>">
|
<input type="hidden" name="version" value = "<?php echo $version ?>">
|
||||||
<input type="hidden" name="use_flags" value="1">
|
<input type="hidden" name="use_flags" value="1">
|
||||||
<h3>
|
<h3>
|
||||||
Make changes below and press <? echo $build ?> to create an image, <br>
|
Make changes below and press <?php echo $build ?> to create an image, <br>
|
||||||
Or press <? echo $restart ?> to return to the main page.
|
Or press <?php echo $restart ?> to return to the main page.
|
||||||
</h3>
|
</h3>
|
||||||
<hr>
|
<hr>
|
||||||
<ul>
|
<ul>
|
||||||
<? require ( "directions.php" ); ?>
|
<?php require ( "directions.php" ); ?>
|
||||||
</ul>
|
</ul>
|
||||||
<hr>
|
<hr>
|
||||||
<? echo_flags( $flags ); ?>
|
<?php echo_flags( $flags ); ?>
|
||||||
<hr>
|
<hr>
|
||||||
<h3>Embedded Script:</h3>
|
<h3>Embedded Script:</h3>
|
||||||
<? echo textarea ( "embedded_script", "", "10", "50" ); ?>
|
<?php echo textarea ( "embedded_script", "", "10", "50" ); ?>
|
||||||
<br><br>
|
<br><br>
|
||||||
<hr>
|
<hr>
|
||||||
<center><table width="35%"><tr>
|
<center><table width="35%"><tr>
|
||||||
<td align="left"> <? echo $build; ?> </td>
|
<td align="left"> <?php echo $build; ?> </td>
|
||||||
<td align="right"> <? echo $restart ?></td>
|
<td align="right"> <?php echo $restart ?></td>
|
||||||
</tr></table></center>
|
</tr></table></center>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<? include_once $bottom_inc; ?>
|
<?php include_once $bottom_inc; ?>
|
||||||
<?
|
<?
|
||||||
// For emacs:
|
// For emacs:
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<?
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Copyright (C) 2009 Marty Connor <mdc@etherboot.org>.
|
* Copyright (C) 2009 Marty Connor <mdc@etherboot.org>.
|
||||||
@@ -21,12 +21,12 @@
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
<li>
|
<li>
|
||||||
Choose an output format: <? echo keys_menubox ( "ofmt", $ofmts,
|
Choose an output format: <?php echo keys_menubox ( "ofmt", $ofmts,
|
||||||
isset ( $_POST['ofmt'] ) ? $_POST['ofmt'] : "") ?>
|
isset ( $_POST['ofmt'] ) ? $_POST['ofmt'] : "") ?>
|
||||||
<br><br>
|
<br><br>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
Choose a NIC type: <? echo keys_menubox ( "nic", $nics,
|
Choose a NIC type: <?php echo keys_menubox ( "nic", $nics,
|
||||||
isset ( $_POST['nic'] ) ? $_POST['nic'] : "" ) ?>
|
isset ( $_POST['nic'] ) ? $_POST['nic'] : "" ) ?>
|
||||||
<br><br>
|
<br><br>
|
||||||
</li>
|
</li>
|
||||||
@@ -40,11 +40,11 @@
|
|||||||
<a href="http://www.ipxe.org/howto/romburning"
|
<a href="http://www.ipxe.org/howto/romburning"
|
||||||
target="_blank">here</a>.
|
target="_blank">here</a>.
|
||||||
<br><br>
|
<br><br>
|
||||||
PCI VENDOR CODE: <? echo textbox ( "pci_vendor_code",
|
PCI VENDOR CODE: <?php echo textbox ( "pci_vendor_code",
|
||||||
isset ( $_POST['pci_vendor_code'] ) ? $_POST['pci_vendor_code']
|
isset ( $_POST['pci_vendor_code'] ) ? $_POST['pci_vendor_code']
|
||||||
: "", 6 ); ?>
|
: "", 6 ); ?>
|
||||||
|
|
||||||
PCI DEVICE CODE: <? echo textbox ( "pci_device_code",
|
PCI DEVICE CODE: <?php echo textbox ( "pci_device_code",
|
||||||
isset ( $_POST['pci_device_code'] ) ? $_POST['pci_device_code']
|
isset ( $_POST['pci_device_code'] ) ? $_POST['pci_device_code']
|
||||||
: "", 6 ); ?>
|
: "", 6 ); ?>
|
||||||
<h4>Please note for ROM images:</h4>
|
<h4>Please note for ROM images:</h4>
|
||||||
|
|||||||
@@ -27,10 +27,10 @@ include_once $top_inc;
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
<form action="build.php" method=POST>
|
<form action="build.php" method=POST>
|
||||||
<input type="hidden" name="version" value = "<? echo $version ?>">
|
<input type="hidden" name="version" value = "<?php echo $version ?>">
|
||||||
<h3>To create an image:</h3>
|
<h3>To create an image:</h3>
|
||||||
<ol>
|
<ol>
|
||||||
<? require ( "directions.php" ); ?>
|
<?php require ( "directions.php" ); ?>
|
||||||
<li>
|
<li>
|
||||||
Generate and download an image:
|
Generate and download an image:
|
||||||
<input type="submit" name="A" value="Get Image">
|
<input type="submit" name="A" value="Get Image">
|
||||||
@@ -44,4 +44,4 @@ include_once $top_inc;
|
|||||||
</ol>
|
</ol>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<? include_once $bottom_inc ?>
|
<?php include_once $bottom_inc ?>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
|
|
||||||
<?
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Copyright (C) 2009 Marty Connor <mdc@etherboot.org>.
|
* Copyright (C) 2009 Marty Connor <mdc@etherboot.org>.
|
||||||
@@ -25,17 +25,17 @@
|
|||||||
|
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<link rev="made" href="mailto:<? echo "${webmaster_email}" ?>">
|
<link rev="made" href="mailto:<?php echo "${webmaster_email}" ?>">
|
||||||
<meta name="keywords" content="rom, etherboot, ipxe, open source, rom-o-matic.net">
|
<meta name="keywords" content="rom, etherboot, ipxe, open source, rom-o-matic.net">
|
||||||
<title><? echo $header_title ?></title>
|
<title><?php echo $header_title ?></title>
|
||||||
<meta name="description" content="<? echo $description ?>">
|
<meta name="description" content="<?php echo $description ?>">
|
||||||
</head>
|
</head>
|
||||||
<h1>
|
<h1>
|
||||||
<? echo "$html_title" ?>
|
<?php echo "$html_title" ?>
|
||||||
</h1>
|
</h1>
|
||||||
<hr>
|
<hr>
|
||||||
<h2>
|
<h2>
|
||||||
<? echo "$html_tagline" ?>
|
<?php echo "$html_tagline" ?>
|
||||||
</h2>
|
</h2>
|
||||||
</form>
|
</form>
|
||||||
<hr>
|
<hr>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<? // -*- Mode: PHP; -*-
|
<?php // -*- Mode: PHP; -*-
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Copyright (C) 2009 Marty Connor <mdc@etherboot.org>.
|
* Copyright (C) 2009 Marty Connor <mdc@etherboot.org>.
|
||||||
@@ -131,7 +131,8 @@ function parse_nic_file ()
|
|||||||
if ( strpos ( $first_eight_chars, "family" ) === 0 ) {
|
if ( strpos ( $first_eight_chars, "family" ) === 0 ) {
|
||||||
|
|
||||||
// get pathname of NIC driver
|
// get pathname of NIC driver
|
||||||
list ( $dummy, $nic ) = split( "[ \t]+", $line );
|
#list ( $dummy, $nic ) = split( "[ \t]+", $line );
|
||||||
|
list ( $dummy, $nic ) = explode("\t", $line);
|
||||||
settype ( $nic, "string" );
|
settype ( $nic, "string" );
|
||||||
|
|
||||||
// extract filename name of driver from pathname
|
// extract filename name of driver from pathname
|
||||||
|
|||||||
Reference in New Issue
Block a user