aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2023-04-26 23:01:56 +0200
committerMario Vavti <mario@mariovavti.com>2023-04-26 23:01:56 +0200
commitbdb25315b6f01f1963b21f6e0c0bd5ec2959c62e (patch)
treee530ef64610ff7f978c36c4fe7a636c8f478c456 /boot.php
parent60f0739c3e8158bdcb373c3607ef2e8e8fcb4e08 (diff)
downloadvolse-hubzilla-bdb25315b6f01f1963b21f6e0c0bd5ec2959c62e.tar.gz
volse-hubzilla-bdb25315b6f01f1963b21f6e0c0bd5ec2959c62e.tar.bz2
volse-hubzilla-bdb25315b6f01f1963b21f6e0c0bd5ec2959c62e.zip
initial commit for directory flags federation
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php17
1 files changed, 10 insertions, 7 deletions
diff --git a/boot.php b/boot.php
index 1f9d131d3..8666c5f4f 100644
--- a/boot.php
+++ b/boot.php
@@ -84,6 +84,15 @@ define('DIRECTORY_MODE_PRIMARY', 0x0001); // There can only be *one* primary dir
define('DIRECTORY_MODE_SECONDARY', 0x0002); // All other mirror directory servers
define('DIRECTORY_MODE_STANDALONE', 0x0100); // A detached (off the grid) hub with itself as directory server.
+define('DIRECTORY_UPDATE_OK', 0);
+define('DIRECTORY_UPDATE_XCHAN', 1);
+define('DIRECTORY_UPDATE_FLAGS', 2);
+define('DIRECTORY_UPDATE_BOTH', 3);
+
+define('DIRECTORY_FLAG_OK', 0);
+define('DIRECTORY_FLAG_UNSAFE', 1);
+define('DIRECTORY_FLAG_HIDDEN', 2);
+
// 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
@@ -96,8 +105,7 @@ define('DIRECTORY_FALLBACK_MASTER', 'https://hub.netzgemeinde.eu');
function get_directory_fallback_servers() {
$ret = [
'https://hub.netzgemeinde.eu',
- 'https://zotsite.net',
- 'https://hub.libranet.de'
+ 'https://zotsite.net'
];
return $ret;
@@ -364,11 +372,6 @@ define('POLL_TENSCALE', 0x0002); // 1-10
define('POLL_MULTIPLE_CHOICE', 0x0004);
define('POLL_OVERWRITE', 0x8000); // If you vote twice remove the prior entry
-
-define('UPDATE_FLAGS_UPDATED', 0x0001);
-define('UPDATE_FLAGS_FORCED', 0x0002);
-define('UPDATE_FLAGS_DELETED', 0x1000);
-
define('HUBLOC_OFFLINE', 0x0001);
define('DROPITEM_NORMAL', 0);