mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 17:48:25 +01:00
Merge
This commit is contained in:
@@ -142,7 +142,7 @@ function getOnlineSignatureUrl($mode, $type, $ref = '', $localorexternal = 1, $o
|
|||||||
if ($mode == 1) {
|
if ($mode == 1) {
|
||||||
$out .= "hash('".$securekeyseed."' + '".$type."' + contract_ref)";
|
$out .= "hash('".$securekeyseed."' + '".$type."' + contract_ref)";
|
||||||
} else {
|
} else {
|
||||||
$out .= '&securekey='.dol_hash($securekeyseed.$type.$ref.(!isModEnabled('multicompany') ? '' : $object->entity), '0');
|
$out .= '&securekey='.dol_hash($securekeyseed.$type.$ref.(isModEnabled('multicompany') ? $obj->entity : ''), '0');
|
||||||
}
|
}
|
||||||
} elseif ($type == 'fichinter') {
|
} elseif ($type == 'fichinter') {
|
||||||
$securekeyseed = isset($conf->global->FICHINTER_ONLINE_SIGNATURE_SECURITY_TOKEN) ? $conf->global->FICHINTER_ONLINE_SIGNATURE_SECURITY_TOKEN : '';
|
$securekeyseed = isset($conf->global->FICHINTER_ONLINE_SIGNATURE_SECURITY_TOKEN) ? $conf->global->FICHINTER_ONLINE_SIGNATURE_SECURITY_TOKEN : '';
|
||||||
@@ -157,7 +157,7 @@ function getOnlineSignatureUrl($mode, $type, $ref = '', $localorexternal = 1, $o
|
|||||||
if ($mode == 1) {
|
if ($mode == 1) {
|
||||||
$out .= "hash('".$securekeyseed."' + '".$type."' + fichinter_ref)";
|
$out .= "hash('".$securekeyseed."' + '".$type."' + fichinter_ref)";
|
||||||
} else {
|
} else {
|
||||||
$out .= '&securekey='.dol_hash($securekeyseed.$type.$ref.(!isModEnabled('multicompany') ? '' : $object->entity), '0');
|
$out .= '&securekey='.dol_hash($securekeyseed.$type.$ref.(isModEnabled('multicompany') ? $obj->entity : ''), '0');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user