Skip to content

Commit

Permalink
Line 214 - 216 edited to display system status
Browse files Browse the repository at this point in the history
  • Loading branch information
asdoosa committed Jun 30, 2015
1 parent 6dc9d93 commit 0263502
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/chkhosts-gen-webstat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,9 @@ cat >>$WEBPAGE << "PHP_FUNCTIONS_SECTION"
function showstatus($pingname,$hostname)
{
if (file_exists("../status-up/$pingname")) {
echo '<td style="background-color:green; \
$file = 'chkhosts-sysinfo-color.txt';
$contents = file_get_contents($file);
echo '<td style="background-color:$contents; \
border-color: #000000; \
border-width: 1px 1px 1px 1px">';
if (file_exists("system-info/$hostname.txt")) {
Expand Down

1 comment on commit 0263502

@n7ekb
Copy link
Owner

@n7ekb n7ekb commented on 0263502 Jun 30, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's do an if-else so that if the sysinfo-color file doesn't exist we use "green" as the color...

Please sign in to comment.