Hi, Thanks for the Mod. I was looking for something like it. And its working with out any error.
I just want to change something. Actually I want to change "cat_id/download" to something Unique. Say "cat_id/a1b2c3d4"
SO will it work if I change?
// Let the user download the "<cat_id>/download/<fname>", "<cat_id>/big/<fname>", or "<cat_id>/<fname>" version of the image
$temp = get_file_path($file['file_name'], "download", $image_row['cat_id'], 0, 1);
TO something like
// Let the user download the "<cat_id>/a1b2c3d4/<fname>", "<cat_id>/big/<fname>", or "<cat_id>/<fname>" version of the image
$temp = get_file_path($file['file_name'], "a1b2c3d4", $image_row['cat_id'], 0, 1);
May be I have to do this 2/3 times. But will it work?
Its just coz I m using 4images for wallpapers. And file name r in sequence. So if someone knows Category ID, he can start downloading "Actually" files dirctly from browser"domin.com/4images/data/media/2/download/filename"
So just want to protect that so that no one can download files directly.