comment out rbg
This commit is contained in:
parent
50d50ab51a
commit
2f8ce13413
24
index.php
24
index.php
@ -3,9 +3,9 @@ error_reporting(0);
|
|||||||
|
|
||||||
// Config
|
// Config
|
||||||
$server = array(
|
$server = array(
|
||||||
'base' => 'http://192.168.0.20/',
|
'base' => ''
|
||||||
'cups' => 'htpp://192.168.0.20:631',
|
'cups' => '',
|
||||||
'scan' => 'http://192.168.0.20/php-scanner'
|
'scan' => ''
|
||||||
);
|
);
|
||||||
|
|
||||||
$values = array();
|
$values = array();
|
||||||
@ -79,15 +79,15 @@ for ($count = 1; $count < sizeof($diskfree); $count ++) {
|
|||||||
//Read in RGB file
|
//Read in RGB file
|
||||||
$file = file_get_contents('/home/pi/hugh/rgb', FILE_USE_INCLUDE_PATH);
|
$file = file_get_contents('/home/pi/hugh/rgb', FILE_USE_INCLUDE_PATH);
|
||||||
|
|
||||||
if ($file = "0, 0, 0") {
|
// if ($file = "0, 0, 0") {
|
||||||
$rgb = "Off";
|
// $rgb = "Off";
|
||||||
} elseif ($file = "255, 0, 0") {
|
// } elseif ($file = "255, 0, 0") {
|
||||||
$rgb = "Red";
|
// $rgb = "Red";
|
||||||
} elseif ($file = "0, 255, 0") {
|
// } elseif ($file = "0, 255, 0") {
|
||||||
$rgb = "Green";
|
// $rgb = "Green";
|
||||||
} elseif ($file = "0, 0, 255") {
|
// } elseif ($file = "0, 0, 255") {
|
||||||
$rgb = "Blue";
|
// $rgb = "Blue";
|
||||||
}
|
// }
|
||||||
|
|
||||||
// Rendering Page.
|
// Rendering Page.
|
||||||
?><!DOCTYPE html>
|
?><!DOCTYPE html>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user