|
@@ -0,0 +1,95 @@
|
|
1
|
+<!DOCTYPE html>
|
|
2
|
+<html lang="en">
|
|
3
|
+ <head>
|
|
4
|
+ <meta charset="utf-8">
|
|
5
|
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+ <meta name="description" content="BaconBar Mac App">
|
|
7
|
+ <meta name="author" content="Thomas Buck">
|
|
8
|
+ <title>BaconBar - Contact Developer</title>
|
|
9
|
+ <link rel="shortcut icon" href="favicon.png">
|
|
10
|
+ <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css">
|
|
11
|
+ <link rel="stylesheet" href="style.css">
|
|
12
|
+ </head>
|
|
13
|
+ <body>
|
|
14
|
+ <div id="out" class="container">
|
|
15
|
+ <a name="top"></a>
|
|
16
|
+ <div class="header">
|
|
17
|
+ <ul class="nav nav-pills pull-right">
|
|
18
|
+ <li><a href="index.html">BaconBar</a></li>
|
|
19
|
+ <li class="active"><a href="#">Contact</a></li>
|
|
20
|
+ </ul>
|
|
21
|
+ <h1>BaconBar</h1>
|
|
22
|
+ </div>
|
|
23
|
+<?php
|
|
24
|
+if ($_SERVER['REQUEST_METHOD'] == "POST") {
|
|
25
|
+ $email = $_POST['mail'];
|
|
26
|
+ $subject = $_POST['subject'];
|
|
27
|
+ $message = $_POST['message'];
|
|
28
|
+ if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
|
|
29
|
+?>
|
|
30
|
+ <div class="alert alert-warning">Please enter a valid E-Mail Address!</div>
|
|
31
|
+<?php
|
|
32
|
+ } else {
|
|
33
|
+ $message = wordwrap($message, 70);
|
|
34
|
+ $mailheader = "From: $email\r\nReply-To: $email\r\n";
|
|
35
|
+ if (mail("xythobuz@xythobuz.de", $subject, $message, $mailheader)) {
|
|
36
|
+?>
|
|
37
|
+ <div class="alert alert-success">Your message has been sent!</div>
|
|
38
|
+<?php
|
|
39
|
+ } else {
|
|
40
|
+?>
|
|
41
|
+ <div class="alert alert-danger">Your message couldn't be sent! Sorry :(</div>
|
|
42
|
+<?php
|
|
43
|
+ }
|
|
44
|
+ }
|
|
45
|
+?>
|
|
46
|
+ <div class="alert alert-info"><a href="javascript:history.back()">Go Back</a></div>
|
|
47
|
+<?php
|
|
48
|
+} else {
|
|
49
|
+?>
|
|
50
|
+ <p>
|
|
51
|
+ You can contact me using my personal E-Mail Address
|
|
52
|
+ <a href='mailto:xythobuz@xyt%68obu%7A.de'>
|
|
53
|
+ <xythobuz@xythobuz.de>
|
|
54
|
+ </a>
|
|
55
|
+ or with the following Contact Form.
|
|
56
|
+ </p>
|
|
57
|
+
|
|
58
|
+ <form action="contact.php" method="POST">
|
|
59
|
+ <fieldset>
|
|
60
|
+ <legend>
|
|
61
|
+ Contact BaconBar Developer
|
|
62
|
+ </legend>
|
|
63
|
+ <label>
|
|
64
|
+ E-Mail Address
|
|
65
|
+ <input type="email" name="mail" class="form-control" placeholder="john.doe@example.com" required>
|
|
66
|
+ </label>
|
|
67
|
+ <br>
|
|
68
|
+ <label>
|
|
69
|
+ Subject
|
|
70
|
+ <input type="text" name="subject" class="form-control" required>
|
|
71
|
+ </label>
|
|
72
|
+ <br>
|
|
73
|
+ <label>
|
|
74
|
+ Message
|
|
75
|
+ <textarea name="message" class="form-control" rows="10" required></textarea>
|
|
76
|
+ </label>
|
|
77
|
+ <br>
|
|
78
|
+ <label>
|
|
79
|
+ <input type="submit" value="Send mail!" class="btn btn-success pull-right butt">
|
|
80
|
+ </label>
|
|
81
|
+ </fieldset>
|
|
82
|
+ </form>
|
|
83
|
+<?php
|
|
84
|
+}
|
|
85
|
+?>
|
|
86
|
+ <div class="footer">
|
|
87
|
+ <span>© 2013 <a href="//xythobuz.de">Thomas Buck</a></span>
|
|
88
|
+ <span class="pull-right">Made with <a href="//getbootstrap.com">Bootstrap</a></span>
|
|
89
|
+ </div>
|
|
90
|
+ </div>
|
|
91
|
+ <img src="//xythobuz.de/stats/count.php?img" alt="Analytics">
|
|
92
|
+ <script src="//code.jquery.com/jquery-1.10.1.min.js"></script>
|
|
93
|
+ <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
|
|
94
|
+ </body>
|
|
95
|
+</html>
|