Example #1
0
* fichier source sans contrat de licence ecrit de la part de la SARL Ether Création est
* expressement interdite.
* Pour obtenir une licence, veuillez contacter la SARL Ether Création a l'adresse: contact@ethercreation.com
* ...........................................................................
* @package ec_ecopresto
* @copyright Copyright (c) 2010-2013 S.A.R.L Ether Création (http://www.ethercreation.com)
* @author Arthur R.
* @license Commercial license
*/
include dirname(__FILE__) . '/../../config/config.inc.php';
include dirname(__FILE__) . '/../../init.php';
include dirname(__FILE__) . '/class/importProduct.class.php';
include dirname(__FILE__) . '/class/reference.class.php';
include dirname(__FILE__) . '/class/catalog.class.php';
include dirname(__FILE__) . '/class/log.class.php';
$import = new importerProduct();
$catalog = new catalog();
if (Tools::getValue('ec_token') != $catalog->getInfoEco('ECO_TOKEN')) {
    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;
}
$time = time();
$etp = (int) Tools::getValue('etp');
$total = (int) Tools::getValue('total');
$typ = (int) Tools::getValue('typ');
$id_shop = $catalog->getInfoEco('ID_SHOP');
Example #2
0
* Toute utilisation, reproduction, modification ou distribution du present
* fichier source sans contrat de licence ecrit de la part de la SARL Ether Création est
* expressement interdite.
* Pour obtenir une licence, veuillez contacter la SARL Ether Création a l'adresse: contact@ethercreation.com
* ...........................................................................
* @package ec_ecopresto
* @copyright Copyright (c) 2010-2013 S.A.R.L Ether Création (http://www.ethercreation.com)
* @author Arthur R.
* @license Commercial license
*/
include dirname(__FILE__) . '/../../config/config.inc.php';
include dirname(__FILE__) . '/../../init.php';
include dirname(__FILE__) . '/class/importProduct.class.php';
include dirname(__FILE__) . '/class/reference.class.php';
include dirname(__FILE__) . '/class/catalog.class.php';
$import = new importerProduct();
$catalog = new catalog();
if (Tools::getValue('ec_token') != $catalog->getInfoEco('ECO_TOKEN')) {
    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;
}
$time = time();
$etp = (int) Tools::getValue('etp');
$total = (int) Tools::getValue('total');
$typ = (int) Tools::getValue('typ');
$id_shop = (int) Tools::getValue('ids');
Example #3
0
        $return = $catalog->GetFilecsv();
        echo $return;
        break;
    case 9:
        $return = $catalog->GetDereferencement();
        echo $return;
        break;
    case 10:
        $catalog->synchroManuelOrder(Tools::getValue('idc'), Tools::getValue('typ'));
        break;
    case 11:
        echo $catalog->SetDerefencement();
        break;
    case 12:
        include dirname(__FILE__) . '/class/importProduct.class.php';
        include dirname(__FILE__) . '/class/reference.class.php';
        $import = new importerProduct();
        $catalog->UpdateDereferencement(Tools::getValue('ref'));
        $reference = new importerReference(Tools::getValue('ref'));
        $import->deleteProduct($reference->id_product, Tools::getValue('ref'));
        $import->deleteProductShop();
        echo Tools::safeOutput(Tools::getValue('actu')) . ',' . Tools::safeOutput(Tools::getValue('tot'));
        break;
    case 13:
        include dirname(__FILE__) . '/class/importProduct.class.php';
        $import = new importerProduct();
        $import->deleteProductShop();
        break;
    default:
        break;
}