-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
executable file
·85 lines (73 loc) · 2.1 KB
/
index.php
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?php
if (isset($_POST["company"])) {
$company = $_POST["company"];
$name = $_POST["name"];
$mail = $_POST["mail"];
$num = $_POST["num"];
$url = $_POST["url"];
$reason = $_POST["reason"];
$body = "Company: ".$company."\nFull Name: ".$name."\nEmail: ".$mail."\nPhone number: ".$num."\nInfringing URL: ".$url."\nReason: ".$reason."\n==DMCAREQ END==\n\n";
$extra = "";
while (file_exists("dmcareq_".date("d-m-Y").$extra.".txt")) {
$extra .= "_";
}
file_put_contents("dmcareq_".date("d-m-Y").$extra.".txt", $body);
if (mail("[email protected]", "DMCA Letter", $body, "From: [email protected]"))
echo "Message accepted";
else echo "Error, message rejected";
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="/style.css">
<title>ARFNET</title>
<style>
.title {
font-size: 36px;
}
header *{
display: inline-block;
}
* {
vertical-align: middle;
max-width: 100%;
}
.text {
width: 500px;
height: 200px;
}
.form {
margin: 20px;
padding: 20px;
//border: solid 1px;
}
</style>
</head>
<body>
<header>
<img src="/arfnet_logo.png" width="64">
<span class="title"><strong>ARFNET</strong></span>
</header>
<hr>
<a class="home" href="/">Home</a><br>
<h2>ARFNET DMCA Take Down Request Form</h2>
<hr>
<form class="form" method="POST" action="/dmcarequest/index.php">
<label>Company</label><br>
<input type="text" name="company"></input><br><br>
<label>Full Name</label><br>
<input type="text" name="name"></input><br><br>
<label>Email</label><br>
<input type="text" name="mail"></input><br><br>
<label>Phone number</label><br>
<input type="text" name="num"></input><br><br>
<label>Infringing URL</label><br>
<input type="text" name="url"></input><br><br>
<label>Reason (Copyright information...)</label><br>
<textarea class="text" name="reason"></textarea><br><br>
<input type="submit" value="Submit"></input>
</form>
</body>
</html>