@ -976,3 +969,89 @@ function update_suggestions() {
}
}
}
functionpoco_discover(){
$last_update=date("c",time()-(60*60*24));
$r=q("SELECT `poco`, `nurl` FROM `gserver` WHERE `last_contact` > `last_failure` AND `poco` != '' AND `last_poco_query` < '%s' ORDER BY RAND()",dbesc($last_update));
'$relocate'=>t('Relocate - WARNING: advanced function. Could make this server unreachable.'),
'$baseurl'=>$a->get_baseurl(true),
@ -690,7 +692,8 @@ function admin_page_site(&$a) {
'$maxloadavg'=>array('maxloadavg',t("Maximum Load Average"),((intval(get_config('system','maxloadavg'))>0)?get_config('system','maxloadavg'):50),t("Maximum system load before delivery and poll processes are deferred - default 50.")),
'$maxloadavg_frontend'=>array('maxloadavg_frontend',t("Maximum Load Average (Frontend)"),((intval(get_config('system','maxloadavg_frontend'))>0)?get_config('system','maxloadavg_frontend'):50),t("Maximum system load before the frontend quits service - default 50.")),
'$ld_discover_activity'=>array('ld_discover_activity',t("Discover last activity"),get_config('system','ld_discover_activity'),t("Update the last activity when this isn't provided via the 'portable contacts' functionality. (Useful for poco exchange with Redmatrix and friendica servers before 3.3)")),
'$poco_completion'=>array('poco_completion',t("Completion of incoming contacts"),get_config('system','poco_completion'),t("Complete data of incomplete incoming contacts that are provided by the 'portable contacts' functionality. (Useful for poco exchange with Redmatrix and friendica servers before 3.3)")),
'$poco_discovery'=>array('poco_discovery',t("Discover contacts from other servers"),get_config('system','poco_discovery'),t("Periodically query other friendica servers for their recent contacts.")),
'$use_fulltext_engine'=>array('use_fulltext_engine',t("Use MySQL full text engine"),get_config('system','use_fulltext_engine'),t("Activates the full text engine. Speeds up search - but can only search for four and more characters.")),
'$suppress_language'=>array('suppress_language',t("Suppress Language"),get_config('system','suppress_language'),t("Suppress language information in meta information about a posting.")),