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 // set a session cookie indicating that the terminal, (with barcode scanner) is being used
require './inc/include.php';
/*
INSERT INTO `stoughton_books`.`dt_barcode` (
`db_barcode` ,
`db_type` ,
`db_active` ,
`db_added` ,
`db_member`
)
VALUES (
'802072071274', 'x', '1', '2009-11-27 07:54:08', '70'
), (
'802072065594', 'x', '1', '2009-11-27 07:54:08', '140'
);
*/
$VARIABLE['menu_right'] = '';
$VARIABLE['javascript'] .= <<<BLOCK
function checkbarcode(bc, op) {
var m = MM_findObj('bc');
m.value = bc;
var m = MM_findObj('op');
m.value = op;
document.f.submit();
}
BLOCK;
if ($isPost) {
Post1_ValidateBarcode();
}
echo page_header('Welcome');
echo <<<BLOCK
<h2>Welcome</h2>
<br><br>
<p><font size="+2">This computer is used for checking out library books. Please use the
handheld scanner to scan the '<strong>Done</strong>' or '<strong>Cancel</strong>' barcode to continue.</font></p>
<br><br><br>
<p>If the barcode scanner does not appear to work, make sure it is connected to the back of the computer.</p>
<form method="post" action="http://$BASE_URL" name="f">
<input type="hidden" id="bc" name="bc" value="">
<input type="hidden" id="op" name="op" value="">
</form>
<br><br><br><br><br><br><br><br>
BLOCK;
echo page_footer();
function Post1_ValidateBarcode() {
global $DATABASE, $HOST, $VALIDATION;
$DATABASE->Open();
$bc = isset($_POST['bc']) ? $_POST['bc'] : '';
$op = isset($_POST['op']) ? intval($_POST['op']) : -9876;
$DATA = $DATABASE->Lookup("select * from dt_barcode where db_active='1' and db_type='x' and db_barcode=$bc and db_member=$op");
$DATABASE->Close();
if ($DATA['__existing'] && ($op == BARCODE_CANCEL || $op == BARCODE_DONE)) {
// authorization cookie:
setcookie('auth', $VALIDATION);
header("Location: http://$HOST/terminal.php");
exit;
}
}
?>