diff options
Diffstat (limited to 'record_transaction.php')
| -rw-r--r-- | record_transaction.php | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/record_transaction.php b/record_transaction.php deleted file mode 100644 index bd858b76..00000000 --- a/record_transaction.php +++ /dev/null @@ -1,17 +0,0 @@ -<?php - -$file = 'transactions.json'; - -$transaction = array( - 'address'=> $_GET['address'], - 'date'=> $_GET['date'], - 'received'=> $_GET['received'], - 'exchange'=> $_GET['exchange'], - 'value'=> $_GET['received'] * $_GET['exchange'] -); - -$json = json_decode(file_get_contents($file)); -array_push($json->transactions, $transaction); -file_put_contents($file, json_encode($json)); - -?> |
