diff --git a/index.php b/index.php index e8d6b86..53bd695 100644 --- a/index.php +++ b/index.php @@ -87,7 +87,11 @@ $file = file_get_contents('/home/pi/hugh/rgb', FILE_USE_INCLUDE_PATH); $rgb = "Green"; } elseif ($file == "0, 0, 255") { $rgb = "Blue"; - } + } elseif ($file == "255, 255, 0") { + $rgb = "Yellow"; + } elseif ($file == "255, 102, 255") { + $rgb = "Pink"; + } // Rendering Page. ?> @@ -201,11 +205,11 @@ $file = file_get_contents('/home/pi/hugh/rgb', FILE_USE_INCLUDE_PATH); - + Yellow - + Pink diff --git a/pink.php b/pink.php new file mode 100644 index 0000000..0133efb --- /dev/null +++ b/pink.php @@ -0,0 +1,7 @@ +"; // change redirectpage.php to where you want to redirect. +?> \ No newline at end of file diff --git a/yellow.php b/yellow.php new file mode 100644 index 0000000..11433d1 --- /dev/null +++ b/yellow.php @@ -0,0 +1,7 @@ +"; // change redirectpage.php to where you want to redirect. +?> \ No newline at end of file