forked from QupZilla/qupzilla.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreportbug.php
More file actions
55 lines (49 loc) · 1.45 KB
/
reportbug.php
File metadata and controls
55 lines (49 loc) · 1.45 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
<?php
$mail = $_POST["mail"];
$type = stripslashes($_POST["type"]);
$text = stripslashes($_POST["text"]);
$text = "Operating System: \t" . stripslashes($_POST["os"]) . "\n" .
"Application Version: \t" . stripslashes($_POST["version"]) . "\n" .
"Qt Version: \t" . stripslashes($_POST["qtversion"]) . "\n" .
"WebKit Version: \t" . stripslashes($_POST["webkitversion"]) . "\n" .
"=============================================== \n\n" . $text;
if ($type == "" || $text == "")
die("All fields are required!");
if(!mail("nowrep@gmail.com", "QupZilla Issue: $type", $text, "From: $mail\r\nContent-Type: text/plain; charset=utf-8\r\n"))
die("Error while reporting issue.");
?>
<html><head>
<title>Report Issue</title>
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<style>
html {
background: #eeeeee;
font: 13px/22px "Helvetica Neue", Helvetica, Arial, sans-serif;
color: #525c66;
}
html * {
font-size: 100%;
line-height: 1.6;
}
#box {
max-width: 650px;
overflow:auto;
margin: 25px auto 10px auto;
padding: 10px 40px;
border-width: 20px;
-webkit-border-image: url(images/box-border.png) 25;
text-align: left;
}
h1 {
color: #1a4ba4;
font-size: 160%;
margin-bottom: 0px;
}
</style>
</head>
<body>
<div id="box">
<h1 align="center">Issue reported</h1>
<center><p>Thank You for report. Your issue will be reviewed as soon as possible. <br/>You will be updated by e-mail.</p></center>
</div>
</body></html>