diff --git a/about.php b/about.php
index 2b3d316..77c9ab1 100644
--- a/about.php
+++ b/about.php
@@ -18,6 +18,19 @@ echo
'' .
'
';
+include "data/instances.php";
+$compiledinstancelist = "";
+foreach ($instancelist as $instance)
+{
+ $compiledinstancelist .= " ".$instance["name"]." | ";
+ $compiledinstancelist .= " ".$instance["address"]["displayname"]."";
+ foreach ($instance["altaddresses"] as $alt)
+ {
+ $compiledinstancelist .= "(".$alt["displayname"].") | ";
+ }
+ $compiledinstancelist .= "
";
+}
+
$left =
'< Go back
@@ -87,14 +100,7 @@ $left =
Name |
Address |
-
- lolcat\'s instance (master) |
- 4get.ca(tor) |
-
-
- zzls\'s instance |
- 4get.zzls.xyz(tor) |
-
+ '.$compiledinstancelist.'
How can I trust you?
diff --git a/data/instances.php b/data/instances.php
new file mode 100644
index 0000000..aeb0707
--- /dev/null
+++ b/data/instances.php
@@ -0,0 +1,47 @@
+ "lolcat's instance (master)",
+ "address" => [
+ "uri" => "https://4get.ca/",
+ "displayname" => "4get.ca"
+ ],
+ "altaddresses" => [ // all these address blocks will be linked in parentheses
+ [ // e.g. 4get.ca (tor) (i2p) etc.
+ "uri" => "http://4getwebfrq5zr4sxugk6htxvawqehxtdgjrbcn2oslllcol2vepa23yd.onion",
+ "displayname" => "tor"
+ ]
+ ]
+ ],
+ [
+ "name" => "zzls's instance",
+ "address" => [
+ "uri" => "https://4get.zzls.xyz/",
+ "displayname" => "4get.zzls.xyz"
+ ],
+ "altaddresses" => [
+ [
+ "uri" => "http://4get.zzlsghu6mvvwyy75mvga6gaf4znbp3erk5xwfzedb4gg6qqh2j6rlvid.onion",
+ "displayname" => "tor"
+ ]
+ ]
+ ],
+ [
+ "name" => "4get on a silly computer",
+ "address" => [
+ "uri" => "https://4get.silly.computer",
+ "displayname" => "4get.silly.computer"
+ ],
+ "altaddresses" => [
+ [
+ "uri" => "https://4get.cynic.moe/",
+ "displayname" => "fallback domain"
+ ]
+ ]
+ ],
+]
+?>
\ No newline at end of file