From 3e63947841c49112212cdeef5bd178fe961bf002 Mon Sep 17 00:00:00 2001 From: Holger Lindemann Date: Fri, 19 Jan 2007 09:44:40 +0000 Subject: [PATCH] Umlaute Zeichencode --- lxo-import/addressB.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lxo-import/addressB.php b/lxo-import/addressB.php index 23fa4f69a..dcb5adb7f 100644 --- a/lxo-import/addressB.php +++ b/lxo-import/addressB.php @@ -44,7 +44,6 @@ clearstatcache (); $test=$_POST["test"]; if (!empty($_FILES["Datei"]["name"])) { $file=$_POST["ziel"]; - echo $_FILES["Datei"]["tmp_name"]; if (!move_uploaded_file($_FILES["Datei"]["tmp_name"],$file.".csv")) { $file=false; echo "Upload von ".$_FILES["Datei"]["name"]." fehlerhaft. (".$_FILES["Datei"]["error"].")
"; @@ -118,6 +117,8 @@ if ($ok) while (!feof($f)){ } else if ($in_fld[$i]=="taxincluded"){ $data=strtolower(substr($data,0,1)); if ($data!="f" && $data!="t") $data="f"; + } else if ($in_fld[$i]=="ustid"){ + $data=strtr(" ","",$data); } /*else if ($in_fld[$i]=="matchcode") { $matchcode=$data; $i++; @@ -164,7 +165,7 @@ if ($ok) while (!feof($f)){ $sql.=$keys."taxzone_id,import)"; $sql.=$vals."0,$nun)"; $rc=$db->query($sql); - if (!$rc) echo "Fehler: ".$vals."
"; + if (!$rc) echo "Fehler: ".$sql."
"; } $j++; } else { -- 2.20.1