PDA

View Full Version : Uploader Views (+8REP)



Carlsta
21-02-2007, 10:56 AM
Installed EasyImageHoster to:

http://carlstac.com/uploader/

Just wanted to know what file types i should allow...

I want more than images to be allowed...

List what you think i should allow +8rep for all help!

Would help if when your looking you find code on here:
http://www.phpfreaks.com/mimetypes.php

OMGitsaROSS
21-02-2007, 10:57 AM
PNG
BMP
GIF
NO JPGs ;)

Racoon
21-02-2007, 11:00 AM
PNG Definatly. It is better pic quality

OMGitsaROSS
21-02-2007, 11:01 AM
Layout is nice aswell, simple :)

Carlsta
21-02-2007, 11:01 AM
PNG Allowed
BMP Allowed
GIF Allowed
JPEG Allowed
PJPEG Allowed
WAV Allowed

Blob
21-02-2007, 11:05 AM
Allow PHP but convert it into a PHPS

Carlsta
21-02-2007, 11:07 AM
Why allow php? and i don't know how to convert them lolz *is a php noob*

Blob
21-02-2007, 11:10 AM
Allow PHP so people can upload php scripts which turns them into the source to show other people

Carlsta
21-02-2007, 11:12 AM
Ok then i will allow :)

Would help if when your looking you find code on here:
http://www.phpfreaks.com/mimetypes.php

Blob
21-02-2007, 11:13 AM
There on CPanel:

application/andrew-inset - ez
application/atom+xml - atom
application/mac-binhex40 - hqx
application/mac-compactpro - cpt
application/mathml+xml - mathml
application/msword - doc
application/octet-stream - bin dms lha lzh exe class so dll dmg
application/oda - oda
application/ogg - ogg
application/pdf - pdf
application/postscript - ai eps ps
application/rdf+xml - rdf
application/smil - smi smil
application/srgs - gram
application/srgs+xml - grxml
application/vnd.mif - mif
application/vnd.mozilla.xul+xml - xul
application/vnd.ms-excel - xls
application/vnd.ms-powerpoint - ppt
application/vnd.rn-realmedia - rm
application/vnd.wap.wbxml - wbxml
application/vnd.wap.wmlc - .wmlc wmlc
application/vnd.wap.wmlscriptc - .wmlsc wmlsc
application/voicexml+xml - vxml
application/x-bcpio - bcpio
application/x-cdlink - vcd
application/x-chess-pgn - pgn
application/x-cpio - cpio
application/x-csh - csh
application/x-director - dcr dir dxr
application/x-dvi - dvi
application/x-futuresplash - spl
application/x-gtar - gtar
application/x-hdf - hdf
application/x-httpd-php - .php .php4 .php3 .phtml
application/x-httpd-php-source - .phps
application/x-javascript - js
application/x-koan - skp skd skt skm
application/x-latex - latex
application/x-netcdf - nc cdf
application/x-pkcs7-crl - .crl
application/x-sh - sh
application/x-shar - shar
application/x-shockwave-flash - swf
application/x-stuffit - sit
application/x-sv4cpio - sv4cpio
application/x-sv4crc - sv4crc
application/x-tar - .tgz tar
application/x-tcl - tcl
application/x-tex - tex
application/x-texinfo - texinfo texi
application/x-troff - t tr roff
application/x-troff-man - man
application/x-troff-me - me
application/x-troff-ms - ms
application/x-ustar - ustar
application/x-wais-source - src
application/x-x509-ca-cert - .crt
application/xhtml+xml - xhtml xht
application/xml - xml xsl
application/xml-dtd - dtd
application/xslt+xml - xslt
application/zip - zip
audio/basic - au snd
audio/midi - mid midi kar
audio/mpeg - mpga mp2 mp3
audio/x-aiff - aif aiff aifc
audio/x-mpegurl - m3u
audio/x-pn-realaudio - ram ra
audio/x-wav - wav
chemical/x-pdb - pdb
chemical/x-xyz - xyz
image/bmp - bmp
image/cgm - cgm
image/gif - gif
image/ief - ief
image/jpeg - jpeg jpg jpe
image/png - png
image/svg+xml - svg
image/tiff - tiff tif
image/vnd.djvu - djvu djv
image/vnd.wap.wbmp - .wbmp wbmp
image/x-cmu-raster - ras
image/x-icon - ico
image/x-portable-anymap - pnm
image/x-portable-bitmap - pbm
image/x-portable-graymap - pgm
image/x-portable-pixmap - ppm
image/x-rgb - rgb
image/x-xbitmap - xbm
image/x-xpixmap - xpm
image/x-xwindowdump - xwd
model/iges - igs iges
model/mesh - msh mesh silo
model/vrml - wrl vrml
text/calendar - ics ifb
text/css - css
text/html - .shtml html htm
text/plain - asc txt
text/richtext - rtx
text/rtf - rtf
text/sgml - sgml sgm
text/tab-separated-values - tsv
text/vnd.wap.wml - .wml wml
text/vnd.wap.wmlscript - .wmls wmls
text/x-setext - etx
video/mpeg - mpeg mpg mpe
video/quicktime - qt mov
video/vnd.mpegurl - mxu m4u
video/x-msvideo - avi
video/x-sgi-movie - movie
x-conference/x-cooltalk - ice

