/[dolibarr]/dolibarr/htdocs/telephonie/script/import-cdr-ftp.php
ViewVC logotype

Diff of /dolibarr/htdocs/telephonie/script/import-cdr-ftp.php

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

revision 1.4 by rodolphe, Mon Nov 7 14:33:59 2005 UTC revision 1.5 by rodolphe, Thu Nov 24 09:16:52 2005 UTC
# Line 25  require ("../../master.inc.php"); Line 25  require ("../../master.inc.php");
25    
26  $opt = getopt("f:i:");  $opt = getopt("f:i:");
27    
28    /*
29  $file = $opt['f'];  $file = $opt['f'];
30  $id_fourn = $opt['i'];  $id_fourn = $opt['i'];
   
31  if (strlen($file) == 0 || strlen($id_fourn) == 0)  if (strlen($file) == 0 || strlen($id_fourn) == 0)
32  {  {
33    print "Usage :\n php import-cdr-bt.php -f <filename> -i <id_fournisseur>\n";    print "Usage :\n php import-cdr-bt.php -f <filename> -i <id_fournisseur>\n";
34    exit;    exit;
35  }  }
36    */
37    $file = DOL_DATA_ROOT."/telephonie/CDR/atraiter/";
38    $id_fourn = 4;
39    
40  /*  /*
41   * Traitement   * Traitement
# Line 303  foreach ($files as $xfile) Line 306  foreach ($files as $xfile)
306                if ($error == 0)                if ($error == 0)
307                  {                          {        
308                    $db->query("COMMIT");                    $db->query("COMMIT");
                   dolibarr_syslog("COMMIT");  
309                  }                  }
310                else                else
311                  {                  {

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

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