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
403WebShell
403Webshell
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/hopeinstoughton_books/_oldsite/addbarcode.php
<?php

	require './inc/include.php';
	
	$DATABASE->Open();
	
	if ($isPost) {
		$scanned = isset($_POST['scanned']) ?  $_POST['scanned'] : '';
		$id = isset($_POST['id']) ? intval($_POST['id']) : 0;
		Post1_AttachBarcode($id, $scanned);
	}
	$FIELDDEFS1 = array('id' => array('opt' => INP_BOOKLIST, 'lbl' => '&Member List', 'ht' => 18, 'wd' => 480));
	$errcount = ifp_PrepareData($DATA, '', '', $FIELDDEFS1);
	$text = ifp_GeneratePage($FIELDDEFS1);
	$DATABASE->Close();

function __ibp_processmember(&$ITEM, &$param) {
	$surname = ip_quote(strtoupper($ITEM['bm_surname']));
	$firstname = ip_quote($ITEM['bm_firstname']);
	if ($firstname != '') $surname .= ", $firstname";
	$param[$ITEM['bm_id']] = $surname;
}

function ibp_CreateMemberlist() {
		global $DATABASE;
		$sql = <<<BLOCK
select bm_id,bm_surname,bm_firstname from dt_member 
 where bm_id <> -2
 order by bm_surname,bm_firstname
BLOCK;
		$result = $DATABASE->Query($sql, '__ibp_processmember', array());
		DatabaseError();
		return $result;
}
		
function user_selectbook($fieldname, $options, $width, $height) {
	global $VARIABLE;
	$books = ibp_CreateMemberlist();
	$booklist = '';
	$value = isset($VARIABLE[$fieldname]) ? $VARIABLE[$fieldname] : '';
	foreach($books as $id => $data) {
		$key = $id;
		$sel = ($value == $key) ? ' selected' : '';
		$booklist .= "\n<option value=\"$key\"$sel>$data</option>";
	}
	if (!$height) $height = 18;

	return "<tr><td><select name=\"$fieldname\" id=\"$fieldname\" style=\"width:$width\" size=\"$height\">$booklist</select></td></tr>";
}

// Attach a new (or existing) barcode to a member
function Post1_AttachBarcode($id, $scanned) {
	global $DATABASE, $HOST;
	$dbarcode = $DATABASE->formatString($scanned);
	$DATA = $DATABASE->Lookup("select * from dt_barcode where db_barcode=$dbarcode", 'dt_barcode');
	DatabaseError();
	if (!$DATA['__existing']) {
		$DATA['db_barcode'] = $scanned;
	}
	$DATA['db_active'] = 1;
	$DATA['db_added'] = gmdate('Y-m-d H:i:s');
	$DATA['db_type'] = 'm';
	$DATA['db_member'] = $id;
	$DATABASE->SaveRecord($DATA);
	$DATABASE->Close();
	header("Location: http://$HOST/scanbooks.php?id=$id");
	exit;
}
	
	$barcode = isset($_GET['id']) ? $_GET['id'] : '';
	$dbar = ip_quote($barcode);

$VARIABLE['javascript'] .= <<<BLOCK

function keydown(e) {
	var key = e? e.which: window.event.keyCode;
	if (key == 32) {
		document.f.submit();
		return false;
	}
	return true;
}

document.onkeypress = keydown;

BLOCK;
	
	echo page_header('New Membership Card');
echo <<<BLOCK
<h2>New Membership Card</h2>

<h3>Step 1a of 3: New Card Scanned</h3>

<p>You scanned the barcode "$dbar" -- there is no Member associated with this barcode. Please select the member from the list below</p>
<form method="post" action="http://$THIS_URL" name="f">
<input type=hidden name="scanned" value="$dbar">
<table border="0">
$text
<tr><td align="right"><input type="hidden" name="pg" value="2"><input type="submit" value="   this is me   "></td></tr>
</table></form>
<script type="text/javascript">
document.f.id.focus();
</script>
<p>Type in the first letter of your surname, then use the Up and Down Arrow keys.  Press the &lt;Enter&gt; key when your name is highlighted.</p>
BLOCK;

	echo page_footer();
?>

Youez - 2016 - github.com/yon3zu
LinuXploit