first commit

This commit is contained in:
2024-10-25 14:16:28 +02:00
commit 925276dbb2
33795 changed files with 4780077 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
<?php
require_once (dirname(__FILE__) . '/../../x13allegro.php');
class x13allegroAjaxModuleFrontController extends ModuleFrontController
{
public function postProcess()
{
if (Tools::isSubmit('getAllegroAuctionLink'))
{
if ($auction = XAllegroAuction::getAuctionByProduct(Tools::getValue('id_product'), Tools::getValue('id_product_attribute'))) {
die(json_encode(array(
'result' => true,
'href' => 'https://allegro.pl/show_item.php?item=' . $auction['id_auction']
)));
}
else {
die(json_encode(array('result' => false)));
}
}
}
}

View File

@@ -0,0 +1,11 @@
<?php
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;