![]() |
Upload Hack
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 |
Screen Shot:
Heres the Main Screen |
Heres after you upload a file:
|
Heres the view menu screen:
|
Heres how the log looks:
|
So this is like having a private folder full of your own pictures? Pretty cool.
|
yea, you can also set what file types are allowed to be uploaded too, so if you want you could allow .html and let your memmbers create mini web pages, you can set what file types are allowed to be uploaded and the size and theres a couple other features, one way is to let users upload images to show on forums useing [ img ]
|
Ok, can I upload to a different server? I am trying to separate attachments and have them uploaded to a server other than the one the forum is hosted on
|
Heres what it looks like on ftp, each user has there own folder to upload to, the user folders automaticly get created
|
mine only works on the server its located on at the moment
|
Quote:
|
Quote:
|
Thank you, Slynderdale :) Is it possible to set a "disk quota" for each user?
|
Quote:
|
What versions of VB does this work on?
|
hmm, i would say all versions because the only thing it checks vbulletin for is the user pass and account on the mysql database
|
if your useing an older version of vbulletin that doesnt encryted the passes, in the config.php find $encryptedpw = "true"; and change it to $encryptedpw = "false";
|
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 :)
|
Thanks...This hacks is cool.
would it be possible if you add image size (pixels) check or resize image (if possible???) also add more upload boxes??? (example like 5 upload box.) Thank You |
hmm, yea i could add that, ill add it for the next version i relase, you can customize it as you wish in the config file, i could add a limit on image sizes too
|
And you say you are a newbie on php? :D:D:D
Great hack! |
its not working, says mkdir failed. I chmodded the directories
|
Quote:
|
you just need to chmod that directory, the upload script does the rest
|
Quote:
chmodded 777 it says: Warning: MkDir failed (No such file or directory) in /home/otbackup/public_html/upload.php on line 114 Warning: fopen("//public_html/upload/guest/index.html", "a") - No such file or directory in /home/otbackup/public_html/upload.php on line 116 |
ok, never mind, i got it to work, how can I edit it so it doesnt ask for username/password, just dumps it in guest directory?
|
great hack. btw do you always need a password to download because there's probably some users that would use it as a leech directory.
|
Hey this looks cool. What a nice addon to my forum :)
|
Quote:
|
If any one uses this on there website, tell me how your members like it, and if you want, send me a link to your forums
|
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:
|
Its a nice hack, I will wait for the update before I install
|
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.
|
I will use the current version and then update once it is ready. thanks for the info.
|
keep up the good work, 2.0 looks promising
|
oh and how about pics with spaces or illegal characters....can it pop an error saying unacceptable file name or something?
|
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
|
The following code can help to generate thumbnails, provided your server is installed with imagemagick:
PHP Code:
$path = "/home/yoursite/public_html/images"; 2. $thumbname refers to the name u give to your thumbnail |
Quote:
for the use of the script which you have edited that he created ? |
i am installing this now definitlly, hope it do fix my upload limit problem :)
well let ya know thanks alot |
All times are GMT. The time now is 06:37 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|