Isolde
21-02-2007, 11:13 AM
Where is Ad? He gonna have a go at another person for making a uploader that has been made by 1000's and whos needs another one? I'm ready if his gonna have at Carlsta but thats the thing, his not gonna have a go at her like he did to me because he sucks up to people with higher rep.

He clamied that i just got the script and put it on my site, Carlsta, i'm using same script as you... www.JunkPalace.net (http://www.JunkPalace.net) look at your site and mine, tell me how much i've changed? Alot. And he thinks i just got the script and put it on mysite.

If he has a go at you, then ignore him, i've told him all he knows and he needs to get it through his thick head.

Your probably thinking wth! But if you read the thread 'JunkPalace.net' in the Website advertisement forum you'll know what i'm on about.

Nice uploader btw, i like it. You should make a template for it, i don't mind helping. Oh and have you figured out the error with the uploader? When you upload look at the BBcode section, its put the tags in the wrong place. You can fix it by editing basic.php or if u want i can give you mine ?

EDIT: +rep Carlsta, love the uploader.

EDIT: You also need to edit the config.php file putting in your site details in to make the images that have been uploaded work and you need to edit the index.php to edit the url of the banner.. coz when u click the banner it takes u to the easyimagehoster site.

Carlsta
21-02-2007, 11:15 AM
Please help me

ME = PHP Newwwb :P upload it like and pm me it :)

Would help if when your looking you find code on here:
http://www.phpfreaks.com/mimetypes.php

Blob
21-02-2007, 11:19 AM
Please help me

ME = PHP Newwwb :P upload it like and pm me it :)

Would help if when your looking you find code on here:
http://www.phpfreaks.com/mimetypes.php

Look yourself, there on CPANEL:

application/andrew-inset - ez
application/atom+xml - atom
application/mac-binhex40 - hqx
application/mac-compactpro - cpt
application/mathml+xml - mathml
application/msword - doc
application/octet-stream - bin dms lha lzh exe class so dll dmg
application/oda - oda
application/ogg - ogg
application/pdf - pdf
application/postscript - ai eps ps
application/rdf+xml - rdf
application/smil - smi smil
application/srgs - gram
application/srgs+xml - grxml
application/vnd.mif - mif
application/vnd.mozilla.xul+xml - xul
application/vnd.ms-excel - xls
application/vnd.ms-powerpoint - ppt
application/vnd.rn-realmedia - rm
application/vnd.wap.wbxml - wbxml
application/vnd.wap.wmlc - .wmlc wmlc
application/vnd.wap.wmlscriptc - .wmlsc wmlsc
application/voicexml+xml - vxml
application/x-bcpio - bcpio
application/x-cdlink - vcd
application/x-chess-pgn - pgn
application/x-cpio - cpio
application/x-csh - csh
application/x-director - dcr dir dxr
application/x-dvi - dvi
application/x-futuresplash - spl
application/x-gtar - gtar
application/x-hdf - hdf
application/x-httpd-php - .php .php4 .php3 .phtml
application/x-httpd-php-source - .phps
application/x-javascript - js
application/x-koan - skp skd skt skm
application/x-latex - latex
application/x-netcdf - nc cdf
application/x-pkcs7-crl - .crl
application/x-sh - sh
application/x-shar - shar
application/x-shockwave-flash - swf
application/x-stuffit - sit
application/x-sv4cpio - sv4cpio
application/x-sv4crc - sv4crc
application/x-tar - .tgz tar
application/x-tcl - tcl
application/x-tex - tex
application/x-texinfo - texinfo texi
application/x-troff - t tr roff
application/x-troff-man - man
application/x-troff-me - me
application/x-troff-ms - ms
application/x-ustar - ustar
application/x-wais-source - src
application/x-x509-ca-cert - .crt
application/xhtml+xml - xhtml xht
application/xml - xml xsl
application/xml-dtd - dtd
application/xslt+xml - xslt
application/zip - zip
audio/basic - au snd
audio/midi - mid midi kar
audio/mpeg - mpga mp2 mp3
audio/x-aiff - aif aiff aifc
audio/x-mpegurl - m3u
audio/x-pn-realaudio - ram ra
audio/x-wav - wav
chemical/x-pdb - pdb
chemical/x-xyz - xyz
image/bmp - bmp
image/cgm - cgm
image/gif - gif
image/ief - ief
image/jpeg - jpeg jpg jpe
image/png - png
image/svg+xml - svg
image/tiff - tiff tif
image/vnd.djvu - djvu djv
image/vnd.wap.wbmp - .wbmp wbmp
image/x-cmu-raster - ras
image/x-icon - ico
image/x-portable-anymap - pnm
image/x-portable-bitmap - pbm
image/x-portable-graymap - pgm
image/x-portable-pixmap - ppm
image/x-rgb - rgb
image/x-xbitmap - xbm
image/x-xpixmap - xpm
image/x-xwindowdump - xwd
model/iges - igs iges
model/mesh - msh mesh silo
model/vrml - wrl vrml
text/calendar - ics ifb
text/css - css
text/html - .shtml html htm
text/plain - asc txt
text/richtext - rtx
text/rtf - rtf
text/sgml - sgml sgm
text/tab-separated-values - tsv
text/vnd.wap.wml - .wml wml
text/vnd.wap.wmlscript - .wmls wmls
text/x-setext - etx
video/mpeg - mpeg mpg mpe
video/quicktime - qt mov
video/vnd.mpegurl - mxu m4u
video/x-msvideo - avi
video/x-sgi-movie - movie
x-conference/x-cooltalk - ice

