setAuthenticationType('http');
$rpc->setCredentials($login, $password);
*/
$result = $rpc->pmbesSelfServices_self_checkout($cb_expl,$id_empr);
if ($charset!= "utf-8") {
$result->title=utf8_decode($result->title);
$result->message=utf8_decode($result->message);
$result->message_loc=utf8_decode($result->message_loc);
$result->message_resa=utf8_decode($result->message_resa);
$result->message_retard=utf8_decode($result->message_retard);
$result->message_amende=utf8_decode($result->message_amende);
}
if($result->status){
// pret ok
$aff=str_replace('!!due_date!!', $result->due_date, $msg["empr_do_checkout_ok"]);
$aff=str_replace('!!expl_cb!!',"'$cb_expl'", $aff);
$aff="
".$aff."
";
} else {
$aff="
".$msg["empr_do_checkout_nok"]."
";
if($result->message) $aff.="".$result->message."
";
}
// if($result->title) $aff.="