Guest User

Untitled

a guest
Sep 7th, 2018
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.31 KB | None | 0 0
  1. <?php
  2. require_once('../includes/config.php');
  3. if(!$user->is_logged_in()){
  4. header('Location:login.php');
  5. }
  6. if(isset($_GET['delpost'])){
  7. $stmt=$db->prepare('DELETE FROM blog_posts WHERE postID=:postID');
  8. $stmt->execute(array(':postID'=>$_GET['delpost']));
  9. header('Location:index.php?action=deleted');
  10. exit;
  11. }
  12. ?>
  13. <!DOCTYPE html>
  14. <html lang="es-ES">
  15. <head>
  16. <meta charset="utf-8">
  17. <title>Contacto</title>
  18. <link rel="stylesheet" href="../style/styles.css">
  19. <style>
  20. #seccion{
  21. background-color:#9BE8FF;
  22. }
  23. #seccion>p>a{
  24. font-size:20px;
  25. }
  26. </style>
  27. </head>
  28. <body>
  29. <header>
  30. <h1>REAL ZARAGOZA</h1>
  31. <h3>... MÁS QUE UNA PASIÓN!</h3>
  32. </header>
  33. <nav>
  34. <ul>
  35. <li><a href="../index.php">Blog</a></li>
  36. <li><a href="../about.php">Sobre nosotros</a></li>
  37. <li><a href="../fotos.php">Fotos</a></li>
  38. <li><a href="contacto.php">Contacto</a></li>
  39. <li><a href="#">Suscribete</a></li>
  40. </ul>
  41. </nav>
  42. <main>
  43. <aside>
  44. <h1>ENLACES DE INTERES</h1>
  45. <a href="http://realzaragoza.com">Página oficial del Real Zaragoza</a></br>
  46. <a href="http://aupazaragoza.com">Página de Aupa Zaragoza</a></br>
  47. <a href="https://twitter.com/realzaragoza">Real Zaragoza en Twitter</a></br>
  48. <a href="https://es-es.facebook.com/RealZaragozaOficial">Real Zaragoza en Facebook</a></br>
  49. <a href="https://instagram.com/realzaragoza">Real Zaragoza en Instagram</a></br>
  50. <a href="https://heraldo.es/noticias/deportes/futbol/real_zaragoza/portada">Heraldo de Aragón</a></br>
  51. <a href="http://elperiodicodearagon.com/noticias/realzaragoza">El Periódico de Aragón</a></br>
  52. <h1>PATROCINADORES</h1>
  53. <a align="middle" class="foto" href="https://adidas.es" target="_blank"><img src="../images/adidas.png" alt="ADIDAS" border="0"></a></br>
  54. <a align="middle" class="foto" href="https://jamoneseutiquio.com" target="_blank"><img src="../images/eutiquio.jpg" alt="JAMONES EUTIQUIO" border="0"></a></br>
  55. <a align="middle" class="foto" href="https://caixabank.es/particular/home/particulares_es.html" target="_blank"><img src="../images/caixabank.jpg" alt="CAIXABANK" border="0"></a></br>
  56. <a align="middle" class="foto" href="https://movistar.es" target="_blank"><img src="../images/movistar.jpg" alt="MOVISTAR" border="0"></a></br>
  57. </aside>
  58. <section id="seccion">
  59. <?php include('menu.php');?>
  60. <form id="ContactForm" method="post" action="">
  61. <p><label>Nombre: </label><br/>
  62. <input type="text" name="nombre" value=""></p>
  63. <p><label>Email: </label><br/>
  64. <input type="text" name ="email" value=""></p>
  65. <p><label>Asunto: </label><br/>
  66. <input type="text" name="asunto" value=""></p>
  67. <p><label>Mensaje: </label><br/>
  68. <textarea name="mensaje" cols="60" rows="10"></textarea></p>
  69. <p><input type="submit" name='submit' value="Enviar"></p>
  70. </form>
  71. <?php
  72. error_reporting(E_ALL);
  73. ini_set('display_errors', '1');
  74. if(isset($_POST["nombre"]) and isset($_POST["correo"])){
  75. $destino="cdum77@gmail.com";
  76. $asunto="Real Zaragoza";
  77. $nombre=$_POST['nombre'];
  78. $email=$_POST['email'];
  79. $asunto=$_POST['asunto'];
  80. $mensaje=$_POST['mensaje'];
  81. $msn="
  82. Nombre: $nombre n
  83. email: $email n
  84. asunto: $asunto n
  85. mensaje: $mensaje n
  86. ";
  87. $cabeceras='From: cdum77@gmail.com'."rn".'Reply-To: cdum77@gmail.com'."rn".'X-Mailer: PHP/'.phpversion();
  88. if(mail($destino,$asunto,$msn,$cabeceras)){
  89. header("Location:contacto.php?m=1");
  90. //echo "SE envio";
  91. }
  92. }
  93. ?>
  94. </section>
  95. </main>
  96. <footer>
  97. <p>© 2018 Charly Utrilla</p>
  98. </footer>
  99. </body>
  100. </html>
Add Comment
Please, Sign In to add comment