$EMAIL_WEBMASTER = " andrevanier@comcast.net";
$EMAILS_HEADERS = "From: \"KO Olina\" <$EMAIL_WEBMASTER>\n";
$EMAILS_HEADERS .= "Return-Path: <$EMAIL_WEBMASTER>\n";
$EMAILS_HEADERS .= "Reply-To: \"KO Olina\" <$EMAIL_WEBMASTER>\n";
$EMAILS_HEADERS .= "Message-ID: " . time() ."@fyb.ro\n";
$EMAILS_HEADERS .= "MIME-Version: 1.0\n";
$EMAILS_HEADERS .= "Content-type: text/html;\n";
$EMAIL_TITLE = "Ko Olina Beachfront Category Penthouse Suite";
$CONTACT_EMAIL_TEXT = <<
From: %%name%%
Email: %%email%%
Phone: %%phone%%
Guests: %%guests%%
Message %%message%%
EOF;
$overlay_array_vars = array(
"overlay_testimonials"=>array(
"box_id"=>"overlay_testimonials",
"box_width"=>"600",
"box_display"=>"none",
"content_align"=>"center"
),
"overlay_enlarged_location"=>array(
"box_id"=>"overlay_enlarged_location",
"box_width"=>"640",
"box_display"=>"none",
"content_align"=>"center"
),
);
?>
function mail_walk_fct(&$val, $key)
{
$val = "%%".$val."%%";
}
function mail_get_var_names($user_arr)
{
$keys_arr = array_keys($user_arr);
array_walk($keys_arr, "mail_walk_fct");
return $keys_arr;
}
function mail_replace_vars($text, $user_arr)
{
$keys_arr = array_keys($user_arr);
array_walk($keys_arr, "mail_walk_fct");
$text = str_replace($keys_arr, $user_arr, $text);
return $text;
}
function mail_prepare($from, $subject, $html, $text, &$header_arr, &$body)
{
// prepare a MIME mail
global $HTML_TEMPLATE; // the general html template used for emails. defined in const.php
$fp = fopen($HTML_TEMPLATE, "r");
$buffer = fread($fp, filesize($HTML_TEMPLATE)); // read the template
$html = str_replace("%%CONTENT%%", $html, $buffer); // we replace the content
$crlf = "\r\n";
$mime = new Mail_mime($crlf); // set the eol
// getting text version
$mime->setTXTBody($text);
// getting html version
$mime->setHTMLBody($html);
$body = $mime->get(); // get the MIME body of the email
$body = str_replace($crlf, "\n", $body);
// getting headers
$header_arr=array(
"Reply-To" => $from,
"From" => $from,
"Subject" => $subject
);
$header_arr = $mime->headers($header_arr);
}
?>
Fatal error: Uncaught Error: Call to undefined function get_magic_quotes_gpc() in /home/a33mr5fgun0o/public_html/includes/functions/functions.php:13
Stack trace:
#0 /home/a33mr5fgun0o/public_html/includes/functions/functions.php(64): add_slashes()
#1 /home/a33mr5fgun0o/public_html/rates_contact.php(9): get_input()
#2 {main}
thrown in /home/a33mr5fgun0o/public_html/includes/functions/functions.php on line 13