From 8446cfe20610cbd1cce23a4ef5a53935a77bea84 Mon Sep 17 00:00:00 2001 From: Jannik Beyerstedt Date: Sat, 23 Sep 2017 23:16:39 +0200 Subject: [PATCH] [CODE] add information if host is up (via ping) --- .gitignore | 1 + index.php | 17 ++++++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bdd00a7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.AppleDouble diff --git a/index.php b/index.php index 8be7597..7410399 100644 --- a/index.php +++ b/index.php @@ -10,6 +10,8 @@ if (isset($_GET['wake'])) { $return = shell_exec('wakeonlan '.$_GET['wake']); } +$clients = ["nuc6i5-host"=>"b8:ae:ed:ec:18:f7", + "magrathea" =>"60:03:08:9c:25:6a"]; ?> @@ -35,6 +37,9 @@ if (isset($_GET['wake'])) { a, a:visited { color: blue; } + + .red { color: red; } + .green { color: green; } @@ -46,7 +51,17 @@ if (isset($_GET['wake'])) {

I can wake up the following clients: