Файл: table.php
Строк: 63
<?php
// mod Gemorroj
require 'moduls/config.php';
require 'moduls/header.php';
###############Если стол выключен###############
if (!$setup['zakaz_change']) {
error('Not found');
}
$title .= $_SESSION['language']['orders'];
$banner='';
$Reklames = new Reklames(); // Создаем экземпляр класса Reklames
echo $Reklames->Top();
$banner.= $Reklames->Bottom();
$banner.=$Reklames->Banner();
###############Проверка переменных###############
if (!isset($_POST['text']) || !isset($_POST['back'])) {
echo '<div class="mainzag"><strong>' . $_SESSION['language']['orders'] . '</strong></div>'.$out.'
<div class="row">
<form method="post" action="' . $_SERVER['PHP_SELF'] . '?">
<div class="row">
' . $_SESSION['language']['inform administration'].'<br/>
<textarea class="enter" name="text" rows="2" cols="24"></textarea><br/>
' . $_SESSION['language']['how do you contact'] . '<br/>
<input class="enter" type="text" name="back" value="" maxlength="500"/><br/>
<input class="buttom" type="submit" name="send" value="' . $_SESSION['language']['go'] . '"/>
</div>
</form></div>';
} else {
if (empty($_POST['back']) || empty($_POST['text'])) {
error($_SESSION['language']['do not fill in the required fields'],$banner);
}
$headers = 'Content-Type: text/plain; charset=utf-8' . "rn" . 'From: support@' . $_SERVER['HTTP_HOST'];
$text = 'СООБЩЕНИЕ: ' . $_POST['text'] . ' ОБРАТНЫЙ АДРЕС: ' . $_POST['back'];
if (mail($setup['zakaz_email'], '=?utf-8?B?' . base64_encode('Заказ из загруз центра') . '?=', $text, $headers)) {
echo '<div class="mainzag"><strong>' . $_SESSION['language']['orders'] . '</strong></div>'.$out.'<div class="row">' . $_SESSION['language']['message sent successfully'] . '</div>';
} else {
echo '<div class="mainzag"><strong>' . $_SESSION['language']['orders'] . '</strong></div>'.$out.'<div class="row">' . $_SESSION['language']['message not sent'] . '</div>';
}
}
echo '<div class="foot"><a href="' . DIRECTORY . '">' . $_SESSION['language']['downloads'] . '</a> | <a href="' . $setup['site_url'] . '">' . $_SESSION['language']['home'] . '</a> |</div>'.$banner;
require 'moduls/foot.php';
?>