SITE_CONFIG_SITE_NAME));
$replacements = array(
'FULL_NAME' => $full_name,
'EMAIL_ADDRESS' => $email_address,
'QUERY' => nl2br($query),
'SITE_NAME' => SITE_CONFIG_SITE_NAME,
'WEB_ROOT' => WEB_ROOT,
'USERS_IP' => coreFunctions::getUsersIPAddress()
);
$defaultContent = "There has been a contact form submission from [[[SITE_NAME]]] with the following details:
";
$defaultContent .= "***************************************
";
$defaultContent .= "Full Name: [[[FULL_NAME]]]
";
$defaultContent .= "Email Address: [[[EMAIL_ADDRESS]]]
";
$defaultContent .= "[[[QUERY]]]
";
$defaultContent .= "***************************************
";
$defaultContent .= "Submitted IP: [[[USERS_IP]]]
";
$defaultContent .= "***************************************
";
$htmlMsg = t('contact_email_content', $defaultContent, $replacements);
coreFunctions::sendHtmlEmail(SITE_CONFIG_SITE_CONTACT_FORM_EMAIL, $subject, $htmlMsg, SITE_CONFIG_DEFAULT_EMAIL_ADDRESS_FROM, strip_tags(str_replace("
", "\n", $htmlMsg)), false, $full_name);
coreFunctions::redirect(WEB_ROOT . '/contact.' . SITE_CONFIG_PAGE_EXTENSION . '?s=1');
}
}
else
{
if ($Auth->loggedIn())
{
$full_name = $Auth->user->firstname . ' ' . $Auth->user->lastname;
$email_address = $Auth->user->email;
}
}
// include header
require_once(SITE_TEMPLATES_PATH . '/partial/_header.inc.php');
?>
abuse pages.', array('ABUSE_URL' => WEB_ROOT . '/report_file.' . SITE_CONFIG_PAGE_EXTENSION)); ?>