/[ludap]/ludap/www/xml.php
ViewVC logotype

Diff of /ludap/www/xml.php

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

revision 1.6 by mose, Wed Sep 24 10:03:03 2003 UTC revision 1.7 by mose, Wed Sep 24 12:48:57 2003 UTC
# Line 47  if ($handle = opendir(LUDAP_DIR.'xmldata Line 47  if ($handle = opendir(LUDAP_DIR.'xmldata
47  $S->assign("xdf",$xmldatafile);  $S->assign("xdf",$xmldatafile);
48  $S->display("xml_topnav.tpl");  $S->display("xml_topnav.tpl");
49  if ($xmlaction == 'importer xml') {  if ($xmlaction == 'importer xml') {
50            
51          if ($xmlimport) {          if ($xmlimport) {
52                  $xfile = implode('',file($xmlimport["tmp_name"]));                  $xfile = implode('',file($xmlimport["tmp_name"]));
53                  $xfile = str_replace('&','&',$xfile);                  $xfile = str_replace('&','&',$xfile);
# Line 65  if ($xmlaction == 'importer xml') { Line 66  if ($xmlaction == 'importer xml') {
66  //echo'<pre>';print_r(get_defined_vars());echo'</pre>';  //echo'<pre>';print_r(get_defined_vars());echo'</pre>';
67  } elseif        ($xmlaction == 'importer csv') {  } elseif        ($xmlaction == 'importer csv') {
68          if ($xmlimport) {          if ($xmlimport) {
69                  $fp = fopen($xmlimport["tmp_name"],'r');                  if (is_file($xmlimport["tmp_name"])) {
70                            $fp = fopen($xmlimport["tmp_name"],'r');
71                    } elseif (is_file('xmldata/'.$xdfile)) {
72                            $fp = fopen('xmldata/'.$xdfile),'r');
73                    }
74                  $headed = substr(fgets($fp,4096),1);                  $headed = substr(fgets($fp,4096),1);
75                  $head = split('","',$headed);                  $head = split('","',$headed);
76                  $nbhead = count($head) - 1;                  $nbhead = count($head) - 1;
# Line 81  if ($xmlaction == 'importer xml') { Line 86  if ($xmlaction == 'importer xml') {
86                                          }                                          }
87                                  }                                  }
88                                  if ($insert['cn'] == "Abonné lettre") {                                  if ($insert['cn'] == "Abonné lettre") {
89                                          $insert['cn'] = $insert['mail'];                                          // $insert['cn'] = $insert['mail'];
90                                  } elseif ($insert['cn'] == "Nouveau") {                                  } elseif ($insert['cn'] == "Nouveau") {
91                                          $insert = false;                                          $insert = false;
92                                  }                                  }

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

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