| Server IP : 10.200.247.200 / Your IP : 216.73.217.19 Web Server : Apache System : Linux synergy-usa-sites 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64 User : jeremy ( 1001) PHP Version : 8.4.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/usa_sites/americasgotfunding.com/ |
Upload File : |
<?
header("Location: /vx/usa/contact/");
exit;
require_once($_SERVER['DOCUMENT_ROOT'].'/assets/includes/php_header.php');
$category = 'home'; /*Choose: general, business, education, personal, government, nonprofit */
if($_POST)
{
$_POST = sanitize($_POST); //clean input data
$required_fields = array('first'=>'First Name',
'last'=>'Last Name',
'subject'=>'Subject',
'email'=>'Email Address',
'message'=>'Message');
$first = true;
foreach($required_fields as $field=>$name) {
if(!isset($_POST[$field]) || $_POST[$field] == "") { //check if they are blank
if(!isset($errors)) {
$errors = array();
$errors['required_fields'] = "The following fields are required: ";
}
$errors['required_fields'] .= ($first) ? $name : ", ".$name;
$first = false;
}
}
if(!validEmail($_POST['email'])) {
if(!isset($errors)) {
$errors = array();
}
$errors['invalid_email'] = "An invalid email was submitted: ";
$errors['invalid_email'] .= ($_POST['email'] == "") ? "BLANK" : $_POST['email'];
}
if(!isset($errors)) {
$attn = $_SITE_NAME." Support - Contact Us (Public)";
$subject = $attn.date('Y-m-d H:i:s');
$_POST['message'] = htmlentities(stripcslashes($_POST['message']));
$message = "Attention: $attn,
A support request was submitted from ".$_POST['first']." ".$_POST['last']." (".$_POST['email'].") on the following subject: ".$_POST['subject'].".
Message: ".$_POST['message']."
-------- Additional Info: ----------
IP Address: ".$_SERVER['REMOTE_ADDR']."
Browser Info: ".$_SERVER['HTTP_USER_AGENT']."
Referer URL: ".$_SERVER['HTTP_REFERER'];
$from = $_POST['email'];
$email_header = $from . "Bcc: support@americasgotfunding.com\r\n";
require_once("Mail.php");
$host = "ssl://smtp.gmail.com";
$port = "465";
$username = "frontoffice@personalgranthelp.com"; //<> give errors
$password = "Syn3rgy2016";
$to = 'support@americasgotfunding.com';
$headers = array ('From' => $from,
'Reply-To' => $from,
'To' => $to,
'Subject' => $subject);
$smtp = Mail::factory('smtp',
array ('host' => $host,
'port' => $port,
'auth' => true,
'username' => $username,
'password' => $password));
$mail = $smtp->send($to, $headers, $message);
/*if(!mail($_SITE_EMAIL, $subject, $message, $email_header, '-fwebmaster@surfcrm.com')) {
$errors['mail_funciton'] = "An error occurred in the send mail function.";
}
else {*/
$_POST = null;
$success = true;
//}
}
}
$title = $_SITE_NAME." : Contact";
include('assets/includes/header2.php'); ?>
<?php
echo '<!-- '.$_SITE_EMAIL.' -->';
/*<script type="text/javascript">
var __lc = {};
__lc.license = 1096486;
(function() {
var lc = document.createElement('script'); lc.type = 'text/javascript'; lc.async = true;
lc.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'cdn.livechatinc.com/tracking.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(lc, s);
})();
</script>*/ //No live chat as of 2/1/2013 ?>
<style>
<!--
#page, div#content, #footer {margin:0 auto; width:100%; max-width:1000px}
#boxBot {display:none}
.dataBox, .tableform {float:right; width:46%; padding:10px 2%}
.data {
width:100%;
border-collapse: collapse;
-webkit-border-radius: 10px;
-khtml-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
-webkit-box-shadow: 0 2px 10px #4cb0de;
-khtml-box-shadow: 0 2px 10px #4cb0de;
-moz-box-shadow: 0 2px 10px #4cb0de;
box-shadow: 0 2px 10px #4cb0de;
background: #fff;
background: rgba(255,255,255,0.8);
position:relative;
z-index:1;
margin-bottom:15px;
}
.logoTop {
background:url("/lp2/assets/images/logo_768.png") no-repeat top center;
height:100px;
width:100%
}
#one_column {width:96%; margin:0 2%}
-->
</style>
<link href="lp2/assets/css/responsive.css" type="text/css" rel="stylesheet" />
<!--INFO AREA + BOX MIDDLE-->
<div class="data">
<!--LEFT COLUMN-->
<div id="one_column" class="terms">
<h1 class="memb_title_red">Contact Us</h1>
<p>Any questions? Please contact us using our secure email form below. Or feel free to call us using our toll free phone number.<br />
Our representative will be happy to assist you!</p>
<?
if(isset($errors) && is_array($errors)) {
echo "<p>We were unable to send your request do to the following errors: </p>
<ul style='color:#B32317;'>";
foreach($errors as $error) {
echo "<li>".$error."</li>";
}
echo "</ul>";
} else if(isset($success) && $success == true) {
echo "<p style='color:#80AA70;'>Your request has been sent. Please allow 24-48 hours to receive a reply.
Thank you.</p>";
}
?>
<div style="border:1px solid #cccccc; padding:8px; margin:10px 0; overflow:hidden">
<form method="post" action="<?= $_SERVER['SCRIPT_NAME']; ?>">
<div class="dataBox" style="border-left:1px dotted #aaaaaa; padding:0 8px; margin-bottom:8px" valign="top">
<h3 class="memb_title_red" style="border-bottom:1px dotted #cccccc">Toll Free Number:<span style="color:#333333"> <?= $_SITE_PHONE; ?></span></h3>
<h3 class="memb_title_red" style="float:left">Hours:</h3>
<table cellspacing="5px" style="margin-bottom:10px">
<tr>
<td>Monday</td>
<td>24 Hours</td>
</tr>
<tr>
<td>Tuesday</td>
<td>24 Hours</td>
</tr>
<tr>
<td>Wednesday</td>
<td>24 Hours</td>
</tr>
<tr>
<td>Thursday</td>
<td>24 Hours</td>
</tr>
<tr>
<td>Friday</td>
<td>24 Hours</td>
</tr>
<tr>
<td>Saturday</td>
<td>24 Hours</td>
</tr>
<tr>
<td>Sunday</td>
<td>24 Hours</td>
</tr>
</table>
<p style="border-bottom:1px dotted #aaaaaa; padding-bottom:5px">During non-office hours, please use our email form.</p>
<h3 class="memb_title_red" style="margin-top:10px">Mailing Address:</h3>
<p style="font:bold 10pt/180% verdana;text-align:center"><?=$_SITE_ADDR;?></p>
<p style="font-style: italic">**Please note that we do not receive Money, Order Forms, or Applications at this address - they will be returned. All orders are only accepted <a href="http://www.americasgotfunding.com/#apply">online through our website</a>.</p>
</div>
<table class="tableform">
<tr>
<td>First Name:</td>
<td><input type="text" name="first" size="35" value="<?= ($_POST['first'] != '') ? $_POST['first'] : NULL; ?>" /></td>
</tr>
<tr>
<td>Last Name:</td>
<td><input type="text" name="last" size="35" value="<?= ($_POST['last'] != '') ? $_POST['last'] : NULL; ?>"/></td>
</tr>
<tr>
<td>Email Address:</td>
<td><input type="text" name="email" size="35" value="<?= ($_POST['email'] != '') ? $_POST['email'] : NULL; ?>"/></td>
</tr>
<? $subject = array('Personal Assistance',
'Business Funding',
'Education Funding',
'Real Estate Funding',
'Billing',
'Technical Support',
'Login Issue',
'Other'
);
?>
<tr>
<td>Subject:</td>
<td>
<select name="subject">
<option value="">Select one ...</option>
<?
foreach($subject as $text) {
$selected = ($_POST['subject'] == $text) ? ' selected' : '';
echo "<option value='$text' $selected>$text</option>";
}
?>
</select>
</td>
</tr>
<tr>
<td valign="top">Message:</td>
<td><textarea name="message" rows="6" style="margin-right:15px"><?= ($_POST['message'] != '') ? $_POST['message'] : NULL; ?></textarea></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" value="Send Mail" /></td>
</tr>
</table>
</form>
</div>
</div>
<div style="clear:both;"></div>
</div>
<!--INCLUDE FOOTER-->
<?php include('assets/includes/footer.php'); ?>