-
Notifications
You must be signed in to change notification settings - Fork 1
/
contact.php
51 lines (46 loc) · 1.39 KB
/
contact.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
<?php
if (!empty($_REQUEST)) {
foreach ($_REQUEST as $key => $value) {
if (strpos($value, 'OR') !== false || strpos($value, 'script') !== false) {
header('Not acceptable', true, 406);
echo '406 Not acceptable';
exit();
}
}
}
if (!empty($_FILES)) {
foreach ($_FILES as $key => $value) {
if (strpos($value['name'], '.exe') !== false || strpos($value['name'], '.php') !== false) {
header('Not acceptable', true, 406);
echo '406 Not acceptable';
exit();
}
}
echo '<h3>Заявката е приета. Ще се свържем с вас възможно най-скоро.</h3>';
exit();
}
?>
<html>
<head>
<style>
label {
display: block;
}
textarea {
display: block;
}
</style>
</head>
<body>
<h1>Запитване за изработка по поръчка</h1>
<form action="" method="POST" enctype="multipart/form-data">
<label for="name">Вашето име:</label>
<input type="text" name="name"/>
<label for="name">Проект:</label>
<input type="file" name="project"/>
<label for="comment">Коментар:</label>
<textarea cols=50 rows=5 name="comment"></textarea>
<input type="submit" value="Изпрати">
</form>
</body>
</html>