From 4108321bf539768ce2175e92ac1e1687b667b109 Mon Sep 17 00:00:00 2001 From: Paul Sands Date: Sun, 12 Feb 2012 13:35:43 +0000 Subject: [PATCH] [contrib] Fix rom-o-matic Signed-off-by: Michael Brown --- contrib/rom-o-matic/bottom.php | 4 ++-- contrib/rom-o-matic/customize-flags.php | 18 +++++++++--------- contrib/rom-o-matic/directions.php | 10 +++++----- contrib/rom-o-matic/index.php | 6 +++--- contrib/rom-o-matic/top.php | 12 ++++++------ contrib/rom-o-matic/utils.php | 5 +++-- 6 files changed, 28 insertions(+), 27 deletions(-) diff --git a/contrib/rom-o-matic/bottom.php b/contrib/rom-o-matic/bottom.php index a6343d45..9ba8e319 100644 --- a/contrib/rom-o-matic/bottom.php +++ b/contrib/rom-o-matic/bottom.php @@ -1,4 +1,4 @@ -. @@ -53,7 +53,7 @@ Resources:

- Please email "> + Please email "> with questions or comments about this website.


diff --git a/contrib/rom-o-matic/customize-flags.php b/contrib/rom-o-matic/customize-flags.php index 23090439..e283921a 100644 --- a/contrib/rom-o-matic/customize-flags.php +++ b/contrib/rom-o-matic/customize-flags.php @@ -34,30 +34,30 @@ include_once $top_inc; ?>
- +

- Make changes below and press to create an image,
- Or press to return to the main page. + Make changes below and press to create an image,
+ Or press to return to the main page.


    - +

- +

Embedded Script:

- +


- - + +
- + . @@ -21,12 +21,12 @@ ?>
  • - Choose an output format:

  • - Choose a NIC type:

  • @@ -40,11 +40,11 @@ here.

    - PCI VENDOR CODE:    - PCI DEVICE CODE:

    Please note for ROM images:

    diff --git a/contrib/rom-o-matic/index.php b/contrib/rom-o-matic/index.php index 12b7e1a8..26585c97 100644 --- a/contrib/rom-o-matic/index.php +++ b/contrib/rom-o-matic/index.php @@ -27,10 +27,10 @@ include_once $top_inc; ?>
    - +

    To create an image:

      - +
    1. Generate and download an image: @@ -44,4 +44,4 @@ include_once $top_inc;
    - + diff --git a/contrib/rom-o-matic/top.php b/contrib/rom-o-matic/top.php index 25562086..42a8e2d2 100644 --- a/contrib/rom-o-matic/top.php +++ b/contrib/rom-o-matic/top.php @@ -1,6 +1,6 @@ -. @@ -25,17 +25,17 @@ - "> + "> - <? echo $header_title ?> - + <?php echo $header_title ?> +

    -  + 


    - +


    diff --git a/contrib/rom-o-matic/utils.php b/contrib/rom-o-matic/utils.php index dc5bd414..e0e62f44 100644 --- a/contrib/rom-o-matic/utils.php +++ b/contrib/rom-o-matic/utils.php @@ -1,4 +1,4 @@ -. @@ -131,7 +131,8 @@ function parse_nic_file () if ( strpos ( $first_eight_chars, "family" ) === 0 ) { // 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" ); // extract filename name of driver from pathname