Quote:
Originally Posted by Ron1n
You need to change *purchase.php* in every template to *products.php* and you need to change the same thing in the products.php page, order.php page, and purchaseadmin.php page if there are any instances of it in those pages. * = ANYTHING, it does not mean a literal *.
I would change this so that it will allow you to link to a file. However, it wouldnt be secure. Anyone could just share the link. The way vBulletin actually does theres is each user has a unique link plus you have a directory you must log into in order to download. I dont plan to do something like that for this hack because it is just too in depth. I might make it so you can read in a file located on the server and put it into the database, but I might just make it so you have to link. Reading a file into the database would make it more secure, but it would also have some drawbacks if you had some files larger than 12 megs.
Edit: On a second thought, I might just create temporary files on the server so that the link will work for -- say -- 15 minutes, and after that the files will be deleted. That would have a lot of bugs though.
Here are the options, tell me which you would like to see:
- just link to a file (not secure)
- link to a file and read it in (secure, but wastes MYSQL space)
- you link to a file, and when a user downloads the script it creates a temporary file (many probable bugs depending on the user + server)
|
I was just thinking, as far as attachment system goes, just to split up download into pieces with winrare or something .. does your system allow for multiple attachments with say one product in this case? just an idea .. (thinking outloud)