-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ccb9ad2
commit 53b306b
Showing
3 changed files
with
66 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<!DOCTYPE html> | ||
<title>Success!</title> | ||
|
||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<link rel="stylesheet" href="/vendor/missing.css@1.0.9.min.css"> | ||
|
||
<style> | ||
body { | ||
margin: 0; | ||
padding: 1em; | ||
width: 100vw; | ||
} | ||
</style> | ||
|
||
<!-- <header><a href="/">We Make Internet</a></header> --> | ||
<h1>Success!</h1> | ||
|
||
<p><a href="/switch-emoji">Head back to the proposal page</a></p> | ||
|
||
<h2>Or send in another one ?</h2> | ||
|
||
<form action="/switch-emoji/user.php"> | ||
<label>Give us some sequences<textarea name=sequences></textarea></label> | ||
<label>Anything else?<textarea name=info></textarea></label> | ||
<button>Submit</button> | ||
</form> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
if ($req['method'] == 'POST'): | ||
[ | ||
'sequences' => $sequences, | ||
'info' => $info | ||
] = $_POST; | ||
|
||
$issue_date = new DateTime($issue_date_str); | ||
|
||
file_put_contents('submissions.txt', $txt.PHP_EOL, FILE_APPEND | LOCK_EX); | ||
|
||
header("Location: /switch-emoji/success"); | ||
http_response_code(303); | ||
|
||
?> |