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
|
||||
$server = array(
|
||||
'base' => 'http://192.168.0.20/',
|
||||
'cups' => 'htpp://192.168.0.20:631',
|
||||
'scan' => 'http://192.168.0.20/php-scanner'
|
||||
'base' => ''
|
||||
'cups' => '',
|
||||
'scan' => ''
|
||||
);
|
||||
|
||||
$values = array();
|
||||
@ -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