Browse Source

[contrib] Fix rom-o-matic

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Paul Sands 12 years ago
parent
commit
4108321bf5

+ 2
- 2
contrib/rom-o-matic/bottom.php View File

1
-<?
1
+<?php
2
 
2
 
3
 /**
3
 /**
4
  * Copyright (C) 2009 Marty Connor <mdc@etherboot.org>.
4
  * Copyright (C) 2009 Marty Connor <mdc@etherboot.org>.
53
 <hr>
53
 <hr>
54
   <font size="-1">
54
   <font size="-1">
55
     <br>
55
     <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>
57
     with questions or comments about this website.
57
     with questions or comments about this website.
58
   </font>
58
   </font>
59
   <br><br>
59
   <br><br>

+ 9
- 9
contrib/rom-o-matic/customize-flags.php View File

34
 ?>
34
 ?>
35
 
35
 
36
 <form action="build.php" method=POST>
36
 <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 ?>">
38
   <input type="hidden" name="use_flags" value="1">
38
   <input type="hidden" name="use_flags" value="1">
39
   <h3>
39
   <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.
42
   </h3>
42
   </h3>
43
   <hr>
43
   <hr>
44
   <ul>
44
   <ul>
45
-  <? require ( "directions.php" ); ?>
45
+  <?php require ( "directions.php" ); ?>
46
   </ul>
46
   </ul>
47
   <hr>
47
   <hr>
48
-  <? echo_flags( $flags ); ?>
48
+  <?php echo_flags( $flags ); ?>
49
   <hr>
49
   <hr>
50
   <h3>Embedded Script:</h3>
50
   <h3>Embedded Script:</h3>
51
-  <? echo textarea ( "embedded_script", "", "10", "50" ); ?>
51
+  <?php echo textarea ( "embedded_script", "", "10", "50" ); ?>
52
   <br><br>
52
   <br><br>
53
   <hr>
53
   <hr>
54
   <center><table width="35%"><tr>
54
   <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>
57
   </tr></table></center>
57
   </tr></table></center>
58
 </form>
58
 </form>
59
 
59
 
60
-<? include_once $bottom_inc; ?>
60
+<?php include_once $bottom_inc; ?>
61
 <?
61
 <?
62
 // For emacs:
62
 // For emacs:
63
 //
63
 //

+ 5
- 5
contrib/rom-o-matic/directions.php View File

1
-<?
1
+<?php
2
 
2
 
3
 /**
3
 /**
4
  * Copyright (C) 2009 Marty Connor <mdc@etherboot.org>.
4
  * Copyright (C) 2009 Marty Connor <mdc@etherboot.org>.
21
 
21
 
22
 ?>
22
 ?>
23
     <li>
23
     <li>
24
-      Choose an output format: <? echo keys_menubox ( "ofmt", $ofmts,
24
+      Choose an output format: <?php echo keys_menubox ( "ofmt", $ofmts,
25
       isset ( $_POST['ofmt'] ) ? $_POST['ofmt'] : "") ?>
25
       isset ( $_POST['ofmt'] ) ? $_POST['ofmt'] : "") ?>
26
       <br><br>
26
       <br><br>
27
     </li>
27
     </li>
28
     <li>
28
     <li>
29
-      Choose a NIC type: <? echo keys_menubox ( "nic", $nics,
29
+      Choose a NIC type: <?php echo keys_menubox ( "nic", $nics,
30
       isset ( $_POST['nic'] ) ? $_POST['nic'] : "" ) ?>
30
       isset ( $_POST['nic'] ) ? $_POST['nic'] : "" ) ?>
31
       <br><br>
31
       <br><br>
32
     </li>
32
     </li>
40
       <a href="http://www.ipxe.org/howto/romburning"
40
       <a href="http://www.ipxe.org/howto/romburning"
41
       target="_blank">here</a>.
41
       target="_blank">here</a>.
42
       <br><br>
42
       <br><br>
43
-      PCI VENDOR CODE:  <? echo textbox ( "pci_vendor_code",
43
+      PCI VENDOR CODE:  <?php echo textbox ( "pci_vendor_code",
44
       isset ( $_POST['pci_vendor_code'] ) ? $_POST['pci_vendor_code']
44
       isset ( $_POST['pci_vendor_code'] ) ? $_POST['pci_vendor_code']
45
               : "", 6 ); ?>
45
               : "", 6 ); ?>
46
       &nbsp;&nbsp;
46
       &nbsp;&nbsp;
47
-      PCI DEVICE CODE:  <? echo textbox ( "pci_device_code",
47
+      PCI DEVICE CODE:  <?php echo textbox ( "pci_device_code",
48
       isset ( $_POST['pci_device_code'] ) ? $_POST['pci_device_code']
48
       isset ( $_POST['pci_device_code'] ) ? $_POST['pci_device_code']
49
               : "", 6 ); ?>
49
               : "", 6 ); ?>
50
       <h4>Please note for ROM images:</h4>
50
       <h4>Please note for ROM images:</h4>

+ 3
- 3
contrib/rom-o-matic/index.php View File

27
 
27
 
28
 ?>
28
 ?>
29
 <form action="build.php" method=POST>
29
 <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 ?>">
31
   <h3>To create an image:</h3>
31
   <h3>To create an image:</h3>
32
   <ol>
32
   <ol>
33
-    <? require ( "directions.php" ); ?>
33
+    <?php require ( "directions.php" ); ?>
34
     <li>
34
     <li>
35
       Generate and download an image:
35
       Generate and download an image:
36
       <input type="submit" name="A" value="Get Image">
36
       <input type="submit" name="A" value="Get Image">
44
   </ol>
44
   </ol>
45
 </form>
45
 </form>
46
 
46
 
47
-<? include_once $bottom_inc ?>
47
+<?php include_once $bottom_inc ?>

+ 6
- 6
contrib/rom-o-matic/top.php View File

1
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
1
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
 
2
 
3
-<?
3
+<?php
4
 
4
 
5
 /**
5
 /**
6
  * Copyright (C) 2009 Marty Connor <mdc@etherboot.org>.
6
  * Copyright (C) 2009 Marty Connor <mdc@etherboot.org>.
25
 
25
 
26
 <html>
26
 <html>
27
 <head>
27
 <head>
28
-  <link rev="made" href="mailto:<? echo "${webmaster_email}" ?>">
28
+  <link rev="made" href="mailto:<?php echo "${webmaster_email}" ?>">
29
   <meta name="keywords" content="rom, etherboot, ipxe, open source, rom-o-matic.net">
29
   <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 ?>">
32
 </head>
32
 </head>
33
 <h1>
33
 <h1>
34
-<? echo "$html_title" ?>&nbsp;
34
+<?php echo "$html_title" ?>&nbsp;
35
 </h1>
35
 </h1>
36
 <hr>
36
 <hr>
37
 <h2>
37
 <h2>
38
-<? echo "$html_tagline" ?>
38
+<?php echo "$html_tagline" ?>
39
 </h2>
39
 </h2>
40
 </form>
40
 </form>
41
 <hr>
41
 <hr>

+ 3
- 2
contrib/rom-o-matic/utils.php View File

1
-<? // -*- Mode: PHP; -*-
1
+<?php // -*- Mode: PHP; -*-
2
 
2
 
3
 /**
3
 /**
4
  * Copyright (C) 2009 Marty Connor <mdc@etherboot.org>.
4
  * Copyright (C) 2009 Marty Connor <mdc@etherboot.org>.
131
         if ( strpos ( $first_eight_chars, "family" ) === 0 ) {
131
         if ( strpos ( $first_eight_chars, "family" ) === 0 ) {
132
 
132
 
133
             // get pathname of NIC driver
133
             // 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);
135
             settype ( $nic, "string" );
136
             settype ( $nic, "string" );
136
 
137
 
137
             // extract filename name of driver from pathname
138
             // extract filename name of driver from pathname

Loading…
Cancel
Save