$hlasky[home] » $hlasky[contactus]"; $page["title"] = $h1." | ".$page["title"]; $page["keywords"] = $h1.", ".$page["keywords"]; include "page_head.php"; echo "

$a

\n"; $lefttext = getpagedesc("contact"); $lefttext = "

$hlasky[contactus]

".$lefttext."

"; include "linksnew.php"; echo "
\n"; if ($show == 1){ if ($chyby != ""){echo "

$chyby

\n";} echo dajform(); }else{echo "

".getpagedesc("contact_thank")."

";} echo "
\n"; echo "
"; include "page_foot.php"; function dajform(){ global $server, $hlasky; $tmp = "
$hlasky[form_name]:
$hlasky[email]:
$hlasky[form_phone]:
$hlasky[form_question]:
\n"; return $tmp; } function odosliNotifi($meno,$email,$phone,$question){ $subject = "Email from Contact page ".date("d.m.Y H:i",time()); $text = "Name: $meno Email: $email Phone: $phone Question: $question"; $dbnavrat = mysql_query("SELECT * FROM t_values WHERE name LIKE 'smtp%'"); while($dbhodnota = mysql_fetch_array($dbnavrat)){ if ($dbhodnota["name"] == "smtp_server"){$smtp_server = $dbhodnota["value"];} if ($dbhodnota["name"] == "smtp_name"){$smtp_name = $dbhodnota["value"];} if ($dbhodnota["name"] == "smtp_pwd"){$smtp_pwd = $dbhodnota["value"];} if ($dbhodnota["name"] == "smtp_sender"){$smtp_sender = $dbhodnota["value"];} if ($dbhodnota["name"] == "smtp_email"){$smtp_email = $dbhodnota["value"];} } $mail = new PHPMailer(); $mail->IsSMTP(); $mail->SMTPAuth = true; $mail->Host = $smtp_server; $mail->Username = $smtp_name; $mail->Password = $smtp_pwd; $mail->SetFrom($smtp_email,$smtp_sender); $mail->AddReplyTo($smtp_email,$smtp_sender); $mail->CharSet = "UTF-8"; $mail->Subject = $subject; $mail->AltBody = $text; $mail->MsgHTML($text); $mail->AddAddress("info@barefoot.im"); @$mail->Send(); } ?>