diff --git a/README.md b/README.md index cc466f8..7de294b 100644 --- a/README.md +++ b/README.md @@ -3,24 +3,4 @@ Simple bootstrap site for my personal portfolio website. ![Screenshot](./screenshot.png) -Check it out live [here](https://jrtechs.me) - -## Installation notes - -If you wish to run a live instance of this site, -you need apache installed and php configured to -send email. - -To install dependency for sending mail on a ubuntu server: -``` -sudo apt-get install sendmail -``` - -On the contact form I use google's - [reCAPTCHA](https://developers.google.com/recaptcha/) api. If you wish - to use reCAPTCHA on your website, you need to sign up for an account on google's website. -The secret for the captcha goes in a text file above the root -directory for this website called "captchaSecret.txt". The destination -email address is stored above the root directory in a file called "email.txt". - -https://www.google.com/recaptcha/admin \ No newline at end of file +Check it out live [here](https://jrtechs.me) \ No newline at end of file diff --git a/contactform.php b/contactform.php deleted file mode 100644 index 225bf52..0000000 --- a/contactform.php +++ /dev/null @@ -1,73 +0,0 @@ - $secret, - 'response' => $_POST["g-recaptcha-response"] - ); - $options = array( - 'http' => array ( - 'method' => 'POST', - 'content' => http_build_query($data) - ) - ); - $context = stream_context_create($options); - $verify = file_get_contents($url, false, $context); - $captcha_success=json_decode($verify); - - if ($captcha_success->success==false) - { - echo "

You are a bot! Go away!

"; - } - else if ($captcha_success->success==true) - { - $fromName = stripslashes($_POST["name"]); - $fromEmail = stripslashes($_POST["email"]); - $subject = "Jrtechs.me Form Submission - " . $fromEmail; - $emailMessage = stripslashes($_POST["message"]); - $message = "Message from contact form on jrtechs.me\nName: - $fromName \nEmail:\n$fromEmail \nMessage:\n$emailMessage"; - $headers = "From: $fromEmail"; - $response = $_POST[g-recaptcha-response]; - - - mail($toEmail, $subject, $message, $headers); - header('Location:https://jrtechs.me/messageSent.html'); - } - } - - } -} \ No newline at end of file diff --git a/index.html b/index.html index 8b43db7..a882d32 100755 --- a/index.html +++ b/index.html @@ -336,16 +336,16 @@
-
+
- +
- +
@@ -354,6 +354,7 @@
+