X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=electrum.php;h=7d27ea3bbd5a33d999a599b355ad7f39c417c894;hb=3811c168581c141965586d36b4e879593b82996b;hp=23d6784b0b9623ee5b11cf65aa511121ce015c53;hpb=79ebad5560166b4ee7940b7f5d82c9baee8fded7;p=electrum-server.git
diff --git a/electrum.php b/electrum.php
index 23d6784..7d27ea3 100644
--- a/electrum.php
+++ b/electrum.php
@@ -21,7 +21,7 @@
return $buf;
}
- $pass='';
+ $pass = '';
$query = $_POST['q'];
if( !$query ) {
@@ -31,14 +31,15 @@
echo "Server status:
";
echo "Number of blocks: ". do_query( "('b','')" ) ."
";
- echo "Current load: ". do_query( "('load',$pass)" ) ."
";
+ echo "Current load: ". do_query( "('load','$pass')" ) ."
";
echo "List of active servers:
\n";
$str = do_query( "('peers','')" );
- preg_match_all("/(\d+\.\d+\.\d+\.\d+)/",$str,$matches,PREG_SET_ORDER);
+// preg_match_all("/\('(.*?)', '(\d+\.\d+\.\d+\.\d+)'\)/",$str,$matches,PREG_SET_ORDER);
+ preg_match_all("/\('(.*?)', '(.*?)'\)/", $str, $matches, PREG_SET_ORDER);
echo "