Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Upload Hack Details »»
Upload Hack
Version: 1.00, by Slynderdale Slynderdale is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 04-09-2002 Last Update: Never Installs: 78
 
No support by the author.

Im a newbie at php, and this is my first hack, its a uploader i made that uses your vbulletin forum's accounts and pass to upload files into there private folder, it also lets people view what files they uploaded, it also logs when, who, what file was uploaded and the size of the forum to a text file. When some one uplaods it creates a sub folder thats the same as there username and a blank index.html file so no one can browse through there stuff and then uploads the image into there personal sub folder, you can also edit authvb to only alow certain usergroups to upload.

How to setup:
Open config.php and change the settings to how you want them
upload config.php,upload.php and authvb.php
chmod the folder where the log file will go and where the account sub folders will be places so there read and write, probily 0777

Thats it, now go to upload.php and use your vbulletin account and pass and upload a file

Coming soon:
Delete feature
File count limit

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 04-10-2002, 03:21 AM
Slynderdale Slynderdale is offline
 
Join Date: Mar 2002
Location: New York State
Posts: 576
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

im working on a updated uploads and config, i never thought so many people would like it, heres what the update will have

PHP Code:
//**Email Configuration - use to control the uploading
$email=""Webmasters email
$email_notify 
"no" //If yes, it emails the email above if some one uploads and deletes a file
//Note: Web host must have email support

//**URL Configuration - change them to fit your site
$absolute_path "/home/your site/files"//Absolute path to where files are uploaded
$site_url "http://your site.com/files/"//the url to where files are uploaded
$log_path ""//the path to where the log file will go

//**File Configuration - use to control the uploading
$logging "no" //logs what people do to a text file
$size_limit "no"//do you want a size limit yes or no.
$limit_size "2000"//How big do you want size limit to be in bytes
//Note: 1 KB = 1024 bytes 1 MB = 1048576 bytes
$limit_ext "yes"//do you want to limit the extensions of files uploaded
$extensions = array(".gif"".jpg"".jpeg"".png"".bmp"); //List extensions you want files uploaded to be
$pixellimit "false";  //do you want to limit the pixel size of images?
$resizeimg "false";  //resize the image if its to big
$widthlimit "100";  //max width size in pixels
$lengthlimit "100";  //max length size in pixels
$allow_databaselimit "yes";  //limit members database size?
$database_quota_limit "5048576";  //database size limit in bytes

//**Account Configuration - use to add accounts and limit there access
$bannedaccounts = array();
$allow_guest_uploads "yes";

//**Site Configuration - use to change how the uploader looks
$show_img "yes"//do you want the image you uploaded to show on the screen after you upload
$show_link "yes"//do you want the link to the file you uploaded to show on the screen after you upload
$comment_mainpage ""//The comment that apears at the bottom of the main page
$comment_upload ""//The comment that apears at the bottom of the upload page
$comment_view ""//The comment that apears at the bottom of the view page
$comment_delete ""//The comment that apears at the bottom of the delete page
$link_url ""//The url of the link that apears at the bottom of every page
$link_name ""//The name of the link that apears below every page

//**Color and Text Configuration
$color_background "#18576F"//The background color
$color_title_table "#5E6A7B"//The title table color
$color_body_table "#818EA0"//The body table color
$color_text "#FFFFFF"//The text color
$color_link "#818EA0"//The link color
$color_vlink "#5C697A"//The visited link color
$color_alink "#818EA0"//The active link color
$text_font "Verdana"//The font the text uses
$text_size "8"//The text size
$text_size_title "8"//The title table text size
$text_size_body "8"//The body table text size

//**Database Configuration
$checkservername "localhost";            // hostname or ip of server
$dbcheckbase     "database name";        // name of database
$encryptedpw      "true";            // encrypted (md5) passwords on/off (true/false)
$dbcheckusername "database username";   //database user name
$dbcheckpassword "database password";   //database password 
Reply With Quote
  #33  
Old 04-10-2002, 03:28 AM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Its a nice hack, I will wait for the update before I install
Reply With Quote
  #34  
Old 04-10-2002, 03:39 AM
Slynderdale Slynderdale is offline
 
Join Date: Mar 2002
Location: New York State
Posts: 576
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the update will be out in a day or two, at the most, a week, when its done it should be highy customizable, you can install version 1.0 if you want but when 2.0 you can just edit the config and upload over the old files. Hmm, idea, maybe add some admin options like view a list of those who uploaded, there quota, and a view and delete ability.
Reply With Quote
  #35  
Old 04-10-2002, 03:44 AM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I will use the current version and then update once it is ready. thanks for the info.
Reply With Quote
  #36  
Old 04-10-2002, 04:47 AM
freakyshiat freakyshiat is offline
 
Join Date: Nov 2001
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

keep up the good work, 2.0 looks promising
Reply With Quote
  #37  
Old 04-10-2002, 05:02 AM
freakyshiat freakyshiat is offline
 
Join Date: Nov 2001
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oh and how about pics with spaces or illegal characters....can it pop an error saying unacceptable file name or something?
Reply With Quote
  #38  
Old 04-10-2002, 06:07 AM
Slynderdale Slynderdale is offline
 
Join Date: Mar 2002
Location: New York State
Posts: 576
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm alright, ill add some customizable error messages that come up for errors, also in the new version im gonna fix the coding up so its esier to read and cleaner
Reply With Quote
  #39  
Old 04-10-2002, 06:32 AM
WallStreat WallStreat is offline
 
Join Date: Oct 2001
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The following code can help to generate thumbnails, provided your server is installed with imagemagick:


PHP Code:
if ($extension == "gif" or $extension == "png") { 



system("$galleryconvert -geometry '160x120>' $path GIF:$thumbname"); 



} elseif (
$extension == "jpg" or $extension == "jpeg" or $extension == "jpe" or $extension == "png" or $extension == "bmp") { 



system("$galleryconvert -geometry '600x120>' $path -flatten -quality '75' JPEG:$thumbname"); 




1. $path refers to the directory where u store the thumnails e.g.
$path = "/home/yoursite/public_html/images";

2. $thumbname refers to the name u give to your thumbnail
Reply With Quote
  #40  
Old 04-11-2002, 08:52 PM
Modshack's Avatar
Modshack Modshack is offline
 
Join Date: Oct 2001
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Slynderdale
If you plan on useing this on your website, i only ask for one thing, dont say you made it, if you want to give me credit for it you can, you can edit it as you wish, also if you like it, please press install the hack so you get notices on any new updates on it, Thank You
Does this include you adding a credit to CyberGaf who made the vbauth file here http://www.vbulletin.org/hacks/index...ack&hackid=282 ?
for the use of the script which you have edited that he created ?
Reply With Quote
  #41  
Old 04-12-2002, 01:02 AM
camikazi2k camikazi2k is offline
 
Join Date: Jan 2002
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i am installing this now definitlly, hope it do fix my upload limit problem
well let ya know
thanks alot
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:15 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04592 seconds
  • Memory Usage 2,335KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete