Help - Search - Member List - Calendar
Full Version: [ADDON] Multi-File upload!
Krazy Letter Forums > Members stuff > Computer Programs > PHPKImageHost > Modifications/Hacks
zac439
FINALLY im done with this project. took way too long, i kept getting interrupted. i hereby declare this script as an addon of the amazing free open source script provided by lappy. it no way am i affiliated with him, and i doubt this ever becomes a true part of his script, but its free to anyone who wants it.

features it DOES NOT include:
ip logging
thumbnails
statistics

features it DOES include:
a.asks user for # of images they want to upload
b.supplies upload boxes
c.posts image and image tags for direct link, forum use, and website for all of them in a nice, clean table
d. images all begin with the number 1, for easy navigating through your website files and image files
e. images will NEVER have the same name, due to some complex random scripts i put together

PLEASE NOTE! this script in NO WAY is related to even remotely the free script provided by lappy. if we are lucky, he will take my script and integrate it into his open source script. shouldnt be too hard, i just dont have the time to do this.

PLEASE LOOK AT IT BEFORE YOU TRY IT OUT!
www.charitypixel.net/index/multi/multi.php
(reccomend you upload 9 images so you see how well it orders things!)

===AFTER== you look at it, and decide you want it, follow these instructions:

1.) download multi.zip at www.charitypixel.net/index/multi.zip
2.) upload the folder 'multi' to your directory
3.) strip my template off the code, and use it. (SORRY, i dont have time to strip my template from the code, if someone will be kind enough to do this and release it ill put your name on the credits too. sorry guys! ive been too busy lately!)
4.) thats it! your ready to go.


====
hope im not forgetting anything. if i am say something! comments? suggestions?

(EDIT: sorry lappy your footer.php is still overwrote from my hosting provider's, but im releasing my site to the public soon and upon release ill put you in the footer and submit my site to the list of sites running your script!)
lappy512
Very cool, I will look into integrating this with PHPKImageHost smile.gif

Let me make this a bit clearer:
This script is a totally seperate script from PHPKImageHost, and works differently than PHPKImageHost.

I do not believe it has a file size upload limit, and in other words, this is just an uploader which will upload things, store it, and give a link to it (and the link assumes it's an image).

I quickly found a bug though:
http://www.charitypixel.net/index/multi/1w...034QmaJ4691.ini
I uploaded a PHP.INI file I have
http://www.charitypixel.net/index/multi/1n...6MhseWW4841.php
I even uploaded a PHP File, this one I made display phpinfo, other people can make more malicious scripts (such as delete things, or even echo out your conf_global.php).

I suggest you implement something that will check the MIME-TYPE to make sure it's an image right now (see line 64, "switch($userfile_type)")
Red89GT
Cool script, but I found a error aswell. Other than the fact that you can upload any file type. I selected to upload 3 pics but only ended up selecting 2 files to upload ( a image file and a exe file), but the script gave me the code for all 3 even tho only 2 things were uploaded.
zac439
QUOTE(lappy512 @ Feb 13 2006, 09:29 PM)
Very cool, I will look into integrating this with PHPKImageHost smile.gif

Let me make this a bit clearer:
This script is a totally seperate script from PHPKImageHost, and works differently than PHPKImageHost.

I do not believe it has a file size upload limit, and in other words, this is just an uploader which will upload things, store it, and give a link to it (and the link assumes it's an image).

I quickly found a bug though:
http://www.charitypixel.net/index/multi/1w...034QmaJ4691.ini
I uploaded a PHP.INI file I have
http://www.charitypixel.net/index/multi/1n...6MhseWW4841.php
I even uploaded a PHP File, this one I made display phpinfo, other people can make more malicious scripts (such as delete things, or even echo out your conf_global.php).

I suggest you implement something that will check the MIME-TYPE to make sure it's an image right now (see line 64, "switch($userfile_type)")
*



lol oh no! whered my image checking section go...wow great lol. i had a file size upload limit too... somehow disappeared. lol well, give me a few more days ill fix it and tell you guys when to download the update.

QUOTE(Red89GT @ Feb 13 2006, 10:16 PM)
Cool script, but I found a error aswell.  Other than the fact that you can upload any file type. I selected to upload 3 pics but only ended up selecting 2 files to upload ( a image file and a exe file), but the script gave me the code for all 3 even tho only 2 things were uploaded.
*



yeah working on the file type thing, sorry. id reccomend you dont download the zip until i fix it just yet, for security issues. lol, and i dont even know if i want to fix your 'bug', since you told the script you wanted 3 boxes and only used 2. it outputting an extra table isnt that distracting, and it teaches you to lie to php scripts!
-------------


lol thanks for the bug reports guys i appreciate it. ill get started tomorrow, got a big date planned tonight for valentines day! happy valentines day everyone tongue.gif
zac439
wooho! had an hour to work on it! its done. now;

1.) FILETYPES ACCEPTED: .jpg, .gif, .bmp

am i missing anything? anything else will result in an error smile.gif

anything else im missing guys? i updated the zip file at

www.charitypixel.net/index/multi.zip
Mynck
You're missing .png and .jpeg. Some other less widely used formats are .tiff, .tif, .raw, and .svg.
You shouldn't allow .bmp, really, that just wastes space and bandwidth.
zac439
QUOTE(Mynck @ Feb 14 2006, 06:03 PM)
You're missing .png and .jpeg. Some other less widely used formats are .tiff, .tif, .raw, and .svg.
You shouldn't allow .bmp, really, that just wastes space and bandwidth.
*



took out bmp, added:

png , jpeg, tiff, tif , raw. (i didnt add svg on account i dont know what its for, and havent seen it so it cant be THAT popular tongue.gif)

anything else guys? updated zip at:
www.charitypixel.net/index/multi.zip

thanks!!
Mynck
I've never heard of svg either, but... http://en.wikipedia.org/wiki/SVG

It turns out that SVG is weird image format that allows interaction and scripting... kinda like Macromedia Flash files. The images are saved in a text-based XML-like format.


An example image: http://upload.wikimedia.org/wikipedia/en/1/15/Svg.svg

Yay! Firefox can display svg images!
~*77*~
The site for this hack seems to have died. I would love to see it and give it a shot.

Anyone know another way to get it?

Thanks.
zac439
QUOTE(~*77*~ @ Jul 12 2006, 07:52 AM)
The site for this hack seems to have died.  I would love to see it and give it a shot.

Anyone know another way to get it?

Thanks.
*



Hey, Yeah i took the site down. I would have to remake it and that would take a lot of time. I will remake the hack though soon and put it up at a secure download site so it stays there smile.gif.
~*77*~
Thanks zac439 - That would be great!
guitar_freak22
The links don't work. I cannot get to it. Sounds cool though.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.