Blame | Letzte Änderung | Log anzeigen | RSS feed
<?include("/web/apache/mediaran.de/preisagent/transfer/connect.php");include("/web/apache/mediaran.de/preisagent/transfer/avt-24/core_data.php");function get_clear_path($heritage){array_shift($heritage);return $heritage;}function ausgabe($subdir,$heritage){global $output;$artikel=array_pop($subdir);$subdirs=array_pop($subdir);$heritage[]=$subdir[Name];foreach($artikel as $current_row){$dropFelder=array("bild","beschreibung","detailbeschreibung","detailbild","templatefile_smalllist","templatefile_detail","is_invisible","mwst","artikelnr");foreach($dropFelder as $dropping){unset($current_row[$dropping]);}$current_row[preis]=number_format($current_row[preis],2,',','.');$current_row["Deeplink"] = "http://www.avt-24.de/geizkragen.htm?file=item.php&id=".$current_row[ID];$current_row[category]=$heritage[1];$output[]=$current_row;}foreach($subdirs as $current_subdir){ausgabe($current_subdir,$heritage);}}$output=array();ausgabe(core_data(),array());// $output ist jetzt gefülltecho "Angebotsnummer;Kategorie;Produktname;Preis;Deeplink\n";foreach($output as $elem){echo implode(";",$elem)."\n";}?>