Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
MarselinoYogi authored Aug 29, 2024
1 parent 8368dca commit 4166b2f
Show file tree
Hide file tree
Showing 54 changed files with 78,923 additions and 0 deletions.
1,089 changes: 1,089 additions & 0 deletions about.html

Large diffs are not rendered by default.

874 changes: 874 additions & 0 deletions about2.html

Large diffs are not rendered by default.

984 changes: 984 additions & 0 deletions blog-left.html

Large diffs are not rendered by default.

745 changes: 745 additions & 0 deletions blog-post-left.html

Large diffs are not rendered by default.

745 changes: 745 additions & 0 deletions blog-post-right.html

Large diffs are not rendered by default.

985 changes: 985 additions & 0 deletions blog-right.html

Large diffs are not rendered by default.

695 changes: 695 additions & 0 deletions blog-single.html

Large diffs are not rendered by default.

930 changes: 930 additions & 0 deletions blog.html

Large diffs are not rendered by default.

655 changes: 655 additions & 0 deletions cart.html

Large diffs are not rendered by default.

766 changes: 766 additions & 0 deletions checkout.html

Large diffs are not rendered by default.

667 changes: 667 additions & 0 deletions contact.html

Large diffs are not rendered by default.

766 changes: 766 additions & 0 deletions contact2.html

Large diffs are not rendered by default.

672 changes: 672 additions & 0 deletions contact3.html

Large diffs are not rendered by default.

665 changes: 665 additions & 0 deletions contact4.html

Large diffs are not rendered by default.

1,061 changes: 1,061 additions & 0 deletions course-single.html

Large diffs are not rendered by default.

996 changes: 996 additions & 0 deletions course.html

Large diffs are not rendered by default.

790 changes: 790 additions & 0 deletions course2.html

Large diffs are not rendered by default.

771 changes: 771 additions & 0 deletions course3.html

Large diffs are not rendered by default.

761 changes: 761 additions & 0 deletions course4.html

Large diffs are not rendered by default.

794 changes: 794 additions & 0 deletions course5.html

Large diffs are not rendered by default.

783 changes: 783 additions & 0 deletions course6.html

Large diffs are not rendered by default.

555 changes: 555 additions & 0 deletions error.html

Large diffs are not rendered by default.

862 changes: 862 additions & 0 deletions events-style1.html

Large diffs are not rendered by default.

776 changes: 776 additions & 0 deletions events-style2.html

Large diffs are not rendered by default.

708 changes: 708 additions & 0 deletions events-style3.html

Large diffs are not rendered by default.

740 changes: 740 additions & 0 deletions faq.html

Large diffs are not rendered by default.

657 changes: 657 additions & 0 deletions gallery-style1.html

Large diffs are not rendered by default.

716 changes: 716 additions & 0 deletions gallery-style2.html

Large diffs are not rendered by default.

656 changes: 656 additions & 0 deletions gallery-style3.html

Large diffs are not rendered by default.

1,246 changes: 1,246 additions & 0 deletions index.html

Large diffs are not rendered by default.

946 changes: 946 additions & 0 deletions index10.html

Large diffs are not rendered by default.

1,474 changes: 1,474 additions & 0 deletions index11.html

Large diffs are not rendered by default.

1,532 changes: 1,532 additions & 0 deletions index12.html

Large diffs are not rendered by default.

1,101 changes: 1,101 additions & 0 deletions index13.html

Large diffs are not rendered by default.

1,032 changes: 1,032 additions & 0 deletions index14.html

Large diffs are not rendered by default.

1,155 changes: 1,155 additions & 0 deletions index15.html

Large diffs are not rendered by default.

1,337 changes: 1,337 additions & 0 deletions index2.html

Large diffs are not rendered by default.

1,025 changes: 1,025 additions & 0 deletions index3.html

Large diffs are not rendered by default.

1,216 changes: 1,216 additions & 0 deletions index4.html

Large diffs are not rendered by default.

1,046 changes: 1,046 additions & 0 deletions index5.html

Large diffs are not rendered by default.

1,227 changes: 1,227 additions & 0 deletions index6.html

Large diffs are not rendered by default.

1,167 changes: 1,167 additions & 0 deletions index7.html

Large diffs are not rendered by default.

1,551 changes: 1,551 additions & 0 deletions index8.html

Large diffs are not rendered by default.

1,116 changes: 1,116 additions & 0 deletions index9.html

Large diffs are not rendered by default.

581 changes: 581 additions & 0 deletions login.html

Large diffs are not rendered by default.

52 changes: 52 additions & 0 deletions mailer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?php
// Only process POST reqeusts.
if ($_SERVER["REQUEST_METHOD"] == "POST") {
// Get the form fields and remove whitespace.
$name = strip_tags(trim($_POST["name"]));
$name = str_replace(array("\r","\n"),array(" "," "),$name);
$email = filter_var(trim($_POST["email"]), FILTER_SANITIZE_EMAIL);
$phone = trim($_POST["phone"]);
$message = trim($_POST["message"]);

// Check that data was sent to the mailer.
if ( empty($name) OR empty($message) OR !filter_var($email, FILTER_VALIDATE_EMAIL)) {
// Set a 400 (bad request) response code and exit.
http_response_code(400);
echo "Oops! There was a problem with your submission. Please complete the form and try again.";
exit;
}

// Set the recipient email address.
// FIXME: Update this to your desired email address.
$recipient = "[email protected]";

// Set the email subject.
$subject = "New contact from $name";

// Build the email content.
$email_content = "Name: $name\n";
$email_content .= "Email: $email\n";
$email_content .= "Phone: $phone\n";
$email_content .= "Message:\n$message\n";

// Build the email headers.
$email_headers = "From: $name <$email>";

// Send the email.
if (mail($recipient, $subject, $email_content, $email_headers)) {
// Set a 200 (okay) response code.
http_response_code(200);
echo "Thank You! Your message has been sent.";
} else {
// Set a 500 (internal server error) response code.
http_response_code(500);
echo "Oops! Something went wrong and we couldn't send your message.";
}

} else {
// Not a POST request, set a 403 (forbidden) response code.
http_response_code(403);
echo "There was a problem with your submission, please try again.";
}

?>
617 changes: 617 additions & 0 deletions register.html

Large diffs are not rendered by default.

716 changes: 716 additions & 0 deletions shop-single.html

Large diffs are not rendered by default.

744 changes: 744 additions & 0 deletions shop.html

Large diffs are not rendered by default.

Loading

0 comments on commit 4166b2f

Please sign in to comment.