From 3d3de1628c5806fcda1a80191ea442f89c717ffc Mon Sep 17 00:00:00 2001 From: Gudule Lapointe Date: Mon, 23 Dec 2024 11:10:54 -0400 Subject: [PATCH] cosmetic changes --- currency.php | 2 +- landtool.php | 2 +- offline.php | 6 +++--- parser.php | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/currency.php b/currency.php index 81fdeb6..5698538 100644 --- a/currency.php +++ b/currency.php @@ -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']; diff --git a/landtool.php b/landtool.php index ff92d55..3ea8b6a 100644 --- a/landtool.php +++ b/landtool.php @@ -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']; diff --git a/offline.php b/offline.php index c33543e..5332918 100644 --- a/offline.php +++ b/offline.php @@ -129,11 +129,11 @@ switch ( $method ) { // $body = str_replace( "\n", "\r\n", $body ); $body = '' - . ( empty($intro) ? "" : "

" ) + . ( empty( $intro ) ? '' : '

' ) . $body . "\r\n" . "\r\n" - . ( empty($outro) ? "" : "
$outro
" ) + . ( empty( $outro ) ? '' : "
$outro
" ) . '
' . "

" . OPENSIM_GRID_NAME . ' Instant Messages mail forwarding by w4os.' . '
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." ); diff --git a/parser.php b/parser.php index 6ea5123..0a3ad47 100644 --- a/parser.php +++ b/parser.php @@ -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',