diff options
Diffstat (limited to 'Application')
-rw-r--r-- | Application/AddTransaction/index.php | 1 | ||||
-rw-r--r-- | Application/RemoveTransaction/index.php | 1 |
2 files changed, 2 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 diff --git a/Application/RemoveTransaction/index.php b/Application/RemoveTransaction/index.php index ad0ed5d..138f6a8 100644 --- a/Application/RemoveTransaction/index.php +++ b/Application/RemoveTransaction/index.php @@ -49,4 +49,5 @@ $list = array_filter($list, function ($item) { return ($item["date"] !== base64url_decode($_GET['Transaction'])); }); +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 |