Merge branch 'develop' of ssh://git@github.com/Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
76463b0e8c
@ -76,6 +76,13 @@ if (! $result && ! empty($_SERVER["GATEWAY_INTERFACE"])) // If install not do
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Clean parameters
|
||||||
|
$dolibarr_main_data_root=trim($dolibarr_main_data_root);
|
||||||
|
$dolibarr_main_url_root=trim($dolibarr_main_url_root);
|
||||||
|
$dolibarr_main_url_root_alt=trim($dolibarr_main_url_root_alt);
|
||||||
|
$dolibarr_main_document_root=trim($dolibarr_main_document_root);
|
||||||
|
$dolibarr_main_document_root_alt=trim($dolibarr_main_document_root_alt);
|
||||||
|
|
||||||
if (empty($dolibarr_main_db_port)) $dolibarr_main_db_port=0; // Pour compatibilite avec anciennes configs, si non defini, on prend 'mysql'
|
if (empty($dolibarr_main_db_port)) $dolibarr_main_db_port=0; // Pour compatibilite avec anciennes configs, si non defini, on prend 'mysql'
|
||||||
if (empty($dolibarr_main_db_type)) $dolibarr_main_db_type='mysql'; // Pour compatibilite avec anciennes configs, si non defini, on prend 'mysql'
|
if (empty($dolibarr_main_db_type)) $dolibarr_main_db_type='mysql'; // Pour compatibilite avec anciennes configs, si non defini, on prend 'mysql'
|
||||||
if (empty($dolibarr_main_db_prefix)) $dolibarr_main_db_prefix='llx_';
|
if (empty($dolibarr_main_db_prefix)) $dolibarr_main_db_prefix='llx_';
|
||||||
|
|||||||
@ -93,14 +93,21 @@ if (! defined('DONOTLOADCONF') && file_exists($conffile))
|
|||||||
$result=include_once($conffile); // Load conf file
|
$result=include_once($conffile); // Load conf file
|
||||||
if ($result)
|
if ($result)
|
||||||
{
|
{
|
||||||
|
// Clean parameters
|
||||||
|
$dolibarr_main_data_root=trim($dolibarr_main_data_root);
|
||||||
|
$dolibarr_main_url_root=trim($dolibarr_main_url_root);
|
||||||
|
$dolibarr_main_url_root_alt=trim($dolibarr_main_url_root_alt);
|
||||||
|
$dolibarr_main_document_root=trim($dolibarr_main_document_root);
|
||||||
|
$dolibarr_main_document_root_alt=trim($dolibarr_main_document_root_alt);
|
||||||
|
|
||||||
//if (empty($dolibarr_main_db_type)) $dolibarr_main_db_type='mysql'; // For backward compatibility
|
//if (empty($dolibarr_main_db_type)) $dolibarr_main_db_type='mysql'; // For backward compatibility
|
||||||
|
|
||||||
// Remove last / or \ on directories or url value
|
// Remove last / or \ on directories or url value
|
||||||
if (! empty($dolibarr_main_document_root) && ! preg_match('/^[\\/]+$/',$dolibarr_main_document_root)) $dolibarr_main_document_root=preg_replace('/[\\/]+$/','',$dolibarr_main_document_root);
|
if (! empty($dolibarr_main_document_root) && ! preg_match('/^[\\/]+$/',$dolibarr_main_document_root)) $dolibarr_main_document_root=preg_replace('/[\\/]+$/','',$dolibarr_main_document_root);
|
||||||
if (! empty($dolibarr_main_url_root) && ! preg_match('/^[\\/]+$/',$dolibarr_main_url_root)) $dolibarr_main_url_root=preg_replace('/[\\/]+$/','',$dolibarr_main_url_root);
|
if (! empty($dolibarr_main_url_root) && ! preg_match('/^[\\/]+$/',$dolibarr_main_url_root)) $dolibarr_main_url_root=preg_replace('/[\\/]+$/','',$dolibarr_main_url_root);
|
||||||
if (! empty($dolibarr_main_data_root) && ! preg_match('/^[\\/]+$/',$dolibarr_main_data_root)) $dolibarr_main_data_root=preg_replace('/[\\/]+$/','',$dolibarr_main_data_root);
|
if (! empty($dolibarr_main_data_root) && ! preg_match('/^[\\/]+$/',$dolibarr_main_data_root)) $dolibarr_main_data_root=preg_replace('/[\\/]+$/','',$dolibarr_main_data_root);
|
||||||
if (! empty($dolibarr_main_document_root_alt) && ! preg_match('/^[\\/]+$/',$dolibarr_main_document_root_alt)) $dolibarr_main_document_root_alt=preg_replace('/[\\/]+$/','',$dolibarr_main_document_root_alt);
|
if (! empty($dolibarr_main_document_root_alt) && ! preg_match('/^[\\/]+$/',$dolibarr_main_document_root_alt)) $dolibarr_main_document_root_alt=preg_replace('/[\\/]+$/','',$dolibarr_main_document_root_alt);
|
||||||
if (! empty($dolibarr_main_url_root_alt) && ! preg_match('/^[\\/]+$/',$dolibarr_main_url_root_alt)) $dolibarr_main_url_root_alt=preg_replace('/[\\/]+$/','',$dolibarr_main_url_root_alt);
|
if (! empty($dolibarr_main_url_root_alt) && ! preg_match('/^[\\/]+$/',$dolibarr_main_url_root_alt)) $dolibarr_main_url_root_alt=preg_replace('/[\\/]+$/','',$dolibarr_main_url_root_alt);
|
||||||
|
|
||||||
// Create conf object
|
// Create conf object
|
||||||
if (! empty($dolibarr_main_document_root))
|
if (! empty($dolibarr_main_document_root))
|
||||||
|
|||||||
@ -676,6 +676,7 @@ function hash_call($methodName,$nvpStr)
|
|||||||
exit;*/
|
exit;*/
|
||||||
curl_setopt($ch, CURLOPT_URL, $API_Endpoint);
|
curl_setopt($ch, CURLOPT_URL, $API_Endpoint);
|
||||||
curl_setopt($ch, CURLOPT_VERBOSE, 1);
|
curl_setopt($ch, CURLOPT_VERBOSE, 1);
|
||||||
|
curl_setopt($ch, CURLOPT_SSLVERSION, 3); // Force SSLv3
|
||||||
|
|
||||||
//turning off the server and peer verification(TrustManager Concept).
|
//turning off the server and peer verification(TrustManager Concept).
|
||||||
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
|
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
|
||||||
|
|||||||
@ -75,7 +75,7 @@ if (! GETPOST("action"))
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$urlwithouturlroot=preg_replace('/'.preg_quote(DOL_URL_ROOT,'/').'$/i','',$dolibarr_main_url_root);
|
$urlwithouturlroot=preg_replace('/'.preg_quote(DOL_URL_ROOT,'/').'$/i','',trim($dolibarr_main_url_root));
|
||||||
$urlok=$urlwithouturlroot.DOL_URL_ROOT.'/public/paybox/paymentok.php?';
|
$urlok=$urlwithouturlroot.DOL_URL_ROOT.'/public/paybox/paymentok.php?';
|
||||||
$urlko=$urlwithouturlroot.DOL_URL_ROOT.'/public/paybox/paymentko.php?';
|
$urlko=$urlwithouturlroot.DOL_URL_ROOT.'/public/paybox/paymentko.php?';
|
||||||
|
|
||||||
|
|||||||
@ -77,7 +77,7 @@ if (! GETPOST("action"))
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$urlwithouturlroot=preg_replace('/'.preg_quote(DOL_URL_ROOT,'/').'$/i','',$dolibarr_main_url_root);
|
$urlwithouturlroot=preg_replace('/'.preg_quote(DOL_URL_ROOT,'/').'$/i','',trim($dolibarr_main_url_root));
|
||||||
$urlok=$urlwithouturlroot.DOL_URL_ROOT.'/public/paypal/paymentok.php?';
|
$urlok=$urlwithouturlroot.DOL_URL_ROOT.'/public/paypal/paymentok.php?';
|
||||||
$urlko=$urlwithouturlroot.DOL_URL_ROOT.'/public/paypal/paymentko.php?';
|
$urlko=$urlwithouturlroot.DOL_URL_ROOT.'/public/paypal/paymentko.php?';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user