aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-12-10 14:08:31 -0800
committerfriendica <info@friendica.com>2012-12-10 14:08:31 -0800
commite5eb8e2c055202adfa6e997a5082650136579ab7 (patch)
tree78fa2eed7e572d1847c8af43a32aec1d05ed8990 /boot.php
parentb0970850d4e3facac26debe54f34edc21bca1ff7 (diff)
downloadvolse-hubzilla-e5eb8e2c055202adfa6e997a5082650136579ab7.tar.gz
volse-hubzilla-e5eb8e2c055202adfa6e997a5082650136579ab7.tar.bz2
volse-hubzilla-e5eb8e2c055202adfa6e997a5082650136579ab7.zip
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.
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/boot.php b/boot.php
index 347f71d04..3084d450a 100644
--- a/boot.php
+++ b/boot.php
@@ -23,6 +23,21 @@ define ( 'EOL', "<br />\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.