0) die ("Sorry, you cannot post web addresses with http:// in them. Please try again."); return $newval; } } if (!isset($_COOKIE['formxcpt'])) { $rndfrmval = substr(md5(rand(000000,999999)), 0, 8); setcookie ("formxcpt", $rndfrmval, "0", "/", "", 0); } else $rndfrmval = $_COOKIE['formxcpt']; ?>
Sorry, but we did not receive all of your information. Please go back and try again.
"); else { // Check for domain emails $fromemailcheck = explode("@", $from_email); $toemailcheck = explode("@", $to_email); if (empty($fromemailcheck[1]) OR empty($toemailcheck[1])) die ("Sorry, but your email address was not formed correctly. Please try again.
"); else if (substr_count($varrow[2], $fromemailcheck[1]) > 0 OR substr_count($varrow[2], $toemailcheck[1]) > 0) die ("Sorry, but messages cannot be sent from this domain. Please try again.
"); else { if ($item) { $itemquery = "SELECT Item FROM " .$DB_Prefix ."_items WHERE ID='$item'"; $itemresult = mysql_query($itemquery, $dblink) or die ("Unable to select your item. Try again later."); $itemrow = mysql_fetch_row($itemresult); $urlname = stripslashes($itemrow[0]); $urladdress = $urldir ."/" .$Catalog_Page ."?item=" .$item; } else if ($page) { $emailpage = str_replace(".$pageext", "", $page); $pagequery = "SELECT PageTitle FROM " .$DB_Prefix ."_pages WHERE PageName='$emailpage'"; if ($dir) $pagequery .= " AND PageType='additional'"; $pageresult = mysql_query($pagequery, $dblink) or die ("Unable to select your page. Try again later."); $pagerow = mysql_fetch_row($pageresult); $urlname = stripslashes($pagerow[0]); if ($dir) $urladdress = $urldir ."/" .$dir ."/" .$page; else $urladdress = $urldir ."/" .$page; } if ($messg) $addl = "\r\n\r\n$fromname also included this message:\r\n$messg"; else $addl = ""; mail($to_email, "Check This Out", "Hello$entry. $strfromname was viewing $Site_Name and thought you would be interested in this page: $urlname $urladdress$addl", "From: $from_email\r\nReply-To: $from_email"); if ($_POST['copy'] == "Yes") { mail("$fromemail", "Check This Out (copy)", "The following message was sent to $to_name$toemail: ------------------------------------------- $strfromname was viewing $Site_Name and thought you would be interested in this item: $urlname $urladdress$addl", "From: $from_email\r\nReply-To: $from_email"); } echo "You just sent the following page information to $to_name$toemail:
"; echo "";
echo "$urlname
$urladdress
"; echo "Close Window
"; } } } else { ?>