Official Landing Page https://www.gnusocial.rocks/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

87 lines
3.0 KiB

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=0.86, maximum-scale=5.0, minimum-scale=0.86">
  6. <title>GNU social &mdash; Some public communities</title>
  7. <link rel="shortcut icon" href="/favicon.ico">
  8. <link rel="stylesheet" href="https://www.gnusocial.rocks/assets/css/style.css">
  9. <link rel="stylesheet" href="https://www.gnusocial.rocks/assets/css/reset.css">
  10. <?php
  11. $query = urlencode('
  12. {
  13. nodes(platform: "gnusocial") {
  14. openSignups
  15. name
  16. host
  17. countryCode
  18. }
  19. }
  20. ');
  21. $query_result = json_decode(file_get_contents("https://the-federation.info/graphql?query={$query}"), true);
  22. $query_result = $query_result['data']['nodes'];
  23. // Filter out instances with closed signups
  24. $nodes = array_filter($query_result, function ($node) {
  25. return $node['openSignups'];
  26. });
  27. // garbage collect
  28. unset($query_result);
  29. ?>
  30. </head>
  31. <body>
  32. <header class="header">
  33. <div class="home-menu menu menu-horizontal menu-fixed">
  34. <a class="menu-heading" href="https://gnusocial.rocks/">
  35. <img src="https://www.gnusocial.rocks/assets/img/gnu-social-logo-invert.svg" alt="GNU social">
  36. </a>
  37. <ul class="menu-list">
  38. <li class="menu-item"><a href="/" class=" menu-link">Home</a></li>
  39. <li class="menu-item"><a href="/v2" class=" menu-link">Version 2</a></li>
  40. <li class="menu-item"><a href="/v3" class=" menu-link">Version 3</a></li>
  41. </ul>
  42. </div>
  43. </header>
  44. <div class="splash-container">
  45. <div class="splash">
  46. <h2 class="content-head is-center">Some public GNU social communities</h2>
  47. <p>Please note that the servers listed here are not run by us and we are not responsible for their operation or
  48. their content. They are listed here as a service to the community.</p>
  49. <h3>Public GNU social Servers</h3>
  50. <table id="nodes">
  51. <thead>
  52. <tr>
  53. <th>Name</th>
  54. <th>Country</th>
  55. </tr>
  56. </thead>
  57. <tbody>
  58. <?php foreach ($nodes as $node): ?>
  59. <tr>
  60. <td>
  61. <a href="https://<?php echo $node['host']; ?>"><?php echo $node['name']; ?></a>
  62. </td>
  63. <td>
  64. <?php echo $node['countryCode']; ?>
  65. </td>
  66. </tr>
  67. <?php endforeach; ?>
  68. </tbody>
  69. </table>
  70. <p><br>This table's data comes from <a href="https://the-federation.info/">the federation - a statistics hub</a>, if
  71. you want to be listed here, please go to https://the-federation.info/register/&#x3C;yournode.tld&#x3E;.
  72. After some seconds, you should see your node added.</p>
  73. </div>
  74. </div>
  75. <footer class="l-box is-center">
  76. This site's source is <a href="https://code.undefinedhackers.net/GNUsocial/gnusocial.rocks">hosted here</a>.
  77. </footer>
  78. </body>
  79. </html>