X-Git-Url: http://russells-world.com/code/?p=home-automation.git;a=blobdiff_plain;f=alert_status.php;fp=alert_status.php;h=38186b8bc36ab8248b31385528e470a2f31dc313;hp=0b3edeea71f28e96b2c46df38a9ff113ff61f1a5;hb=2302283047d4580aa4b97bc8987dd1525480c3ba;hpb=22502eb7a498183fada4a50994fa2bb25e4bb790 diff --git a/alert_status.php b/alert_status.php index 0b3edee..38186b8 100644 --- a/alert_status.php +++ b/alert_status.php @@ -1,11 +1,10 @@ =1) { - echo "Russ- You're being summoned!
"; -} -if (summon_status("beth")>=1) { - echo "Beth- You're being summoned!
"; -} +foreach ($summon as $person) { + if (summon_status($person) >= 1) { + echo "$person- You're being summoned!
"; + } +} ?>