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/GXMainComponents/View/Boxes/boxes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/moncbefd/www.moneta.at/GXMainComponents/View/Boxes/boxes/categories.php
<?php
/* --------------------------------------------------------------
   categories.php 2019-10-14
   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 CategoriesMenuBoxThemeContentView $categoriesBox */
    $categoriesBox = MainFactory::create_object('CategoriesMenuBoxThemeContentView');
    $categoriesBox->set_categories_left_template();
    $categoriesBox->set_tree_depth(0);
    $categoriesBox->setCategoryId($categoryId);
    $readService = MainFactory::create(CategoryServiceFactory::class,
                                       StaticGXCoreLoader::getDatabaseQueryBuilder(),
                                       MainFactory::create(EnvCategoryServiceSettings::class),
                                       MainFactory::create('GMSEOBoost'))->createCategoryReadService();
    if ($readService->getCategoryIdsTree(new IdType((int)$categoryId))->count() > 1) {
        $this->set_content_data('HAS_SUBCATEGORIES', true);
        $categoriesBox->setCurrentCategoryId($categoryId);
    } elseif($categoryId > 0) { // 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());
        $this->set_content_data('HAS_SUBCATEGORIES', false);
    }
    
    $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 CategoriesMenuBoxThemeContentView $categoriesBox */
    $categoriesBox = MainFactory::create_object('CategoriesMenuBoxThemeContentView');
    $categoriesBox->set_categories_template();
    $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'));
    
    $readService = MainFactory::create(CategoryServiceFactory::class,
                                       StaticGXCoreLoader::getDatabaseQueryBuilder(),
                                       MainFactory::create(EnvCategoryServiceSettings::class),
                                       MainFactory::create('GMSEOBoost'))->createCategoryReadService();
    if ($readService->getCategoryIdsTree(new IdType((int)$categoryId))->count() > 1) {
        $this->set_content_data('HAS_SUBCATEGORIES', true);
    } else {
        $this->set_content_data('HAS_SUBCATEGORIES', false);
    }
    
    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