diff options
author | friendica <info@friendica.com> | 2015-02-01 15:10:52 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-02-01 15:10:52 -0800 |
commit | b1a92d620ebf760a3cfd83f6fb62990494d3ad60 (patch) | |
tree | 4c0ec66005b3867bc8ae005f0cf6950a4ab7dcb4 /boot.php | |
parent | acac58fba0cc5fa82cb1b74f536ba602dd237238 (diff) | |
download | volse-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-x | boot.php | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -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 |