save last migration changes

This commit is contained in:
root 2016-12-27 16:57:51 +01:00
parent 78fefae535
commit 6a1c7bb6d2
14 changed files with 18 additions and 4 deletions

1
.gitignore vendored
View File

@ -104,6 +104,7 @@ themes/site/img/slider/*
!modules/ant_export_privatesales_newsletter/mails/*
modules/__MACOSX/*
adm.php
modules/atos/logs/antadis.log
##PERSO
test.php

View File

@ -31,7 +31,7 @@ if (!defined('_PS_MODE_DEV_'))
'88.120.248.124',
'80.13.158.176',
// '90.63.178.63',
'88.163.22.99'
// '88.163.22.99'
);
if(in_array($_SERVER['REMOTE_ADDR'], $authorized_ip))
{

View File

@ -493,6 +493,19 @@ class Atos extends PaymentModule
' currency_code='.$currency_num.
' pathfile="'.dirname(__FILE__).'/pathfile" '.$return.$cancel.$auto.$ip.$redirect.$custom_tpl;
$ant_params = array(
'cart_id' => (isset($cart) && isset($cart->id))?$cart->id:' no cart',
'currency_num' => $currency_num,
'normal_return_url' => $return,
'automatic_response_url' => $auto,
'customer_ip_address' => $ip,
'atos_redirect' => $redirect,
'parm' => $parm,
);
file_put_contents(dirname(__FILE__).'/logs/antadis.log', PHP_EOL.'atos.php (getAtosForm) ======================='.PHP_EOL, FILE_APPEND);
file_put_contents(dirname(__FILE__).'/logs/antadis.log', print_r($ant_params, true), FILE_APPEND);
$is_win = (Tools::strtoupper(Tools::substr(PHP_OS, 0, 3)) === 'WIN');
if (!$result = exec($this->bin_dir.'request'.(((int)$is_win === 1) ? '.exe' : '').' '.$parm))
return $this->l('Atos error: can\'t execute binary');

View File

@ -1 +0,0 @@
request_64b_2_prefere

BIN
modules/atos/bin/request Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -43,7 +43,7 @@ if (!defined('K_TCPDF_EXTERNAL_CONFIG')) {
$_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr(str_replace('\\\\', '\\', $_SERVER['PATH_TRANSLATED']), 0, 0-strlen($_SERVER['PHP_SELF'])));
} else {
// define here your DOCUMENT_ROOT path if the previous fails
$_SERVER['DOCUMENT_ROOT'] = '/var/www';
$_SERVER['DOCUMENT_ROOT'] = '/home/www';
}
}

View File

@ -41,7 +41,7 @@ if (!defined('K_TCPDF_EXTERNAL_CONFIG')) {
$_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr(str_replace('\\\\', '\\', $_SERVER['PATH_TRANSLATED']), 0, 0-strlen($_SERVER['PHP_SELF'])));
} else {
// define here your DOCUMENT_ROOT path if the previous fails
$_SERVER['DOCUMENT_ROOT'] = '/var/www';
$_SERVER['DOCUMENT_ROOT'] = '/home/www';
}
}

View File

@ -37,7 +37,7 @@ if ((!isset($_SERVER['DOCUMENT_ROOT'])) OR (empty($_SERVER['DOCUMENT_ROOT']))) {
$_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr(str_replace('\\\\', '\\', $_SERVER['PATH_TRANSLATED']), 0, 0-strlen($_SERVER['PHP_SELF'])));
} else {
// define here your DOCUMENT_ROOT path if the previous fails
$_SERVER['DOCUMENT_ROOT'] = '/var/www';
$_SERVER['DOCUMENT_ROOT'] = '/home/www';
}
}