-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
59 lines (53 loc) · 1.78 KB
/
index.php
File metadata and controls
59 lines (53 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!DOCTYPE HTML>
<html>
<head>
<title> Code of Conduct Violation Report Form </title>
<?php
/*
* teslim/index.php - Mail transmission for Code of Conduct violation forms
* Copyright (c) 2025 Kıvılcım İpek Defne Öztürk
*
* All usage of this program and its source code
* must abide by the terms of the Opinionated Queer License
* see LICENSE under project root for details
*/
ini_set('display_errors', 1);
if($_SERVER['REQUEST_METHOD'] === 'GET') {
// there is some bullshit going on here
echo '<link rel="stylesheet"\n\r' .
' type="text/css"\n\r' .
' href="style/get.style.css">\n\r';
} elseif ($_SERVER['REQUEST_METHOD'] === 'POST') {
echo '<link rel="stylesheet"\n\r' .
' type="text/css"\n\r' .
' href="style/post.style.css">\n\r';
}
?>
<link rel="stylesheet"
type="text/css"
href="style/style.css">
</head>
<body>
<h1 id="receipt-msg">Your message has been sent, thank you.</h1>
<form method="POST" class="coc-form">
<h2>Code of Conduct Violation Form</h2>
<label>
<span>Your name</span>
<input name="name" type="text" required>
</label>
<label>
<span>Email address</span>
<input name="email" type="email" required>
</label>
<label>
<span>Title</span>
<input name="title" type="text" required>
</label>
<label class="full">
<span>Describe your issue</span>
<textarea name="desc" required></textarea>
</label>
<button type="submit">Submit</button>
</form>
</body>
</html>