summaryrefslogtreecommitdiffstats
path: root/prog/ž/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'prog/ž/index.php')
-rw-r--r--prog/ž/index.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/prog/ž/index.php b/prog/ž/index.php
index 5b46ce1..dc2a2f5 100644
--- a/prog/ž/index.php
+++ b/prog/ž/index.php
@@ -299,11 +299,12 @@ switch ($_REQUEST["e"] . "-" . $_SERVER["REQUEST_METHOD"]) {
@$balances[$tx->recipient] += $tx->amount;
}
response(200);
- foreach ($balances as $key => $value) // do not trust balances provided by this API, since they
+ foreach ($balances as $key => $value) { // do not trust balances provided by this API, since they
$packed = pack("q", $value); // are cast to machine dependent int by php
if (pack("Q", 123) === pack("P", 123)) // machine is little endian
$packed = strrev($packed);
echo $key . $packed;
+ }
break;
default:
response(400, "unknown endpoint or method not allowed", TEXT);