Вход Регистрация
Файл: public_html/kontakt.php
Строк: 88
<?php
require('classes/config.php');
include 
"inc/db.php";
$db = new db();

if(!empty(
$_POST['uid'])){

$data $db->query('SELECT email, a_name FROM user WHERE id = "'.$_POST['uid'].'"');
$user $db->fetch_object($data);
$mail $user->email;
$name $user->a_name;

//produkt->data
$getData $db->query('SELECT id, titel FROM produkte WHERE id = "'.$_POST['aid'].'"');
$rowData $db->fetch_assoc($getData);

if(empty(
$_POST['email'])){
    
$addMessageText '<div style="float:left; clear:both; padding-top:15px;"><a href="http://'.$config_contact_settings['domain'].'/mainmeineanzeigen">Logge dich ein</a> um <b>'.htmlspecialchars($_POST['name']).'</b> zu antworten.</div>';    
}else{
    
$addMessageText '';    
}

$messageText utf8_decode('
<div style="float:left; clear:both; font-family:arial;">
    <div style="float:left; font-size:16px; font-weight:bold; padding:15px; border-bottom:3px solid #a3d869; width:500px;">Anfrage zu Ihrer Anzeige</div>
    <div style="float:left; clear:both; padding-bottom:15px; padding-top:15px;">
        <div style="float:left;">Lieber Nutzer!</div>
        <div style="float:left; clear:both; padding-top:10px;">
            Ein Interessent hat eine Anfrage zu Ihrer Anzeige gesendet:
        </div>
        <div style="float:left; clear:both; padding-top:4px;">
            <a href="http://'
.$config_contact_settings['domain'].'/itm'.$_POST['aid'].'">'.$rowData['titel'].'</a>
        </div>
        <div style="float:left; clear:both; padding-top:4px;">
            Anzeigennummer: '
.$rowData['id'].'
        </div>
    </div>
    <div style="float:left; clear:both; width:500px; padding:15px; background:#f2f2f2; border-top:1px solid #e2e2e2;">
        <div style="float:left;"><b>Nachricht von:</b>  '
.htmlspecialchars($_POST['name']).'</div>
        <div style="float:left; clear:both; padding-top:10px;">
            '
.htmlspecialchars($_POST['text']).'
        </div>
    </div>
    '
.$addMessageText.'
</div>'
);



if(!empty(
$_POST['email'])){
    
$fromuid $_POST['email'];    
}else{
    
$fromuid $_POST['fromuid'];    
}


$e->createMessage($_POST['uid'], $fromuid$_POST['text'], $_POST['aid'], $_POST['name']);
    
    
$textuber utf8_decode('über');
    
    
$empfaenger $mail;
    
    
$absender   $_POST['email'] ? $_POST['email'] : $config_contact_settings["email_signIn"]; 
    
$antwortan  $_POST['email'] ? $_POST['email'] : $config_contact_settings["email_signIn"]; 
    
    
$betreff    $config_contact_settings['mail_betreff'] . ' "'.$rowData['titel'].'"';
     
    
$header  "MIME-Version: 1.0rn";
    
$header .= "Content-type: text/html; charset=iso-8859-1rn";
     
    
$header .= "From: ".$_POST['name']." ".$textuber." ".$config_contact_settings['name']." <$absender>rn";
    
$header .= "Reply-To: $antwortanrn";
    
$header .= "X-Mailer: PHP "phpversion();
     
    
mail$empfaenger,
          
$betreff,
          
$messageText,
          
$header);

}

$e->location('kontaktok.php?id=' $_POST['aid'] . '&r=ok');
exit();
     
?>
Онлайн: 0
Реклама