aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-02-01 15:10:52 -0800
committerfriendica <info@friendica.com>2015-02-01 15:10:52 -0800
commitb1a92d620ebf760a3cfd83f6fb62990494d3ad60 (patch)
tree4c0ec66005b3867bc8ae005f0cf6950a4ab7dcb4 /boot.php
parentacac58fba0cc5fa82cb1b74f536ba602dd237238 (diff)
downloadvolse-hubzilla-b1a92d620ebf760a3cfd83f6fb62990494d3ad60.tar.gz
volse-hubzilla-b1a92d620ebf760a3cfd83f6fb62990494d3ad60.tar.bz2
volse-hubzilla-b1a92d620ebf760a3cfd83f6fb62990494d3ad60.zip
two tracks proceeding in parallel - first adding the ability to store a digital signature with ratings so that directories can pass them around, second provide some directory registration functions so we can obtain a list of directories from somewhere (to pass ratings around between them). This gives the primary directory role some value as that is where you register your directory.
Diffstat (limited to 'boot.php')
-rwxr-xr-xboot.php15
1 files changed, 14 insertions, 1 deletions
diff --git a/boot.php b/boot.php
index 96dee2c46..2f8d1c08f 100755
--- a/boot.php
+++ b/boot.php
@@ -49,7 +49,7 @@ define ( 'RED_PLATFORM', 'redmatrix' );
define ( 'RED_VERSION', trim(file_get_contents('version.inc')) . 'R');
define ( 'ZOT_REVISION', 1 );
-define ( 'DB_UPDATE_VERSION', 1135 );
+define ( 'DB_UPDATE_VERSION', 1136 );
/**
* Constant with a HTML line break.
@@ -2194,6 +2194,19 @@ function get_directory_realm() {
return DIRECTORY_REALM;
}
+/**
+ * @brief Return the primary directory server.
+ *
+ * @return string
+ */
+function get_directory_primary() {
+ if($x = get_config('system', 'directory_primary'))
+ return $x;
+
+ return DIRECTORY_FALLBACK_MASTER;
+}
+
+
/**
* @brief return relative date of last completed poller execution