<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Top Downloads 2.0... Speichern unter..."]]></title>
		<link>https://proxy2.de/forum/posts/list/4.php</link>
		<description><![CDATA[Latest messages posted in the topic "Top Downloads 2.0... Speichern unter..."]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Top Downloads 2.0... Speichern unter...</title>
				<description><![CDATA[ Hallo,<br /> habe mal folgende Frage zum Top Downloads Skript.<br /> Und zwar würde ich gerne meine Downloads mit dem <br /> "Speichern unter"-Dialog anbieten. Zur Zeit werden ja<br /> bekannte Datein im Browser angezeigt wie zB. *.gif oder *.PDF.<br /> (Nein, ich möchte die Dateien nicht packen und als *.zip oder *.rar anbieten)<br /> Ich habe mich schon soweit schlau gemacht, das der Header mit<br /> Content-Type: application/octet-stream eingeleitet werden muß.<br /> Leider bin ich nicht (noch nicht  <img src="https://proxy2.de/forum//images/smilies/97ada74b88049a6d50a6ed40898a03d7.gif" /> ) in der Lage das Skript so <br /> zuverändern das der Dialog aufgerufen wir.<br /> Die entsprechende Zeile ist zurzeit diese hier:<br /> print "Location: $redirect_to\n\n";<br /> Unten steht der komplette Abschnitt aus dem Skript.<br /> <br /> Möchte mich schonmal vorab bedanken <br /> Gruß<br /> Oliver<br /> <br /> <br /> ############ CUT aus Top Downloads 2.0###############<br /> <br /> sub count_download {<br /> $down_date = &amp;get_date($down_date);<br /> open(DATA,"+&lt;$basedat") || &amp;message('Cannot open log file $basedat for writing!');<br /> flock(DATA,2) if ($lock == 1);<br /> my @lines = &lt;DATA&gt;;<br /> shift(@lines);<br /> <br /> $found=0;<br /> foreach $line (@lines)  {<br />   	($file_id,$count,$location,$stamp,$descript) = split(/\|/,$line);<br /> 	if ($FORM{'file'} eq $file_id) {<br />                 $count++;<br />                 $line = ("$file_id|$count|$location|$stamp|$descript");<br />                 $found=1;<br />                 $redirect_to = $location;<br />                 last;<br />   	}<br /> }<br /> if ($found == 1) {<br /> 	seek(DATA,0,0);<br /> 	print DATA ("$down_date\n");<br /> 	print DATA (@lines);<br /> 	close(DATA);<br /> 	if ($redirect_to =~ /^(f|ht)tp:\/\/[._a-z0-9-]+/i) {<br /> 		&amp;count_daily;<br /> 		print "Location: $redirect_to\n\n";<br /> 	}<br /> 	else {<br /> 		&amp;message('Invalid file URL!');<br /> 	}<br /> }<br /> else {<br /> 	close(DATA);<br /> 	&amp;message('File not found in database!');<br /> }<br /> exit (0);<br /> }]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5302/19344.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5302/19344.php</link>
				<pubDate><![CDATA[Thu, 12 Jan 2006 20:31:24]]> GMT</pubDate>
				<author><![CDATA[ nobody]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ 270 Leute und keine hat eine Antwort ...<br /> Schade eigentlich, aber vielleicht hat ja noch jemand<br /> eine Lösung für mich<br /> <br /> Oliver]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5302/19597.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5302/19597.php</link>
				<pubDate><![CDATA[Fri, 10 Feb 2006 16:08:01]]> GMT</pubDate>
				<author><![CDATA[ nobody]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ print "Location: $redirect_to\n\n"; <br /> <br /> ist eine Weiterleitung, d.h der browser wird auf eine andere url umgeleitet.<br /> wenn den header Content-Type: application/octet-stream setzt, dann muss du danach die datei ausgeben.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5302/19868.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5302/19868.php</link>
				<pubDate><![CDATA[Sat, 11 Mar 2006 23:40:06]]> GMT</pubDate>
				<author><![CDATA[ phpuser3]]></author>
			</item>
	</channel>
</rss>