Commit b7a2272704d180d333b16adaf62a164ec7ccb940

Authored by Eugeny Galkovskiy
1 parent b73f2266

123

Showing 2 changed files with 7 additions and 5 deletions   Show diff stats
www-arktika/email.php
@@ -9,6 +9,10 @@ require 'PHPMailer/PHPMailerAutoload.php'; @@ -9,6 +9,10 @@ require 'PHPMailer/PHPMailerAutoload.php';
9 9
10 10
11 if(isset($_POST['name']) && !empty($_POST['name']) && isset($_POST['email']) && !empty($_POST['email']) ) { 11 if(isset($_POST['name']) && !empty($_POST['name']) && isset($_POST['email']) && !empty($_POST['email']) ) {
  12 +
  13 +
  14 +
  15 +
12 $name = stripslashes($_POST['name']); 16 $name = stripslashes($_POST['name']);
13 $email = stripslashes($_POST['email']); 17 $email = stripslashes($_POST['email']);
14 $code = "4749440"; 18 $code = "4749440";
@@ -49,7 +53,8 @@ if(isset($_POST['name']) && !empty($_POST['name']) && isset($_POST['email']) && @@ -49,7 +53,8 @@ if(isset($_POST['name']) && !empty($_POST['name']) && isset($_POST['email']) &&
49 $mail->Subject = 'Промокод на сайт semena.in.ua'; 53 $mail->Subject = 'Промокод на сайт semena.in.ua';
50 //Read an HTML message body from an external file, convert referenced images to embedded, 54 //Read an HTML message body from an external file, convert referenced images to embedded,
51 //convert HTML into a basic plain-text alternative body 55 //convert HTML into a basic plain-text alternative body
52 - $mail->msgHTML(file("list.php?promo=232")); 56 + $list = file_get_contents("list.php");
  57 + $mail->msgHTML($list);
53 $mail->send(); 58 $mail->send();
54 //send the message, check for errors 59 //send the message, check for errors
55 header('Location: http://arktika.semena.in.ua/'); 60 header('Location: http://arktika.semena.in.ua/');
www-arktika/list.php
1 -<?php  
2 -// if(isset($_GET['promo'])){  
3 - $code = $_GET['promo'];  
4 -?> 1 +
5 <html><head> 2 <html><head>
6 <meta charset="utf-8"> 3 <meta charset="utf-8">
7 <style> 4 <style>