JEMBOT MAWOT Bypass Shell
<?php
/**
* Sell Tickets module for Prestashop by Avellana Digital
*
* @author Avellana Digital SL
* @copyright Copyright (c) 2019 Avellana Digital - www.avellanadigital.com
* @license Commercial license
* @version 4.0.0
*/
abstract class Module extends ModuleCore
{
public static function preCall($module_name)
{
if (version_compare(_PS_VERSION_, '1.7.0') >= 0) {
return parent::preCall($module_name);
} else {
if (Module::isInstalled('bankwire') && $module_name == 'bankwire') {
if (Module::isInstalled('selltickets')) {
$context = Context::getContext();
require_once _PS_MODULE_DIR_.'selltickets/selltickets.php';
$selltickets = new SellTickets();
foreach ($context->cart->getProducts() as $product) {
$pd = ProductDownload::getIdFromIdProduct((int)($product['id_product']));
$ticket = $selltickets->getTicketByProduct((int)($product['id_product']));
if (($pd && Validate::isUnsignedInt($pd)) && !$ticket['bankwire']) {
return false;
}
}
}
}
}
return true;
}
}
xxxxx1.0, XXX xxxx