The Red Matrix
|
Functions | |
find_upstream_directory ($dirmode) | |
check_upstream_directory () | |
dir_sort_links () | |
dir_safe_mode () | |
sync_directories ($dirmode) | |
update_directory_entry ($ud) | |
local_dir_update ($uid, $force) | |
check_upstream_directory | ( | ) |
Directories may come and go over time. We will need to check that our directory server is still valid occasionally, and reset to something that is if our directory has gone offline for any reason
Referenced by poller_run().
dir_safe_mode | ( | ) |
Referenced by widget_dirsafemode().
dir_sort_links | ( | ) |
dir_sort_links() Called by the directory_sort widget
Referenced by widget_dirsort().
find_upstream_directory | ( | $dirmode | ) |
No directory has yet been set. For most sites, pick one at random from our list of directory servers. However, if we're a directory server ourself, point at the local instance We will then set this value so this should only ever happen once. Ideally there will be an admin setting to change to a different directory server if you don't like our choice or if circumstances change.
Referenced by directory_content(), directory_run(), navbar_complete(), pubsites_content(), ratings_init(), and update_suggestions().
local_dir_update | ( | $uid, | |
$force | |||
) |
local_dir_update($uid,$force) push local channel updates to a local directory server This is called from include/directory.php if a profile is to be pushed to the directory and the local hub in this case is any kind of directory server.
Referenced by directory_run().
sync_directories | ( | $dirmode | ) |
sync_directories($mode)
int | $mode,; | Checks the directory mode of this hub to see if it is some form of directory server. If it is, get the directory realm of this hub. Fetch a list of all other directory servers in this realm and request a directory sync packet. This will contain both directory updates and new ratings. Store these all in the DB. In the case of updates, we will query each of them asynchronously from a poller task. Ratings are stored directly if the rater's signature matches. |
Referenced by poller_run().
update_directory_entry | ( | $ud | ) |
$function update_directory_entry($ud)
array | $ud,; | // Entry from update table Given an update record, probe the channel, grab a zot-info packet and refresh/sync the data |
Ignore updating records marked as deleted
If successful, sets ud_last in the DB to the current datetime for this reddress/webbie
Referenced by onedirsync_run().