The ones you need are
image/bmp
image/gif
image/png
image/jpg
application/x-httpd-php

Carlsta
21-02-2007, 11:23 AM
The ones you need are
image/bmp
image/gif
image/png
image/jpg
application/x-httpd-php

They are all allowed...
I just wanted to know peoples opinion on what to use!

Isolde i've edited banner url thanks and the config i've already edited before +rep for both :D

Isolde
21-02-2007, 11:37 AM
No problem =] Love to help!

OMGitsaROSS
21-02-2007, 11:40 AM
when will it be finisehd you rekon?

Carlsta
21-02-2007, 11:42 AM
When people help me more :P

Blob
21-02-2007, 11:52 AM
When people help me more :P

1 More to the people of 'Who cant do a site' ..

Carlsta
21-02-2007, 11:54 AM
I can do a site lolz just want like people's help...

if (($_FILES['userfile']['type']=="image/gif") ||
($_FILES['userfile']['type']=="image/pjpeg") ||
($_FILES['userfile']['type']=="image/jpg") ||
($_FILES['userfile']['type']=="image/png") ||
($_FILES['userfile']['type']=="image/bmp") ||
($_FILES['userfile']['type']=="application/x-httpd-php") ||
($_FILES['userfile']['type']=="application/x-rar-compressed") ||
($_FILES['userfile']['type']=="application/octet-stream") ||
($_FILES['userfile']['type']=="audio/mp3") ||
($_FILES['userfile']['type']=="audio/wav") ||
($_FILES['userfile']['type']=="application/zip") ||
($_FILES['userfile']['type']=="text/txt"))
{

mmmm what else!

Blob
21-02-2007, 11:55 AM
Maybe allow MP3?

Carlsta
21-02-2007, 12:00 PM
($_FILES['userfile']['type']=="audio/mp3") ||

MP3 is allowed

Blob
21-02-2007, 12:03 PM
Maybe have a function: If it is a image/ Thing, but you havent allowed it, convert it into PNG etc.

Carlsta
21-02-2007, 12:04 PM
How would i do that ryan?

Blob
21-02-2007, 12:06 PM
You know my name :O

Lol I dunno :S

Carlsta
21-02-2007, 12:07 PM
Your signature...

Well for now i'll alow thosee !

redtom
21-02-2007, 01:00 PM
.psd

making it longer

Carlsta
21-02-2007, 01:02 PM
image/photoshop
image/x-photoshop
image/psd
application/photoshop
application/psd
zz-application/zz-winassoc-psd

mmmmm which one of those shall i choose lol

Isolde
21-02-2007, 01:07 PM
Your signature...

Well for now i'll alow thosee !

psml .

redtom
21-02-2007, 01:12 PM
.swf and .fla (or what ever flash is) files.

Isolde
21-02-2007, 01:18 PM
I like the fact that your allowing every file type, which is good. Keep it up!

Carlsta
21-02-2007, 01:33 PM
($_FILES['userfile']['type']=="video/x-FLV")) (Flash was .flv)
($_FILES['userfile']['type']=="application/x-shockwave-flash") (.swf)

