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("category","detailbeschreibung","detailbild","templatefile_smalllist","templatefile_detail","is_invisible","mwst","bild","artikelnr");foreach($dropFelder as $dropping){unset($current_row[$dropping]);}$current_row["Deeplink"] = "http://www.avt-24.de/geizhals.htm?file=item.php&id=".$current_row[ID];$current_row[Beschreibung]=preg_replace("/[\r\n]/", "", $current_row[beschreibung]);unset($current_row[beschreibung]);$current_row[Verf]="lieferbar";$current_row[preis]=number_format($current_row[preis],2,',','.');$output[]=$current_row;}foreach($subdirs as $current_subdir){ausgabe($current_subdir,$heritage);}}$output=array();ausgabe(core_data(),array());// $output ist jetzt gefülltecho "ArtikelNr\tBezeichnung\tPreis\tDeeplink\tBeschreibung\tVerfügbarkeit\n";foreach($output as $elem){echo implode("\t",$elem)."\n";}?>