MyBB-Plugins Forums
MyDownloads 1.4 - Printable Version

+- MyBB-Plugins Forums (http://forums.mybb-plugins.com)
+-- Forum: Archived Forums (http://forums.mybb-plugins.com/Forum-Archived-Forums)
+--- Forum: MyBB 1.4.x (http://forums.mybb-plugins.com/Forum-MyBB-1-4-x)
+---- Forum: Paid Plugins (http://forums.mybb-plugins.com/Forum-Paid-Plugins)
+---- Thread: MyDownloads 1.4 (/Thread-MyDownloads-1-4)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37


RE: MyDownloads RC 2 - Seeker - 07-06-2009

OK, thanks, I'll check it out.

I uploaded the new files, and ran the upgrade script.
The new settings look great, but...

When testing a purchase, the file 'mydownloads.php' is downloading instead of the .zip file.


RE: MyDownloads RC 2 - Diogo Parrinha - 07-06-2009

Ok fixed that issue and increased security. A new file name is generated before it is prompted to be downloaded. This is good because otherwise the user would know the file name and if your downloads path was the default one the user could download it directly.
As a new name is generated, it is "impossible" (nothing is impossible) to know the real name of the files.


RE: MyDownloads RC 3 - DamYan - 07-06-2009

Pirata, could you made setting for any limitation of signs on filename?


RE: MyDownloads RC 3 - Diogo Parrinha - 07-06-2009

What do you mean by signs? like / | % " $ ?


RE: MyDownloads RC 3 - Seeker - 07-07-2009

I'll test it again later today, thanks Smile


RE: MyDownloads RC 3 - CO_ol - 07-07-2009

(07-06-2009, 11:30 PM)Pirata Nervo Wrote: What do you mean by signs? like / | % " $ ?

Either that or how many letters allowed in file-name.


RE: MyDownloads RC 3 - chriscom - 07-07-2009

Thank you, Brother! Very Nice Work!

When you have the Final Version out, i made a german translation from the Plugin. Smile


RE: MyDownloads RC 3 - Seeker - 07-07-2009

(07-06-2009, 11:14 PM)DamYan Wrote: Pirata, could you made setting for any limitation of signs on filename?

(07-06-2009, 11:30 PM)Pirata Nervo Wrote: What do you mean by signs? like / | % " $ ?

Maybe he intended to say "size", the generated file-names are extremely long. I love the security, but could they be shorter, please?**

###

RC3 is working great so far, nice job. Smile


### EDIT:

**This works...
I'm just trying to help, it's cool if you don't want to use the code:
((Starts at line 801))

PHP Code:
function rand_string$length ) {
    
$chars "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";    

    
$size strlen$chars );
    for( 
$i 0$i $length$i++ ) {
        
$str .= $charsrand0$size ) ];
    }

    return 
$str;
}

$new_string rand_string);

    
// generate a different name for the file to make sure the user will not know the original file name after downloaded
    
$dl['name'] = "downloaded_file_"$new_string .".".$ext

produces a shorter random file name like this:
Code:
downloaded_file_TuZ5HeR.zip



RE: MyDownloads RC 3 - Diogo Parrinha - 07-07-2009

Ok if that's what he means then I am going to do it differently Tongue - Almost done =) RC4 coming soon


RE: MyDownloads RC 4 - Diogo Parrinha - 07-07-2009

RC4 is up now Smile