Fix sheevaplug-installer-v1.1-lite/runme.php to change the “<?” tag to “<?php”, use getenv() in place of $_ENV[], and fix a bug in function beep().
$this->bbcode_second_pass_code('', '
--- sheevaplug-installer-v1.1-lite/runme.php
+++ sheevaplug-installer-v1.1-lite/runme.php
@@ -1,2 +1,2 @@
-<?
+<?php
@@ -6,3 +6,3 @@
/* find out if we run on Linux/Windows*/
-if (strstr($_ENV["OS"], "Windows"))
+if (strstr(getenv("OS"), "Windows"))
$WIN32=1;
@@ -42,3 +42,3 @@
{
- if ($_ENV["USER"] != 'root')
+ if (getenv("USER") != 'root')
die("You must run this as root\n");
@@ -85,2 +85,3 @@
function beep ($int_beeps = 1) {
+ $string_beeps = "";
for ($i = 0; $i < $int_beeps; $i++): $string_beeps .= "\x07"; endfor;
')
Larry Baker
US Geological Survey