Both been allowed :D

Isolde
21-02-2007, 01:37 PM
Wicked. =] Keep it going!

Carlsta
21-02-2007, 01:40 PM
I am anymore people want?!

Blob
21-02-2007, 01:41 PM
PHP Dont work.

Carlsta
21-02-2007, 01:43 PM
ITS BEING REMOVED!

ZAG
21-02-2007, 01:49 PM
What's being removed?

Carlsta
21-02-2007, 01:50 PM
PHP!!! cause someone decided to upload a hack!

Isolde
21-02-2007, 01:53 PM
I told you not to add it because these things could happen but you never listent to me. Nice one. =[

Carlsta
21-02-2007, 01:54 PM
It's ok it will be back once all files removed!

ZAG
21-02-2007, 01:57 PM
Why are you deleting all the files?

Isolde
21-02-2007, 01:58 PM
Because Carl allowed PHP and someone uploaded a PHP file that exploit the whole uploader. Thanks to some smartass. Carl will be removing it and it will be back up normal soon.

ZAG
21-02-2007, 02:00 PM
If you allow PHP files, people have access to the whole lot of functions. They can delete things, create things, modify things. Same thing happened to Habbonet.org uploader:

http://habbonet.org/uploader

Isolde
21-02-2007, 02:01 PM
Told carl but didn't listen, promised he'd listen in the future. BETTER! xD

Blob
21-02-2007, 02:02 PM
Just delete all the files in files/ or something... Or reupload index.php

Carlsta
21-02-2007, 02:10 PM
I'm trying but it keeps erroring ang on :D

beer
21-02-2007, 02:14 PM
will u post the code so other ppl with this script *cough* me *cough* can enable other file types aswell? Thanks.

Isolde
21-02-2007, 02:20 PM
http://www.phpfreaks.com/mimetypes.php

It's on there beer.

Carlsta
21-02-2007, 02:29 PM
Use the mimetypes site..

($_FILES['userfile']['type']=="image/psd") ||

then you change the image/psd to what ever it is..
Just keep adding to it!

beer
21-02-2007, 02:35 PM
yeah but i keep getting:


Warning: imagesx(): supplied argument is not a valid Image resource in /home/clubhabb/public_html/imagehosting/basic.php on line 109

Warning: imagesy(): supplied argument is not a valid Image resource in /home/clubhabb/public_html/imagehosting/basic.php on line 110

Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/clubhabb/public_html/imagehosting/basic.php on line 131

Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/clubhabb/public_html/imagehosting/basic.php on line 148

when i upload. maybe uve figured out how to stop that?

edit: oh ok mebe not

Carlsta
21-02-2007, 02:37 PM
No lolz...!

Isolde
21-02-2007, 02:39 PM
I dunno either, sorry guys.

Carlsta
21-02-2007, 02:42 PM
Anymore types that should be allowed
EXCEPT PHP!

Isolde
21-02-2007, 02:50 PM
rar zip wav mp3 flv psd (all i can think off)

Blob
21-02-2007, 03:16 PM
I told you to convert them into PHPS

Carlsta
21-02-2007, 03:19 PM
I told you i didnt know how... anyway! I'll just not allow them!"

Luckyrare
21-02-2007, 04:56 PM
Looks ok but are you allowed to use the imageshack logo? o.O

Josh-H
21-02-2007, 05:46 PM
Looks ok but are you allowed to use the imageshack logo? o.O

It comes with the script/

Luckyrare
21-02-2007, 06:00 PM
It comes with the script/

Ah ok, sorry ;)

Isolde
21-02-2007, 06:54 PM
I got abused for it when i didn't get the chance to say that either. >.<

ScottDiamond
21-02-2007, 08:59 PM
Where can I get the script?

Isolde
21-02-2007, 09:26 PM
EasyImageHoster google it.

ScottDiamond
21-02-2007, 10:40 PM
Thanks.

Isolde
22-02-2007, 09:30 AM
No problem .

Want to hide these adverts? Register an account for free!