/[dolibarr]/dolibarr/htdocs/telephonie/script/commande_presel.php
ViewVC logotype

Diff of /dolibarr/htdocs/telephonie/script/commande_presel.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by rodolphe, Wed Oct 19 14:11:53 2005 UTC revision 1.2 by rodolphe, Mon Oct 31 18:43:53 2005 UTC
# Line 110  if ($resql) Line 110  if ($resql)
110    
111  function CreatePreselection($host, $user_login, $user_passwd, $ligne, $id_person)  function CreatePreselection($host, $user_login, $user_passwd, $ligne, $id_person)
112  {    {  
113    dolibarr_syslog("Appel de CreatePreselection($host, $user_login, $user_passwd, $ligne, $id_person)");    dolibarr_syslog("Appel de CreatePreselection($host, $user_login, ****, $ligne, $id_person)");
114    
115    $url = "/AzurApp_websvc_b3gdb/account.asmx/CreatePreselection?";    $url = "/AzurApp_websvc_b3gdb/account.asmx/CreatePreselection?";
116    
# Line 137  function CreatePreselection($host, $user Line 137  function CreatePreselection($host, $user
137                
138        $parse = 0;        $parse = 0;
139        $result = "error";        $result = "error";
140    
141          $fresult = "";
142                
143        while (!feof($fp))        while (!feof($fp))
144          {          {
# Line 155  function CreatePreselection($host, $user Line 157  function CreatePreselection($host, $user
157              {              {
158                $parse = 1;                $parse = 1;
159              }              }
160    
161              $fresult .= $line;
162    
163          }          }
164        fclose($fp);        fclose($fp);
165      }      }
# Line 167  function CreatePreselection($host, $user Line 172  function CreatePreselection($host, $user
172    else    else
173      {      {
174        dolibarr_syslog("Presel échouée ligne ".$ligne." id client ".$id_person." $result\n");        dolibarr_syslog("Presel échouée ligne ".$ligne." id client ".$id_person." $result\n");
175    
176          $fp = fopen("/tmp/$ligne.presel","w");
177          if ($fp)
178            {
179              fwrite($fp, $fresult);
180              fclose($fp);
181            }
182    
183        return -1;        return -1;
184      }      }
185  }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26