From f80270764b1609802767a8664df9fd3a9ffbff9c Mon Sep 17 00:00:00 2001 From: Alexander Petros Date: Thu, 18 Jul 2024 19:35:10 -0400 Subject: [PATCH] Save to file --- www/switch-emoji/user.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/www/switch-emoji/user.php b/www/switch-emoji/user.php index 30c28ad..0629d7a 100644 --- a/www/switch-emoji/user.php +++ b/www/switch-emoji/user.php @@ -6,8 +6,14 @@ ] = $_POST; $issue_date = new DateTime($issue_date_str); +$txt = " +$sequences -file_put_contents('./submissions.txt', $txt.PHP_EOL, FILE_APPEND | LOCK_EX); +$info +-------------^^^---- +" + +file_put_contents('/var/www/submissions.txt', $txt.PHP_EOL, FILE_APPEND | LOCK_EX); header("Location: /switch-emoji/success"); http_response_code(303);