138 |
$url .= "user_login=". $user_login; |
$url .= "user_login=". $user_login; |
139 |
$url .= "&user_passwd=".$user_passwd; |
$url .= "&user_passwd=".$user_passwd; |
140 |
$url .= "&id_person=".$id_person; |
$url .= "&id_person=".$id_person; |
141 |
$url .= "&telnum=".$lint->ligne; |
$url .= "&telnum=".$lint->numero; |
142 |
$url .= "&okCollecte=true"; |
$url .= "&okCollecte=true"; |
143 |
if ($lint->support == 'sda') |
if ($lint->support == 'sda') |
144 |
{ |
{ |
211 |
|
|
212 |
if (substr($result,0,2) == "OK") |
if (substr($result,0,2) == "OK") |
213 |
{ |
{ |
214 |
dolibarr_syslog("Presel réussie ligne ".$lint->ligne." id client ".$id_person." $result\n"); |
dolibarr_syslog("Presel réussie ligne ".$lint->numero." id client ".$id_person." $result\n"); |
215 |
return 0; |
return 0; |
216 |
} |
} |
217 |
else |
else |
218 |
{ |
{ |
219 |
dolibarr_syslog("Presel échouée ligne ".$lint->ligne." id client ".$id_person." $result\n"); |
dolibarr_syslog("Presel échouée ligne ".$lint->numero." id client ".$id_person." $result\n"); |
220 |
|
|
221 |
$fp = fopen("/tmp/$ligne.presel","w"); |
$fp = fopen("/tmp/".$lint->numero.".presel","w"); |
222 |
if ($fp) |
if ($fp) |
223 |
{ |
{ |
224 |
fwrite($fp, $fresult); |
fwrite($fp, $fresult); |