From e5eb8e2c055202adfa6e997a5082650136579ab7 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 10 Dec 2012 14:08:31 -0800 Subject: Any red site can be a global directory provider. By default we'll make them level 3 mirrors. We will also allow one to create standalone directories or global directory servers/mirrors in alternate realms. --- boot.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'boot.php') diff --git a/boot.php b/boot.php index 347f71d04..3084d450a 100644 --- a/boot.php +++ b/boot.php @@ -23,6 +23,21 @@ define ( 'EOL', "
\r\n" ); define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' ); + +define ( 'DIRECTORY_MODE_NORMAL', 0x0000); // This is technically DIRECTORY_MODE_TERTIARY, but it's the default, hence 0x0000 +define ( 'DIRECTORY_MODE_PRIMARY', 0x0001); +define ( 'DIRECTORY_MODE_SECONDARY', 0x0002); +define ( 'DIRECTORY_MODE_STANDALONE', 0x0100); + +// We will look for upstream directories whenever me make contact +// with other sites, but if this is a new installation and isn't +// a standalone hub, we need to seed the service with a starting +// point to go out and find the rest of the world. + +define ( 'DIRECTORY_REALM', 'RED_GLOBAL'); +define ( 'DIRECTORY_FALLBACK_MASTER', 'https://zothub.com'); + + /** * * Image storage quality. Lower numbers save space at cost of image detail. -- cgit v1.2.3