php forum
php mysql forum
php mysql smarty
 
Page 1 of 10 1 2 3 ... 9 10 >
Topic Options
#202951 - 05/04/04 06:21 AM [6.7] [beta] UBB.Uploader
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio

   [6.7] [beta] UBB.Uploader to Del.icio.us Add to del.icio.us
  Digg [6.7] [beta] UBB.Uploader Digg it
Modification Name: UBB.Uploader

Author(s): Brett

Description: Adds a link to topic forms to allow the user to upload files to the server. A link is also added the avatar popup to allow the user to upload a custom avatar. In the upload popup, the user has the ability to delete previously uploaded files through an 'upload manager'.

All of these settings are controlled through the CP. (primary settings -> general), where the admin can set what user groups can upload files and/or avatars, how big of files they can upload, and how many each group can store. The admin can also set the type of files/avatars that can be uploaded, and the upload paths.

Also added is a field to the properties of each forum details to allow or turn off file uploads. And a field is added to each profile to override user group settings to either allow or completely block a user.

Files are loaded to the uploads_dir/user_number. You can put it into a new directory, as it will attempt to create it, as long as the parent directory exists.


A little bonus, (gizzy's idea wink ), was the ability, through upload manager, to go into other user directories and delete files in there. Right now, only administrators have the privilages. To change it, go to the ManagePage function, and change the "$user_profile[8] eq 'Administrator'" part.

Demo: http://www.pavioni.com/ubb/ultimatebb.php

Download Link: http://www.ubbdev.com/ubb/upload/00006378/Uploader6.7.zip

If your behind a firewall/router; it may be blocking the ability for the server reading your referer, thus disabling the uploader. Click below for a version without the referer check.

[ link removed, link above does the job ]

Credits: Allen Ayres, LK and freeTV, and Ely_M, Ian Spence(for some of the manager code laugh )

A somewhat strict security precaution was added to prevent users from impersonating fields, like forum numbers. This is done through the user referal. It will strip/shred it, and the user coming from the host or a valid forum number, it will give an error. If it smells a foreign host, it'll pull posthackdetails. You can't also just call ubb_upload.cgi through the address bar.

In other words, it won't function without a referer. If you encounter problems with it, when it's not supposed to error out. Please post here if you do.


To test it out on my board.
username: ubbtest
password: test

Top
#202952 - 05/04/04 09:07 AM Re: [6.7] [beta] UBB.Uploader
mmg Offline
Junior Member

Registered: 07/17/03
Posts: 6
Brett,
Thanks for doing this hack. I tried to upload something (target.gif) at your site, but received the following error: "You are trying to upload something with an illegal extentsion. The currently allowed are: gif, and you tried to upload a zip, txt, tar.gz, tar file."

I used the login you provided and registered there to test it, but still received the same error.

Top
#202953 - 05/04/04 09:10 AM Re: [6.7] [beta] UBB.Uploader
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio
I didn't have gif in my regular extentsion list. I just put it in there. Try it now. smile

Top
#202954 - 05/04/04 09:39 AM Re: [6.7] [beta] UBB.Uploader
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Unable to parse your referer. Are you sure you clicked on it through the forums?

smile Quite sure, clicked through quick reply
_________________________
Code monkey like Fritos

Top
#202955 - 05/04/04 09:43 AM Re: [6.7] [beta] UBB.Uploader
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio
I altered something that might have done that 10 minutes ago. Redownload ubb_upload.cgi, and reupload it. smile

Top
#202956 - 05/04/04 09:45 AM Re: [6.7] [beta] UBB.Uploader
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5122
Loc: Portland, OR, USA
hehe, idea by Gizzy :-x... I still say being able to publish extensions through a UI would be good frown .
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#202957 - 05/04/04 09:49 AM Re: [6.7] [beta] UBB.Uploader
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
reupload? This was on your forums, can't install this till tonight tipsy .

PS. No credit for the person who's file manager you said you based yours on? frown
_________________________
Code monkey like Fritos

Top
#202958 - 05/04/04 10:00 AM Re: [6.7] [beta] UBB.Uploader
mmg Offline
Junior Member

Registered: 07/17/03
Posts: 6
Brett,
The upload worked great this time. Thanks again for doing the mod.

Top
#202959 - 05/04/04 10:07 AM Re: [6.7] [beta] UBB.Uploader
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio
np, smile

Ian found a minor bug as it wouldn't parse through the extended spider links properly. I have updated ubb_upload.cgi. I have double checked all 3 kinds of spider options from the cp and all work correctly for me. The only file to upload is the ubb_upload.cgi.

Top
#202960 - 05/04/04 10:51 AM Re: [6.7] [beta] UBB.Uploader
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 685
Hi Brett,

when I want to upload somethin I get this error

Unable to detect referer. You must click the upload link directly to upload files.

What have I to do?
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#202961 - 05/04/04 10:54 AM Re: [6.7] [beta] UBB.Uploader
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio
You can't go to the ubb_upload.cgi file directly. It has to be clicked from on the board. Like the reply/topic pages.

Top
#202962 - 05/04/04 10:55 AM Re: [6.7] [beta] UBB.Uploader
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
did you upload the new ubb_upload.cgi?
_________________________
Code monkey like Fritos

Top
#202963 - 05/04/04 11:01 AM Re: [6.7] [beta] UBB.Uploader
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 685
Hi Brett I have clicked at the link at the new topics page....

Ian I have uploaded the new file...
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#202964 - 05/04/04 11:05 AM Re: [6.7] [beta] UBB.Uploader
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio
Could i get a link to your board w/test username & password?

Top
#202965 - 05/04/04 11:05 AM Re: [6.7] [beta] UBB.Uploader
eXtremeTim Offline
Member

Registered: 10/13/01
Posts: 544
I will let you know if this works with 6.6 hopefully tonight.
_________________________
United Devices Points: [img]http://www.ubbdev.com/ud/?u=extremetim&s=1[/img]

Top
#202966 - 05/04/04 11:10 AM Re: [6.7] [beta] UBB.Uploader
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 685
http://www.d-talk.tv/cgi-bin/ultimatebb.cgi

Username: Testuser

password: CCTK86
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#202967 - 05/04/04 11:21 AM Re: [6.7] [beta] UBB.Uploader
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio
I was able to open it up without issues. Do you have a firewall installed?

Top
#202968 - 05/04/04 11:24 AM Re: [6.7] [beta] UBB.Uploader
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 685
Yes a router.... frown

I get the same error at your board...
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#202969 - 05/04/04 11:28 AM Re: [6.7] [beta] UBB.Uploader
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio
ok, what i can do is release a version without this check since i know some routers/firewalls can block servers from reading the referer. It will still have the same features.

I will still leave the original download available.

Top
#202970 - 05/04/04 11:29 AM Re: [6.7] [beta] UBB.Uploader
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 685
How long does it take to release this new version? :rolleyes:
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
Page 1 of 10 1 2 3 ... 9 10 >


Moderator:  Charles, Gizmo 
Who's Online
0 Registered (), 46 Guests and 5 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Blogs, love em or hate em?
by Ian_W
Yesterday at 03:47 PM
What do you use to edit the files
by Ian_W
Yesterday at 03:33 PM
BeyondCompare v3.00
by Ian_W
Yesterday at 03:32 PM
Glossy Black Theme with Image Reflection
by Gizmo
Yesterday at 02:17 PM
ShareThis
by Gizmo
09/28/08 05:06 AM
[7.3] Viewing MySQL logfiles made easier
by AllenAyres
09/27/08 09:57 PM
Looking for a simple upload script
by Murphdog
09/26/08 08:45 PM
New Mods
[7.3] Viewing MySQL logfiles made easier
by blaaskaak
09/24/08 05:39 PM
[7.3] Language file checker
by blaaskaak
09/09/08 12:56 AM
[7.3.1] add search to showmembers page
by blaaskaak
09/07/08 04:50 AM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
ghengis317, NitroX, Dogan, EliYah-, W-D
13344 Registered Users
Top Posters Last 30 Days
AllenAyres 16
blaaskaak 13
FREAK1 7
Mike L_dup1 4
Chris Bale 4
Ian_W 4
tackaberry 3

 

 

 
fusionbb message board php hacks