MyBB-Plugins Forums

Full Version: MyDownloads 1.4
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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.
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.
Pirata, could you made setting for any limitation of signs on filename?
What do you mean by signs? like / | % " $ ?
I'll test it again later today, thanks Smile
(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.
Thank you, Brother! Very Nice Work!

When you have the Final Version out, i made a german translation from the Plugin. Smile
(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
Ok if that's what he means then I am going to do it differently Tongue - Almost done =) RC4 coming soon
RC4 is up now Smile
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