Warning: chmod(): Operation not permitted in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8 [0] in function chmod in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8 [1] in function include_once in /var/www/hopeinstoughton_www/wp-settings.php on line 560 [2] in function require_once in /var/www/hopeinstoughton_www/wp-config.php on line 85 [3] in function require_once in /var/www/hopeinstoughton_www/wp-load.php on line 50 [4] in function require_once in /var/www/hopeinstoughton_www/wp-blog-header.php on line 13 [5] in function require in /var/www/hopeinstoughton_www/index.php on line 17
| Server IP : 94.177.8.99 / Your IP : 216.73.217.165 Web Server : Apache/2.4.58 (Ubuntu) System : Linux aries 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/hopeinstoughton_books/_oldsite/ |
Upload File : |
<?php
require './inc/include.php';
include "$BASE/inc/inc.smtp.php";
$FIELDDEFS1 = array(
'name' => array('opt' => INP_STRING, 'lbl' => 'Your &Name', 'sz' => 255, 'wd' => 55),
'email' => array('opt' => INP_STRING, 'lbl' => 'Your &Email', 'sz' => 255, 'wd' => 55),
'message' => array('opt' => INP_TEXTAREA, 'lbl' => '&Message', 'wd' => 52)
);
$fn = isset($_GET['fn']) ? intval($_GET['fn']) : 0;
$errcount = ifp_PrepareData($DATA, '', '', $FIELDDEFS1);
if ($isPost) Post1_SendEmail();
if ($fn == 1) Page2_Thankyou();
if ($fn == 12) Page2_Thankyou12();
$text = ifp_GeneratePage($FIELDDEFS1);
echo page_header('Contact Us');
echo <<<BLOCK
<h2>Contact Us</h2>
<p>There are several ways to contact us:</p>
<form method="post" name="f">
<dl class="icons">
<dt><img src="/img/icon_phone.png" alt="Phone" width="36" height="36"/></dt>
<dd>+1 508 265 3127 (Eastern)</dd>
<dt><img src="/img/icon_email.png" alt="email" width="36" height="36"/></dt>
<dd><script type="text/javascript"> antispam('hopeinstoughton.org', 'books')</script></dd>
<dt><img src="/img/icon_phone.png" alt="Online" width="36" height="36"/></dt>
<dd><table border="0">
$text
<tr><td align="right"><input type="submit" value=" send message to us "></td></tr>
</table></dd>
</dl></form>
<p>This is not a 24-hour service - Please do not call between 11pm and 5am.
<noscript> You will need to enable Javascript to view email addresses on this site.
</noscript></p>
<br><br><br><br><br><br><br><br><br><br>
BLOCK;
echo page_footer();
function Post1_SendEmail() {
global $HOST, $VARIABLE;
$body = wordwrap($VARIABLE['message']);
$body = <<<BLOCK
Name: {$VARIABLE['name']}
Email: {$VARIABLE['email']}
Message:
$body
BLOCK;
$email = array('subject' => 'books website: contact',
'from' => ADMIN_EMAIL,
'to' => 'Books <' . ADMIN_EMAIL . '>',
'body' => $body);
$error = isp_SendEmail($email);
if ($error == '') {
header("Location: http://$HOST/contact.php?fn=1");
exit;
}
$VARIABLE['name.ERR'] = $error;
}
function Page2_Thankyou() {
echo page_header('Contact Us');
echo <<<BLOCK
<h2>Contact Us</h2>
<p>Thank you for your comments. If you have provided us with an email address, we will
get back to you as soon as possible. To ensure you receive a response, please add
<b>books@hopeinstoughton.org</b> to your Address Book, or Whitelist.</p>
<br><br><br><br><br><br><br><br><br><br>
BLOCK;
echo page_footer();
exit;
}
function Page2_Thankyou12() {
echo page_header('Request Book');
echo <<<BLOCK
<h2>Request Book</h2>
<p>Thank you for your request. We aim to get back to you as soon as possible. To
ensure you receive a response, please add <b>books@hopeinstoughton.org</b> to your
Address Book, or Whitelist.</p>
<br><br><br><br><br><br><br><br><br><br>
BLOCK;
echo page_footer();
exit;
}
?>