Blame | Letzte Änderung | Log anzeigen | RSS feed
<? echo "#"; ?>country=DE#type=basic#currency=EUR#update=NOurl title description price offerid image category availability deliverycost<?include("/web/apache/mediaran.de/connect.php");include("/web/apache/mediaran.de/preisagent/transfer/1und1/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){$buffer=get_clear_path($heritage);$current_row[category]=$buffer[0];$ValidFrom = date("Y-m-d",time());$ValidUntil = date("Y-m-d",time() + 60*60*6); // 60 Sekunden * 60 Minuten * 6 Stunden$buffer=array();$buffer["url"] = "http://www.gateway24.de";$buffer["title"] = $current_row[bezeichnung];$buffer["description"] = preg_replace("/[\r\n;]/", "", substr($current_row[beschreibung], 0, 80));$buffer["price"] = number_format($current_row[preis], 2, '.', '');$buffer["offerid"] = $current_row[ID];$buffer["image"] = "http://www.gateway24.de$current_row[bild]";$buffer["category"] = $current_row[category];$buffer["availability"] = "001";$buffer["deliverycost"] = "siehe Shop";$output[]=$buffer;}foreach($subdirs as $current_subdir){ausgabe($current_subdir,$heritage);}}$output=array();ausgabe(core_data(),array());// $output ist jetzt gefülltforeach($output as $elem){echo implode("\t",$elem)."\n";}?>