diff --git a/README.md b/README.md index 8154f91..c6b1275 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ There are no tests, no checks, no security features, no formal verifications, no 1. Check social media to see if the message appears. 1. To follow other users, visit `https://test.example.com/follow` type in the name of the user you want to follow and your password. Press the "Send Follow Request" button. 1. Check social media to see if the follow request came through. +1. To read the messages that your server's inbox has received, visit `https://test.example.com/read` ## How this works diff --git a/index.php b/index.php index 2543dce..1c4efe6 100644 --- a/index.php +++ b/index.php @@ -118,9 +118,11 @@ case "outbox": outbox(); // Optional. Dynamic. case "follow": - follow(); // User interface for following an external user + follow(); // User interface for following an external user case "follow_user": follow_user(); // API for following a user + case "read": + read(); // User interface for reading posts case "/": home(); // Optional. Can be dynamic default: @@ -460,7 +462,7 @@ // User Interface for Homepage: // This creates a basic HTML page. This content appears when someone visits the root of your site. function home() { - global $username, $server, $realName, $summary; + global $username, $server, $realName, $summary, $directories; echo <<< HTML @@ -485,7 +487,7 @@ echo <<< HTML