diff options
Diffstat (limited to 'html/index.php')
-rw-r--r-- | html/index.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/html/index.php b/html/index.php index 5021124..e0158e1 100644 --- a/html/index.php +++ b/html/index.php @@ -2,9 +2,9 @@ $db = new SQLite3('/srv/http/vhosts/eckner.net/colocation.eckner.net/backend/sqlite.db'); -$columns = array('name', 'online', 'last_update'); +$columns = array('name', 'running', 'ping', 'power', 'last_update'); -$result = $db -> query('SELECT machines.name,machines.online,machines.last_update FROM machines;'); +$result = $db -> query('SELECT machines.' . implode(', machines.', $columns) . ' FROM machines;'); echo '<html>' . "\n"; echo '<body>' . "\n"; |