cosmetic changes

This commit is contained in:
Gudule Lapointe
2024-12-23 11:10:54 -04:00
parent 0524df6911
commit 3d3de1628c
4 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -313,7 +313,7 @@ function currency_xmlrpc_regionMoveMoney( $method_name, $params, $app_data ) {
//
xmlrpc_server_register_method( $xmlrpc_server, 'simulatorClaimUserRequest', 'currency_xmlrpc_claimUserRequest' );
function currency_xmlrpc_claimUserRequest( $method_name, $params, $app_data ) {
$req = $params[0];
$req = $params[0];
$agentid = $req['agentId'];
$sessionid = $req['secureSessionId'];
$regionid = $req['regionId'];
+1 -1
View File
@@ -102,7 +102,7 @@ function buy_land_prep( $method_name, $params, $app_data ) {
xmlrpc_server_register_method( $xmlrpc_server, 'buyLandPrep', 'buy_land' );
function buy_land( $method_name, $params, $app_data ) {
$req = $params[0];
$req = $params[0];
$agentid = $req['agentId'];
$sessionid = $req['secureSessionId'];
$amount = $req['currencyBuy'];
+3 -3
View File
@@ -129,11 +129,11 @@ switch ( $method ) {
// $body = str_replace( "\n", "\r\n", $body );
$body = '<html><body>'
. ( empty($intro) ? "" : "<p></p>" )
. ( empty( $intro ) ? '' : '<p></p>' )
. $body
. "\r\n"
. "\r\n"
. ( empty($outro) ? "" : "<blockquote>$outro</blockquote>" )
. ( empty( $outro ) ? '' : "<blockquote>$outro</blockquote>" )
. '<hr>'
. "<p style='font-size:small'><b>" . OPENSIM_GRID_NAME . '</b> Instant Messages mail forwarding by w4os.'
. '<br>Please log in-world to answer to this message. Emails to the sender address will not be processed.'
@@ -144,7 +144,7 @@ switch ( $method ) {
// We're inside WordPress, use wp_mail()
add_action(
'plugins_loaded',
function() use ( $email, $subject, $body, $headers ) {
function () use ( $email, $subject, $body, $headers ) {
$result = wp_mail( $email, $subject, $body, $headers );
if ( ! $result ) {
error_log( __FILE__ . "error $result sending IM notification to $email." );
+2 -2
View File
@@ -34,7 +34,7 @@ function hostCheck( $hostname, $port ) {
$xml = file_get_contents( "http://$hostname:$port/?method=collector" );
if ( empty( $xml ) ) {
error_log( "$hostname:$port unreachable" );
// error_log( "$hostname:$port unreachable" );
$fails = $SearchDB->prepareAndExecute(
'SELECT failcounter FROM hostsregister
WHERE host = :host AND port = :port',
@@ -267,7 +267,7 @@ function hostScan( $hostname, $port, $xmlcontent ) {
)
);
// We don't want land for sale in popular places.
// We don't want land for sale in popular places.
if ( $parcelforsale == 'false' ) {
$SearchDB->insert(
'popularplaces',