| Server IP : 80.93.52.51 / Your IP : 216.73.217.60 Web Server : Apache/2.4.58 (Ubuntu) System : Linux 80-93-52-51.swtest.ru 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64 User : www-root ( 1010) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/www-root/data/www/undergroundexpert.info/wp-content/themes/shablon/ |
Upload File : |
<?php
$status = "";
$headers = array();
$headers[] = 'From: undergroundexpert.info';
$headers[] = 'Content-Type: text/html; charset=utf-8';
$headers[] = 'Subject: Статья с сайта undergroundexpert.info';
require($_SERVER['DOCUMENT_ROOT'].'/wp-load.php');
if(!empty($_POST["client_name"])) $client_name = strip_tags(trim($_POST["client_name"]));
if(!empty($_POST["client_email"])) $client_email = strip_tags(trim($_POST["client_email"]));
if(!empty($_POST["post_id"])) $post_id = strip_tags(trim($_POST["post_id"]));
$post_title = get_the_title($post_id);
$post_time = get_the_time('d.m.Y', $post_id);
$post_content = apply_filters('the_content', get_post_field('post_content', $post_id));
$post_html =
'<html>
<head>
<title></title>
</head>
<body>
<table width="100%">
<tr>
<td><p style="font-size: 18px; margin: 10px 0;">Здравствуйте, '.$client_name.'.</p></td>
</tr>
<tr>
<td><p style="margin: 10px 0;"><span style="font-size: 24px; font-weight: bold";>'.$post_title.'</span><br> Дата публикации: '.$post_time.'</p></td>
</tr>
<tr>
<td><p style="margin: 10px 0;"><a href="'.get_permalink($post_id).'">Читать статью на сайте</a></p></td>
</tr>
<tr>
<td style="border-top: 1px solid #000; padding-top: 20px;">'.$post_content.'</td>
</tr>
</table>
</body>
</html>';
$theme = "Статья с портала undergroundexpert.info";
if(mail($client_email, $theme, $post_html, implode("\r\n", $headers))) {
$status = "ok";
}
echo $status;
?>