Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
3 lars 1
<?
2
	include("/web/apache/mediaran.de/preisagent/transfer/connect.php");
3
	include("/web/apache/mediaran.de/preisagent/transfer/avt-24/core_data.php");
4
 
5
	function get_clear_path($heritage)
6
	{
7
		array_shift($heritage);
8
		return $heritage;
9
	}
10
 
11
	function ausgabe($subdir,$heritage)
12
	{
13
		global $output;
14
 
15
		$artikel=array_pop($subdir);
16
		$subdirs=array_pop($subdir);
17
 
18
		$heritage[]=$subdir[Name];
19
 
20
		foreach($artikel as $current_row)
21
		{
22
			$dropFelder=array
23
			(
24
				"bild",
25
				"beschreibung",
26
				"detailbeschreibung",
27
				"detailbild",
28
				"templatefile_smalllist",
29
				"templatefile_detail",
30
				"is_invisible",
31
				"mwst",
32
				"artikelnr"
33
			);
34
 
35
			foreach($dropFelder as $dropping)
36
			{
37
				unset($current_row[$dropping]);
38
			}
39
 
40
			$current_row[preis]=number_format($current_row[preis],2,',','.');
41
			$current_row["Deeplink"]		=	"http://www.avt-24.de/geizkragen.htm?file=item.php&id=".$current_row[ID];
42
 
43
			$current_row[category]=$heritage[1];
44
			$output[]=$current_row;
45
		}
46
 
47
		foreach($subdirs as $current_subdir)
48
		{
49
			ausgabe($current_subdir,$heritage);
50
		}
51
	}
52
 
53
	$output=array();
54
	ausgabe(core_data(),array());
55
	// $output ist jetzt gefüllt
56
 
57
	echo "Angebotsnummer;Kategorie;Produktname;Preis;Deeplink\n";
58
	foreach($output as $elem)
59
	{
60
		echo implode(";",$elem)."\n";
61
	}
62
?>