Loading More
You are currently viewing photos from your favorites
if($_REQUEST['send'] == "pass") {
if(empty($_REQUEST['email'])) {
$mess = "".showText("rm_empty")."";
remindform($mess);
} else {
$email = sql_safe($_REQUEST['email']);
$result = @mysql_query("SELECT * FROM pc_clients WHERE client_email='$email'");
if (!$result) { echo( "Error perforing query" . mysql_error() . "that error"); exit(); }
if (mysql_num_rows($result) == 0) {
remindform("".showText("rm_not_found")."");
} else {
$client = mysql_fetch_array($result);
$em = doSQL("pc_emails", "*", "WHERE email_id='3' ");
if(empty($em['email_from_email'])) {
$from_email = $site_setup['contact_email'];
} else {
$from_email = $em['email_from_email'];
}
if(empty($em['email_from_name'])) {
$from_name = $site_setup['website_name'];
} else {
$from_name = $em['email_from_name'];
}
$subject = "".$em['email_subject']."";
$to_email = $_REQUEST['client_email'];
$to_name = $_REQUEST['client_name'];
$message = $em['email_message'];
$message = str_replace("[URL]",$setup['url'], "$message");
$message = str_replace("[ACCESS_CODE]",$gal['gal_key'], "$message");
$message = str_replace("[WEBSITE_NAME]",$site_setup['website_name'], "$message");
$message = str_replace("[NAME]",$client['client_name'], "$message");
$message = str_replace("[EMAIL]",$client['client_email'], "$message");
$message = str_replace("[PASSWORD]",$client['client_pass'], "$message");
$subject = str_replace("[NAME]",$client['client_name'], "$subject");
$subject = str_replace("[WEBSITE_NAME]",$site_setup['website_name'], "$subject");
stripslashes($message);
stripslashes($subject);
sendEmail("".$client['client_email']."", "".$client['cleint_name']."", $from_email, $from_name, $subject, $message);
print "
";
}
}
} else {
remindform($mess);
}
function remindform($mess) {
global $tr;
?>
if(!empty($mess)) { print "$mess "; } ?>
if((trim($_SESSION['pc_admin_login']) == "1") AND ($_SESSION['pc_admin'] !== NULL ) AND($_SESSION['editText'] == "1")==true) { ?>
} ?>
} ?>
".showText("rm_sent")." ".showText("rm_home")." |
print showText("rm_title");?>
print showText("rm_text");?>
if((trim($_SESSION['pc_admin_login']) == "1") AND ($_SESSION['pc_admin'] !== NULL ) AND($_SESSION['editText'] == "1")==true) { ?>
Submit button: print showText("rm_submit");?>
These are possible messages when the form is submitted
If no email address entered: print showText("rm_empty");?>
Email address not found: print showText("rm_not_found");?>
Email sent message: print showText("rm_sent");?>
Return to login screen link: print showText("rm_home");?>