From 956006745743cdd1df91d37159fe781995f6548d Mon Sep 17 00:00:00 2001 From: Karl Hudgell <karl.hudgell@bjss.com> Date: Thu, 1 Dec 2016 15:39:54 +0000 Subject: [PATCH] fix --- index.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/index.php b/index.php index 0dd739e..2a449c6 100644 --- a/index.php +++ b/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>