Page 1 of 1
Finding the Download Link in the Codes?
Posted:
Thu Oct 17, 2013 8:49 pm
by ChaneyBoi
Hello,
I'm looking for the code for the download link, i'm looking for the code to link to the file download so i can put it somewhere else on the same page.
Does anyone know the code?
Best Regards.
Re: Finding the Download Link in the Codes?
Posted:
Fri Oct 18, 2013 8:19 pm
by SamEA
The actual downloading process is dealt by ./download2.php.
Re: Finding the Download Link in the Codes?
Posted:
Sat Oct 19, 2013 7:06 pm
by ChaneyBoi
Ohh right, I'm looking for the direct link download code.
I'm looking for it to add an mp3 player, so if someone uploads an mp3 file someone could listen to the file.
Thanks.
Re: Finding the Download Link in the Codes?
Posted:
Wed Oct 23, 2013 12:34 am
by SamEA
- Code: Select all
// THIS CODE IS ALREADY AVAILABLE IN ./DOWNLOAD.PHP
// ONLY USE THE BELOW CODE IF YOU ARE NOT USING IT
// IN DOWNLOAD.PHP
$filecrc = $_GET['file'];
if (file_exists("./files/".$filecrc.".dfh")) {
$fh1=fopen("./files/".$filecrc.".dfh",r);
$foundfile= explode('|', fgets($fh1));
fclose($fh1);
}
// END OF DOWNLOAD.PHP CODE
// New code to generate streaming link
$streamingLink = $scripturl ."download2.php?a=" . $filecrc . "&b=" . md5($foundfile[2].$_SERVER['REMOTE_ADDR'];
Now the $streamingLink variable holds the link to the file. All you have to do is ECHO the variable e.g. <?php echo $streamingLink;?>
This should work, however if it does not, I'll help you adjust the download HTML mime types in ./download2.php for video files.
Re: Finding the Download Link in the Codes?
Posted:
Thu Oct 24, 2013 8:45 am
by ChaneyBoi
Thanks, this has not worked because the download link sends you to the html page, is there anyway to link to the stored file because the stored file would be where the code can find the mp3 or any file format.
Best Regards.
Re: Finding the Download Link in the Codes?
Posted:
Tue Oct 29, 2013 10:37 pm
by SamEA
Can you please provide me with the URL to where DFH is located in order for further investigation? Thanks.
Re: Finding the Download Link in the Codes?
Posted:
Sat Nov 02, 2013 9:18 pm
by ChaneyBoi
The domain is "MiiUpload.com"
I still have the code on with the mp3 player, upload any mp3 and you will see it doesn't play.
Best Regards.
Re: Finding the Download Link in the Codes?
Posted:
Mon Nov 04, 2013 7:33 pm
by SamEA
You have removed the link back to DaddyScripts.com and this is against our Terms & Conditions and open source license. Due to this reason, I am unable to provide support to you.