diff --git a/contact.php b/contact.php index c6b5706..3a1bd34 100644 --- a/contact.php +++ b/contact.php @@ -23,6 +23,8 @@ email)) { + if($md5email == md5($a['email'])) { $from=cleanify($_POST['from'])." <".cleanify($_POST['fromemail']).">"; $extra="Return-Path: $from\r\nFrom: $from\r\nReply-To: $from\r\n"; @@ -47,7 +50,7 @@ //and strip the slashes from the message $message=stripslashes($_POST['message']); - mail("$r->firstname $r->lastname <$r->email>",$subject,$message,$extra); + mail("{$u['firstname']} {$u['lastname']} <{$a['email']}>",$subject,$message,$extra); echo happy(i18n("Contact email successfully sent")); } else { @@ -62,15 +65,6 @@ echo error(i18n("All fields are required")); } -?> - -"; echo "
"; @@ -78,23 +72,37 @@ function tochange() { echo "\n"; echo ""; echo ""; - echo ""; echo "";
".i18n("To").":
".i18n("Your Name").":