First commit
This commit is contained in:
37
themes/alpha-church/exampleSite/static/contact_mail.php
Normal file
37
themes/alpha-church/exampleSite/static/contact_mail.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
# Edit the following 5 variables to fit your needs!
|
||||
|
||||
# Recipient of the Mail:
|
||||
$to = "admin@example.org";
|
||||
# The "from" address of the Mail. This should match the domain of the server:
|
||||
$from = "website@example.org";
|
||||
# Forward Users to this Page if the mail is successfully sent:
|
||||
$confirm_page = "/contact_thanks";
|
||||
# If something goes wrong and sending the mail fails, forward users to:
|
||||
$error_page = "/404.html";
|
||||
# Specify the Subject of the Mail:
|
||||
$subject = "Feedback from example.org";
|
||||
|
||||
|
||||
if (isset($_POST['send'])) {
|
||||
$message = "Name: " . $_POST['name'] . "\r\n\r\n";
|
||||
$message .= "Email: " . $_POST['email'] . "\r\n\r\n";
|
||||
$message .= "Message: " . $_POST['message'] . "\r\n\r\n";
|
||||
|
||||
$headers = "From: " . $from . "\r\n";
|
||||
$headers .= "Content-Type: text/plain; charset: utf-8";
|
||||
$email_ok = filter_input(INPUT_POST, 'email', FILTER_VALIDATE_EMAIL);
|
||||
if ($email_ok) {
|
||||
$headers .= "\r\nReply-To: $email";
|
||||
}
|
||||
|
||||
$success = mail($to, $subject, $message, $headers);
|
||||
|
||||
if (isset($success) && $success){
|
||||
header("Location: ".$confirm_page);
|
||||
exit;
|
||||
}
|
||||
}
|
||||
header("Location: ".$error_page);
|
||||
exit;
|
||||
?>
|
||||
3
themes/alpha-church/exampleSite/static/example.css
Normal file
3
themes/alpha-church/exampleSite/static/example.css
Normal file
@@ -0,0 +1,3 @@
|
||||
.icon.major.accent2 {
|
||||
background: #0000FF;
|
||||
}
|
||||
BIN
themes/alpha-church/exampleSite/static/img/banner.jpg
Normal file
BIN
themes/alpha-church/exampleSite/static/img/banner.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 279 KiB |
BIN
themes/alpha-church/exampleSite/static/img/freely-10057.jpg
Normal file
BIN
themes/alpha-church/exampleSite/static/img/freely-10057.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 96 KiB |
BIN
themes/alpha-church/exampleSite/static/img/freely-20445.jpg
Normal file
BIN
themes/alpha-church/exampleSite/static/img/freely-20445.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 197 KiB |
BIN
themes/alpha-church/exampleSite/static/img/freely-26905.jpg
Normal file
BIN
themes/alpha-church/exampleSite/static/img/freely-26905.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 64 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 45 KiB |
BIN
themes/alpha-church/exampleSite/static/img/podcast-cover.jpg
Normal file
BIN
themes/alpha-church/exampleSite/static/img/podcast-cover.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1018 KiB |
Reference in New Issue
Block a user