diff --git a/get_online_session_communities.php b/get_online_session_communities.php index 7cadae82..2e476062 100644 --- a/get_online_session_communities.php +++ b/get_online_session_communities.php @@ -570,20 +570,27 @@ } } + // test if active_users is valid + $active_users = $content["active_users"]; + if($active_users == -1) { + $active_users = "N/A"; + } + $line = " " . PHP_EOL . - " " . $id . "" . PHP_EOL . + " " . $id . "" . PHP_EOL . " " . $content["name"] . "" . PHP_EOL . " " . $content["description"] . "" . PHP_EOL . - " " . $content["active_users"] . "" . PHP_EOL . + " " . $active_users . "" . PHP_EOL . " " . $preview_link . "" . PHP_EOL . - " " . substr($join_link, 0, 32) . "..." . PHP_EOL . + " " . substr($join_link, 0, 32) . "..." . PHP_EOL . " " . PHP_EOL; $table_lines[] = $line; } // prefix $prefix = + "

Session Communities

" . PHP_EOL . "" . PHP_EOL . " " . PHP_EOL . " " . PHP_EOL . @@ -595,10 +602,14 @@ " " . PHP_EOL; // suffix - // span over 5 columns (id, name, description, users, preview, join link) + // span over 6 columns (id, name, description, users, preview, join link) + $span_count = 6; $suffix = " " . PHP_EOL . - " " . PHP_EOL . + " " . PHP_EOL . + " " . PHP_EOL . + " " . PHP_EOL . + " " . PHP_EOL . " " . PHP_EOL . "
Identifier
" . count($table_lines) . " unique Session Communities have been found." . count($table_lines) . " unique Session Communities have been found.
Last checked X minutes ago.
" . PHP_EOL; diff --git a/output/styles.css b/output/styles.css index 2c6c99d2..4d71dafe 100644 --- a/output/styles.css +++ b/output/styles.css @@ -1,9 +1,16 @@ +#headline { text-align: center; } + #tbl_communities { width:100%; } -#th_identifier { width:11%; } -#th_name { width:11%; } +#th_identifier { width:8%; } +.td_identifier { font-family: monospace; } +#th_name { width:14%; } #th_description { } #th_users { } .td_users { text-align: right; } #th_preview { width:20%; } -#th_join_url { width:19%; } +#th_join_url { width:18%; } +.td_join_url { font-family: monospace; } + +#td_summary { text-align: center; } +#td_last_checked { text-align: center; }