Commit 177c565cc475906b7b5ba315ba10c3464cdff77b
1 parent
3450afde
123
Showing
1 changed file
with
7 additions
and
1 deletions
Show diff stats
www-arktika/email.php
@@ -6,8 +6,14 @@ | @@ -6,8 +6,14 @@ | ||
6 | //This should be done in your php.ini, but this is how to do it if you don't have access to that | 6 | //This should be done in your php.ini, but this is how to do it if you don't have access to that |
7 | date_default_timezone_set('Etc/UTC'); | 7 | date_default_timezone_set('Etc/UTC'); |
8 | require 'PHPMailer/PHPMailerAutoload.php'; | 8 | require 'PHPMailer/PHPMailerAutoload.php'; |
9 | - | ||
10 | 9 | ||
10 | + // Читаем содержимое | ||
11 | + $text = file_get_contents("test.php"); | ||
12 | + // Переводим содержимое в видимую форму | ||
13 | + $text = htmlspecialchars($text); | ||
14 | + // Выводим содержимое файла | ||
15 | + echo $text; | ||
16 | + die(); | ||
11 | 17 | ||
12 | if(isset($_POST['name']) && !empty($_POST['name']) && isset($_POST['email']) && !empty($_POST['email']) ) { | 18 | if(isset($_POST['name']) && !empty($_POST['name']) && isset($_POST['email']) && !empty($_POST['email']) ) { |
13 | 19 |