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.categories.php
<?php
/* --------------------------------------------------------------
   function.categories.php 2015-10-15 mb
   Gambio GmbH
   http://www.gambio.de
   Copyright (c) 2015 Gambio GmbH
   Released under the GNU General Public License (Version 2)
   [http://www.gnu.org/licenses/gpl-2.0.html]
   --------------------------------------------------------------
*/
function smarty_function_categories($params, &$smarty)
{
	$arrResult['categories'] = getCategories();
	
	$smarty->assign($params['out'], $arrResult);
}

function getCategories()
{
	$arrTemp = array();
	
	if(GROUP_CHECK == 'true')
	{
		$groupCheck = " and c.group_permission_" . (int)$_SESSION['customers_status']['customers_status_id'] . " = 1 ";
	}
	
	$strSql = "select * from categories c, categories_description cd
		where c.categories_id = cd.categories_id
		and c.parent_id = 0
		and c.categories_status = 1
		" . $groupCheck . "
		and cd.language_id = " . $_SESSION['languages_id'] . "
		order by c.sort_order";
	$result         = xtc_db_query($strSql);
	while ($item = xtc_db_fetch_array($result))
	{
		$arrTemp[] = $item;
	};
	return $arrTemp;
}

Youez - 2016 - github.com/yon3zu
LinuXploit