diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2023-06-22 22:23:00 +0200 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2023-06-22 22:23:00 +0200 |
commit | b0c4e8ce45c1bc40cd6fe25f5e1c56cafc61a920 (patch) | |
tree | a724afd3d62f6fa14dafe1923f5ab751a87385a0 /prog/ž/index.php | |
parent | ž: cache fix (diff) | |
download | r-b0c4e8ce45c1bc40cd6fe25f5e1c56cafc61a920.tar r-b0c4e8ce45c1bc40cd6fe25f5e1c56cafc61a920.tar.gz r-b0c4e8ce45c1bc40cd6fe25f5e1c56cafc61a920.tar.bz2 r-b0c4e8ce45c1bc40cd6fe25f5e1c56cafc61a920.tar.lz r-b0c4e8ce45c1bc40cd6fe25f5e1c56cafc61a920.tar.xz r-b0c4e8ce45c1bc40cd6fe25f5e1c56cafc61a920.tar.zst r-b0c4e8ce45c1bc40cd6fe25f5e1c56cafc61a920.zip |
Diffstat (limited to '')
-rw-r--r-- | prog/ž/index.php | 3 |
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); |