Beispiel #1
0
* 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 '../../config/settings.inc.php';
include '../../config/config.inc.php';
include dirname(__FILE__) . '/class/download.class.php';
include dirname(__FILE__) . '/class/catalog.class.php';
include dirname(__FILE__) . '/class/reference.class.php';
$download = new DownloadBinaryFile();
$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;
}
$stockD = $catalog->getInfoEco('ECO_URL_STOCK') . $catalog->tabConfig['ID_ECOPRESTO'];
$stockL = 'files/stock.xml';
if ($download->load($stockD) == true) {
    $download->saveTo($stockL);
    if (($handle = fopen($stockL, 'r')) !== false) {
        $etat = $catalog->updateMAJStock();
        while (($data = fgetcsv($handle, 10000, ';')) !== false) {
Beispiel #2
0
* 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 '../../config/settings.inc.php';
include '../../config/config.inc.php';
include dirname(__FILE__) . '/class/download.class.php';
include dirname(__FILE__) . '/class/catalog.class.php';
include dirname(__FILE__) . '/class/reference.class.php';
$download = new DownloadBinaryFile();
$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;
}
$trackingD = $catalog->getInfoEco('ECO_URL_TRACKING') . $catalog->tabConfig['ID_ECOPRESTO'];
$trackingL = 'files/tracking.xml';
if ($download->load($trackingD) == true) {
    $download->saveTo($trackingL);
    if (($handle = fopen($trackingL, 'r')) !== false) {
        while (($data = fgetcsv($handle, 10000, ';')) !== false) {
            $ne = 0;
Beispiel #3
0
 * concedee par la societe Ether Création
 * 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
 */
require dirname(__FILE__) . '/../../config/config.inc.php';
require dirname(__FILE__) . '/../../init.php';
require 'class/catalog.class.php';
$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;
}
switch ((int) Tools::getValue('majsel')) {
    case 1:
        $catalog->setSelectProduct(Tools::getValue('ref'), Tools::getValue('etp'));
        echo Tools::safeOutput(Tools::getValue('tot')) . ',' . Tools::safeOutput(Tools::getValue('actu')) . ',' . Tools::safeOutput(count($catalog->tabSelectProduct));
        break;
    case 2:
        $catalog->updateCategory(Tools::getValue('rel'), Tools::getValue('cat'));