X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/fc47e4830133fb0841ae91a63f909ea7ce6d72fe..f9676efea9ccfa01df2a57dca9c45cc8fde0d09e:/lxo-import/import_lib.php diff --git a/lxo-import/import_lib.php b/lxo-import/import_lib.php index 2abec363c..cc228a0d6 100644 --- a/lxo-import/import_lib.php +++ b/lxo-import/import_lib.php @@ -71,6 +71,7 @@ $parts = array( "weight" => "Gewicht in Benutzerdefinition", "notes" => "Beschreibung", "notes1" => "Beschreibung", + "formel" => "Formel", "makemodel" => "Hersteller", "model" => "Modellbezeichnung", "image" => "Pfad/Dateiname", @@ -93,6 +94,7 @@ $parts = array( "partsgroup2" => "3.Warengruppenbezeichnung", "partsgroup3" => "4.Warengruppenbezeichnung", "partsgroup4" => "5.Warengruppenbezeichnung", + "shop" => "Shopexport vorghesehen", ); $contactscrm = array( @@ -369,5 +371,20 @@ function authuser($dbhost,$dbport,$dbuser,$dbpasswd,$dbname,$cookie) { $db->query($sql,"authuser_3"); return $auth; } +/** + * Zeichencode übersetzen + * + * @param String $txt + */ +function translate(&$txt) { + if (Auto) { + $encoding = mb_detect_encoding($data,"UTF-8,ISO-8859-1,ISO-8859-15,Windows-1252,ASCII"); + $txt = iconv("$encoding",ServerCode."//TRANSLIT",$txt); + //$txt = mb_convert_encoding($txt, ServerCode,"$encoding"); + } else { + $txt = iconv(FileCode,ServerCode."//TRANSLIT",$txt); + //$txt = mb_convert_encoding($txt, ServerCode,FileCode); + } +} ?>