<?php

include dirname(__FILE__) . '/../../config/config.inc.php';
include dirname(__FILE__) . '/blockpxplay.php';
if (substr(Tools::encrypt('blockpxplay/index'), 0, 10) != Tools::getValue('token') || !Module::isInstalled('blockpxplay')) {
    die('Bad token');
}
$blockpxplay = new blockpxplay();
echo $blockpxplay->indexAttribute();
<?php

include dirname(__FILE__) . '/../../config/config.inc.php';
include dirname(__FILE__) . '/blockpxplay.php';
if (substr(Tools::encrypt('blockpxplay/index'), 0, 10) != Tools::getValue('token') || !Module::isInstalled('blockpxplay')) {
    die('Bad token');
}
if (!Tools::getValue('ajax')) {
    // Case of nothing to do but showing a message (1)
    if (Tools::getValue('return_message') !== false) {
        echo '1';
        die;
    }
    if (Tools::usingSecureMode()) {
        $domain = Tools::getShopDomainSsl(true);
    } else {
        $domain = Tools::getShopDomain(true);
    }
    // Return a content without waiting the end of index execution
    header('Location: ' . $domain . __PS_BASE_URI__ . 'modules/blockpxplay/blockpxplay-price-indexer.php?token=' . Tools::getValue('token') . '&return_message=' . (int) Tools::getValue('cursor'));
    flush();
}
if (Tools::getValue('full')) {
    echo blockpxplay::fullPricesIndexProcess((int) Tools::getValue('cursor'), (int) Tools::getValue('ajax'), true);
} else {
    echo blockpxplay::pricesIndexProcess((int) Tools::getValue('cursor'), (int) Tools::getValue('ajax'));
}
<?php

include dirname(__FILE__) . '/../../config/config.inc.php';
include dirname(__FILE__) . '/blockpxplay.php';
if (substr(Tools::encrypt('blockpxplay/index'), 0, 10) != Tools::getValue('token') || !Module::isInstalled('blockpxplay')) {
    die('Bad token');
}
$blockpxplay = new blockpxplay();
$cursor = Tools::jsonDecode(Tools::getValue('cursor', '{}'), true);
echo $blockpxplay->indexUrl($cursor, (int) Tools::getValue('truncate'));
Esempio n. 4
0
/*
* 2007-2014 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 <*****@*****.**>
*  @copyright  2007-2014 PrestaShop SA
*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registred Trademark & Property of PrestaShop SA
*/
include dirname(__FILE__) . '/../../config/config.inc.php';
include dirname(__FILE__) . '/../../init.php';
include dirname(__FILE__) . '/blockpxplay.php';
Context::getContext()->controller->php_self = 'category';
$blockpxplay = new blockpxplay();
echo $blockpxplay->ajaxCall();