diff options
Diffstat (limited to 'Application/AddTransaction')
-rw-r--r-- | Application/AddTransaction/index.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Application/AddTransaction/index.php b/Application/AddTransaction/index.php index 1c3d35f..e6b7d34 100644 --- a/Application/AddTransaction/index.php +++ b/Application/AddTransaction/index.php @@ -79,4 +79,5 @@ if ($_GET['Currency'] === "€") { $list = array_reverse($list); +file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/Private/Data/Transactions." . str_replace(":", "-", date('c')) . ".json", file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/Private/Data/Transactions.json")); file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/Private/Data/Transactions.json", json_encode($list));
\ No newline at end of file |