Ron1n |
06-21-2005 05:56 PM |
Quote:
Originally Posted by PixelFx
Question: If I change purchase.php to products.php will it effect the script at all?
|
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 *.
Quote:
Originally Posted by PixelFx
Suggestions: ? Does this hack allow you to select a file from location on your server? since the attachment system on php is max 2 megs? and if so are there any restrictions to file size.
|
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)
|