Skip to content

Commit

Permalink
Save to file
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpetros committed Jul 18, 2024
1 parent 401e4aa commit f802707
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion www/switch-emoji/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f802707

Please sign in to comment.