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/source/boxes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/moncbefd/www.moneta.at/templates/Honeygrid/source/boxes/categories.php
<?php
/* --------------------------------------------------------------
   categories.php 2019-08-12
   Gambio GmbH
   http://www.gambio.de
   Copyright (c) 2019 Gambio GmbH
   Released under the GNU General Public License (Version 2)
   [http://www.gnu.org/licenses/gpl-2.0.html]
   --------------------------------------------------------------
*/

$categoryId = $this->category_id;
if($this->category_id === null && is_string($this->c_path))
{
	$categoryId = array_pop(explode('_', $this->c_path));
}

if(gm_get_conf('SHOW_SUBCATEGORIES') === 'true')
{
	/** @var CategoriesMenuBoxContentView $categoriesBox */
	$categoriesBox = MainFactory::create_object('CategoriesMenuBoxContentView');
	$categoriesBox->set_content_template('boxes/box_categories_left.html');
	$categoriesBox->set_tree_depth(0);
	$categoriesBox->setCategoryId($categoryId);
    
    $serviceFactory = MainFactory::create(CategoryServiceFactory::class, StaticGXCoreLoader::getDatabaseQueryBuilder(),
        MainFactory::create(EnvCategoryServiceSettings::class), MainFactory::create('GMSEOBoost'));
    $readService    = $serviceFactory->createCategoryReadService();
    if ((int)$categoryId === 0 || $readService->getCategoryIdsTree(new IdType((int)$categoryId))->count() > 1) {
        $categoriesBox->setCurrentCategoryId($categoryId);
    } else { // When the current category does not have any subcategories, the subcategories of the parent category are displayed
        $category = $readService->getCategoryById(new IdType($categoryId));
        $categoriesBox->setCurrentCategoryId($category->getParentId());
    }
	
	$categoriesBox->setCPath($this->c_path);
	$categoriesBoxHtml = $categoriesBox->get_html();

	$boxPosition = $GLOBALS['coo_template_control']->get_menubox_position('categories');
	$this->set_content_data($boxPosition, $categoriesBoxHtml);
}
elseif(gm_get_conf('CAT_MENU_LEFT') === 'true')
{
	/** @var CategoriesMenuBoxContentView $categoriesBox */
	$categoriesBox = MainFactory::create_object('CategoriesMenuBoxContentView');
	$categoriesBox->set_content_template('boxes/box_categories.html');
	$categoriesBox->set_tree_depth(gm_get_conf('CATEGORY_UNFOLD_DEFAULT_LEVEL'));
	$categoriesBox->setCategoryId($categoryId);
	$categoriesBox->setCurrentCategoryId(0);
	$categoriesBox->setCPath($this->c_path);
	$categoriesBox->setUnfoldLevel(gm_get_conf('CATEGORY_UNFOLD_LEVEL'));
	
	if(gm_get_conf('CATEGORY_ACCORDION_EFFECT') === 'true')
	{
		$categoriesBox->activateAccordionEffect();
	}
	else
	{
		$categoriesBox->deactivateAccordionEffect();
	}

	if(gm_get_conf('CATEGORY_DISPLAY_SHOW_ALL_LINK') === 'true')
	{
		$categoriesBox->activateDisplayShowAllLink();
	}
	else
	{
		$categoriesBox->deactivateDisplayShowAllLink();
	}
	
	$categoriesBoxHtml = $categoriesBox->get_html();

	$boxPosition = $GLOBALS['coo_template_control']->get_menubox_position('categories');
	$this->set_content_data($boxPosition, $categoriesBoxHtml);
}

Youez - 2016 - github.com/yon3zu
LinuXploit