mirror of
https://github.com/GuduleLapointe/opensim-helpers.git
synced 2026-08-14 00:47:54 +00:00
deprecated forwarding register to SEARCH_REGISTRARS
This commit is contained in:
@@ -59,9 +59,9 @@ define( 'SEARCH_DB_USER', OPENSIM_DB_USER );
|
||||
define( 'SEARCH_DB_PASS', OPENSIM_DB_PASS );
|
||||
|
||||
/**
|
||||
* Other registrars to forward hosts registrations.
|
||||
* Other registrars to forward hosts registrations (deprecated)
|
||||
*
|
||||
* This method is not needed as with current OpenSim server (0.9.x) which allow
|
||||
* This method is not needed since OpenSim server (0.9.x) which allow
|
||||
* specifying multiple registrars, but could be used in the future to implement
|
||||
* peer to peer information sharing.
|
||||
*
|
||||
|
||||
+15
-6
@@ -78,10 +78,19 @@ switch ( $service ) {
|
||||
break;
|
||||
}
|
||||
|
||||
if ( is_array( SEARCH_REGISTRARS ) & ! empty( $hostname ) & ! empty( $port ) & ! empty( $service ) ) {
|
||||
$querystring = getenv( 'QUERY_STRING' );
|
||||
foreach ( SEARCH_REGISTRARS as $registrar ) {
|
||||
$result = file_get_contents( "$registrar?$querystring" );
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Deprecated since 0.9.0. Multiple registrars can be set directly from OpenSim config.
|
||||
* This would create duplicate registration requests, and worst, an infinite loop
|
||||
* if this service url is included in the array.
|
||||
*
|
||||
* Could be re-enabled with a specific option like FORWARD_TO_REGISTRARS, but only
|
||||
* with a strict test to ensure we don't call ourselves again and no registrar is
|
||||
* called both from robust and this script.
|
||||
*/
|
||||
// if ( is_array( SEARCH_REGISTRARS ) & ! empty( $hostname ) & ! empty( $port ) & ! empty( $service ) ) {
|
||||
// $querystring = getenv( 'QUERY_STRING' );
|
||||
// foreach ( SEARCH_REGISTRARS as $registrar ) {
|
||||
// $result = file_get_contents( "$registrar?$querystring" );
|
||||
// }
|
||||
// }
|
||||
die;
|
||||
|
||||
Reference in New Issue
Block a user