aka RedditBar, Mac OS X menu bar reddit client
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

contact.php 3.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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='&#109;ailto&#58;xyt&#104;o&#98;uz&#64;xy&#116;%&#54;8ob&#117;%7A&#46;&#100;e'>
  53. &lt;xy&#116;hobuz&#64;xyt&#104;obuz&#46;de&gt;
  54. </a>
  55. or with the following Contact Form.
  56. </p>
  57. <form action="contact.php" method="POST">
  58. <fieldset>
  59. <legend>
  60. Contact BaconBar Developer
  61. </legend>
  62. <label>
  63. E-Mail Address
  64. <input type="email" name="mail" class="form-control" placeholder="john.doe@example.com" required>
  65. </label>
  66. <br>
  67. <label>
  68. Subject
  69. <input type="text" name="subject" class="form-control" required>
  70. </label>
  71. <br>
  72. <label>
  73. Message
  74. <textarea name="message" class="form-control" rows="10" required></textarea>
  75. </label>
  76. <br>
  77. <label>
  78. <input type="submit" value="Send mail!" class="btn btn-success pull-right butt">
  79. </label>
  80. </fieldset>
  81. </form>
  82. <?php
  83. }
  84. ?>
  85. <div class="footer">
  86. <span>&copy; 2013 <a href="//xythobuz.de">Thomas Buck</a></span>
  87. <span class="pull-right">Made with <a href="//getbootstrap.com">Bootstrap</a></span>
  88. </div>
  89. </div>
  90. <img src="//xythobuz.de/stats/count.php?img" alt="Analytics">
  91. <script src="//code.jquery.com/jquery-1.10.1.min.js"></script>
  92. <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
  93. </body>
  94. </html>