fix
This commit is contained in:
parent
7de8ef1511
commit
9560067457
18
index.php
18
index.php
@ -79,15 +79,15 @@ for ($count = 1; $count < sizeof($diskfree); $count ++) {
|
||||
//Read in RGB file
|
||||
$file = file_get_contents('/home/pi/hugh/rgb', FILE_USE_INCLUDE_PATH);
|
||||
|
||||
// if ($file = "0, 0, 0") {
|
||||
// $rgb = "Off";
|
||||
// } elseif ($file = "255, 0, 0") {
|
||||
// $rgb = "Red";
|
||||
// } elseif ($file = "0, 255, 0") {
|
||||
// $rgb = "Green";
|
||||
// } elseif ($file = "0, 0, 255") {
|
||||
// $rgb = "Blue";
|
||||
// }
|
||||
if ($file = "0, 0, 0") {
|
||||
$rgb = "off";
|
||||
} elseif ($file = "255, 0, 0") {
|
||||
$rgb = "red";
|
||||
} elseif ($file = "0, 255, 0") {
|
||||
$rgb = "green";
|
||||
} elseif ($file = "0, 0, 255") {
|
||||
$rgb = "blue";
|
||||
}
|
||||
|
||||
// Rendering Page.
|
||||
?><!DOCTYPE html>
|
||||
|
Loading…
x
Reference in New Issue
Block a user