Skip to content

Commit 4108321

Browse files
Paul Sandsmcb30
authored andcommittedFeb 12, 2012
[contrib] Fix rom-o-matic
Signed-off-by: Michael Brown <mcb30@ipxe.org>
1 parent d3630b6 commit 4108321

File tree

6 files changed

+28
-27
lines changed

6 files changed

+28
-27
lines changed
 

‎contrib/rom-o-matic/bottom.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?
1+
<?php
22

33
/**
44
* Copyright (C) 2009 Marty Connor <mdc@etherboot.org>.
@@ -53,7 +53,7 @@
5353
<hr>
5454
<font size="-1">
5555
<br>
56-
Please email <a href="mailto:<? echo "${webmaster_email}" ?>"><? echo "${webmaster_email}"?></a>
56+
Please email <a href="mailto:<?php echo "${webmaster_email}" ?>"><?php echo "${webmaster_email}"?></a>
5757
with questions or comments about this website.
5858
</font>
5959
<br><br>

‎contrib/rom-o-matic/customize-flags.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,30 +34,30 @@
3434
?>
3535

3636
<form action="build.php" method=POST>
37-
<input type="hidden" name="version" value = "<? echo $version ?>">
37+
<input type="hidden" name="version" value = "<?php echo $version ?>">
3838
<input type="hidden" name="use_flags" value="1">
3939
<h3>
40-
Make changes below and press <? echo $build ?> to create an image, <br>
41-
Or press <? echo $restart ?> to return to the main page.
40+
Make changes below and press <?php echo $build ?> to create an image, <br>
41+
Or press <?php echo $restart ?> to return to the main page.
4242
</h3>
4343
<hr>
4444
<ul>
45-
<? require ( "directions.php" ); ?>
45+
<?php require ( "directions.php" ); ?>
4646
</ul>
4747
<hr>
48-
<? echo_flags( $flags ); ?>
48+
<?php echo_flags( $flags ); ?>
4949
<hr>
5050
<h3>Embedded Script:</h3>
51-
<? echo textarea ( "embedded_script", "", "10", "50" ); ?>
51+
<?php echo textarea ( "embedded_script", "", "10", "50" ); ?>
5252
<br><br>
5353
<hr>
5454
<center><table width="35%"><tr>
55-
<td align="left"> <? echo $build; ?> </td>
56-
<td align="right"> <? echo $restart ?></td>
55+
<td align="left"> <?php echo $build; ?> </td>
56+
<td align="right"> <?php echo $restart ?></td>
5757
</tr></table></center>
5858
</form>
5959

60-
<? include_once $bottom_inc; ?>
60+
<?php include_once $bottom_inc; ?>
6161
<?
6262
// For emacs:
6363
//

‎contrib/rom-o-matic/directions.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?
1+
<?php
22

33
/**
44
* Copyright (C) 2009 Marty Connor <mdc@etherboot.org>.
@@ -21,12 +21,12 @@
2121

2222
?>
2323
<li>
24-
Choose an output format: <? echo keys_menubox ( "ofmt", $ofmts,
24+
Choose an output format: <?php echo keys_menubox ( "ofmt", $ofmts,
2525
isset ( $_POST['ofmt'] ) ? $_POST['ofmt'] : "") ?>
2626
<br><br>
2727
</li>
2828
<li>
29-
Choose a NIC type: <? echo keys_menubox ( "nic", $nics,
29+
Choose a NIC type: <?php echo keys_menubox ( "nic", $nics,
3030
isset ( $_POST['nic'] ) ? $_POST['nic'] : "" ) ?>
3131
<br><br>
3232
</li>
@@ -40,11 +40,11 @@
4040
<a href="http://www.ipxe.org/howto/romburning"
4141
target="_blank">here</a>.
4242
<br><br>
43-
PCI VENDOR CODE: <? echo textbox ( "pci_vendor_code",
43+
PCI VENDOR CODE: <?php echo textbox ( "pci_vendor_code",
4444
isset ( $_POST['pci_vendor_code'] ) ? $_POST['pci_vendor_code']
4545
: "", 6 ); ?>
4646
&nbsp;&nbsp;
47-
PCI DEVICE CODE: <? echo textbox ( "pci_device_code",
47+
PCI DEVICE CODE: <?php echo textbox ( "pci_device_code",
4848
isset ( $_POST['pci_device_code'] ) ? $_POST['pci_device_code']
4949
: "", 6 ); ?>
5050
<h4>Please note for ROM images:</h4>

‎contrib/rom-o-matic/index.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727

2828
?>
2929
<form action="build.php" method=POST>
30-
<input type="hidden" name="version" value = "<? echo $version ?>">
30+
<input type="hidden" name="version" value = "<?php echo $version ?>">
3131
<h3>To create an image:</h3>
3232
<ol>
33-
<? require ( "directions.php" ); ?>
33+
<?php require ( "directions.php" ); ?>
3434
<li>
3535
Generate and download an image:
3636
<input type="submit" name="A" value="Get Image">
@@ -44,4 +44,4 @@
4444
</ol>
4545
</form>
4646

47-
<? include_once $bottom_inc ?>
47+
<?php include_once $bottom_inc ?>

‎contrib/rom-o-matic/top.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
22

3-
<?
3+
<?php
44

55
/**
66
* Copyright (C) 2009 Marty Connor <mdc@etherboot.org>.
@@ -25,17 +25,17 @@
2525

2626
<html>
2727
<head>
28-
<link rev="made" href="mailto:<? echo "${webmaster_email}" ?>">
28+
<link rev="made" href="mailto:<?php echo "${webmaster_email}" ?>">
2929
<meta name="keywords" content="rom, etherboot, ipxe, open source, rom-o-matic.net">
30-
<title><? echo $header_title ?></title>
31-
<meta name="description" content="<? echo $description ?>">
30+
<title><?php echo $header_title ?></title>
31+
<meta name="description" content="<?php echo $description ?>">
3232
</head>
3333
<h1>
34-
<? echo "$html_title" ?>&nbsp;
34+
<?php echo "$html_title" ?>&nbsp;
3535
</h1>
3636
<hr>
3737
<h2>
38-
<? echo "$html_tagline" ?>
38+
<?php echo "$html_tagline" ?>
3939
</h2>
4040
</form>
4141
<hr>

‎contrib/rom-o-matic/utils.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<? // -*- Mode: PHP; -*-
1+
<?php // -*- Mode: PHP; -*-
22

33
/**
44
* Copyright (C) 2009 Marty Connor <mdc@etherboot.org>.
@@ -131,7 +131,8 @@ function parse_nic_file ()
131131
if ( strpos ( $first_eight_chars, "family" ) === 0 ) {
132132

133133
// get pathname of NIC driver
134-
list ( $dummy, $nic ) = split( "[ \t]+", $line );
134+
#list ( $dummy, $nic ) = split( "[ \t]+", $line );
135+
list ( $dummy, $nic ) = explode("\t", $line);
135136
settype ( $nic, "string" );
136137

137138
// extract filename name of driver from pathname

0 commit comments

Comments
 (0)
Please sign in to comment.