From 311c73c60b35f85fc88c2127cefa031258c0c142 Mon Sep 17 00:00:00 2001 From: Karl Date: Sat, 17 Dec 2016 17:22:36 +0000 Subject: [PATCH] added pink and yellow colours --- index.php | 10 +++++++--- pink.php | 7 +++++++ yellow.php | 7 +++++++ 3 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 pink.php create mode 100644 yellow.php 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