JEMBOT MAWOT Bypass Shell
<?php
/**
* Mollie https://www.mollie.nl
*
* @author Mollie B.V. <info@mollie.nl>
* @copyright Mollie B.V.
* @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md
*
* @see https://github.com/mollie/PrestaShop
*/
namespace Mollie\Service;
if (!defined('_PS_VERSION_')) {
exit;
}
class OrderStateImageService
{
/**
* @param int $orderStateId
*/
public function createOrderStateLogo($orderStateId)
{
$source = _PS_MODULE_DIR_ . 'mollie/views/img/logo_small.png';
$destination = _PS_ORDER_STATE_IMG_DIR_ . $orderStateId . '.gif';
@copy($source, $destination);
}
/**
* @param int $orderStateId
*/
public function deleteOrderStateLogo($orderStateId)
{
$destination = _PS_ORDER_STATE_IMG_DIR_ . $orderStateId . '.gif';
@unlink($destination);
}
/**
* @param int $orderStateId
*/
public function createTemporaryOrderStateLogo($orderStateId)
{
$source = _PS_MODULE_DIR_ . 'mollie/views/img/logo_small.png';
$destination = _PS_TMP_IMG_DIR_ . 'order_state_mini_' . $orderStateId . '_1.gif';
@copy($source, $destination);
}
/**
* @param int $orderStateId
*/
public function deleteTemporaryOrderStateLogo($orderStateId)
{
$destination = _PS_TMP_IMG_DIR_ . 'order_state_mini_' . $orderStateId . '_1.gif';
@unlink($destination);
}
}
xxxxx1.0, XXX xxxx