<?php
/**
* XS2:
*
* This file is developed by Solutecs, LLC for the purpose of the company
* and is provided together with XS2 Framework as and inherent part of the
* system. This file can be used on the terms of License Agreement.
*
* +7 (495) 585-0833 / 13 Rusakovskaya street, Moscow 107140 Russia
*
* @link http://www.solutecs.com
* @copyright ©1998-2007 Solutecs, LLC
* @package XS2-MODCOM
* @subpackage proc-feedback
* @version 1.XX
*/
if ($_POST) {
// Сохранение объекта message c флогом "Невидимый"
// для дальнейшей модерации контент-менеджером
$message['NType'] = 'message';
$message['ParId'] = $_POST['ParId'];
$message['NName'] = $_POST['NName'];
$message['NFlag'] = 2;
$message['Email'] = $_POST['Email'];
$message['Text'] = $_POST['Text'];
xs2InsertNode($message);
//Отправка уведомления о новом отзыве
$subject = 'Новый отзыв с сайта www.yoursite.ru';
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=windows-1251\r\n";
$headers .= "From: www.yoursite.ru\r\n";
$message = '<b>ФИО:</b> "'.$_POST['NName'].'"<BR>';
$message .= '<b>Email:</b> '.$_POST['Email'].'<BR>';
$message .= '<b>Отзыв:</b> '.$_POST['Text'];
mail('yourmail@yoursite.ru', $subject, $message, $headers);
}
?>
|
|