Isomerizer Posted July 12, 2007 Share Posted July 12, 2007 Hey, made this mod for my game, so as usual i'll post here, Works fine for me... this mod will add an image upload for profile pics on your game, to stop several exploits, This improves security (hopefully) :P. Follow th below instructions and it should go fine. Update ASAP, Mass security updates have been added. Updates: -Code stripped from files uploaded. -Will stop bad file extensions, such as shells. -2nd Security update. -Only one image can be on the web server per user. -Images cannot be used more then twice to save space. -Crons / Extra SQL is no longer needed. -Security update. -Variables Fixed. Before you do the below on your FTP under public_html create a new directory called "profilepics" with the CHMOD permissions set to 757. Create uploadpic.php with the code: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Open preferences.php and change You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. To... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Delete from preferences.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. For extra security, "profilepics" directory can be stopped from executing any script. Create sseccath. <- (spelt backwards, as CE wont allow the word) with: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and place in "profilepics". Can be seen working @ www.amazon-survival.com Quote Link to comment Share on other sites More sharing options...
Evil-Tcquest Posted July 12, 2007 Share Posted July 12, 2007 Re: [Free] [v1] Profile Image Uploader This is a good free image uploader and is very easy to add to your site/game. Quote Link to comment Share on other sites More sharing options...
seanybob Posted July 12, 2007 Share Posted July 12, 2007 Re: [Free] [v1] Profile Image Uploader I'm confused... what does adding this: mysql_query("UPDATE users SET display_pic_amount='0' WHERE userid=$userid", $c); to your cron do? Quote Link to comment Share on other sites More sharing options...
Evil-Tcquest Posted July 12, 2007 Share Posted July 12, 2007 Re: [Free] [v1] Profile Image Uploader Few Details: Max 2 uploads a day to stop spam, size can be edited, file extentions can be added. The rest is self-explanatory. Quote Link to comment Share on other sites More sharing options...
seanybob Posted July 13, 2007 Share Posted July 13, 2007 Re: [Free] [v1] Profile Image Uploader Few Details: Max 2 uploads a day to stop spam, size can be edited, file extentions can be added. The rest is self-explanatory. ah ok. Sorry, couldn't bother reading it all. Simply assumed it would only allow the user to host a single profile pic on the server, and when they upload a new one it would delete the old one. Seems the most efficient way to me. @iso - check out the php unlink() function m8 Quote Link to comment Share on other sites More sharing options...
Dabomstew Posted July 13, 2007 Share Posted July 13, 2007 Re: [Free] [v1] Profile Image Uploader The profilepics folder will also need to be chmodded 666 or 777 to allow the script to write to it. Quote Link to comment Share on other sites More sharing options...
Isomerizer Posted July 13, 2007 Author Share Posted July 13, 2007 Re: [Free] [v1] Profile Image Uploader ah ok. Sorry, couldn't bother reading it all. Simply assumed it would only allow the user to host a single profile pic on the server, and when they upload a new one it would delete the old one. Seems the most efficient way to me. @iso - check out the php unlink() function m8 Thanks seanybob ive updated the script now so it runs better :) The profilepics folder will also need to be chmodded 666 or 777 to allow the script to write to it. It still works if it isnt set to 666 / 777 Quote Link to comment Share on other sites More sharing options...
oxidati0n Posted July 13, 2007 Share Posted July 13, 2007 Re: [Free] [v1] Profile Image Uploader Hey, made this mod for my game, so as usual i'll post here, Works fine for me... this mod will add an image upload for profile pics on your game, to stop several exploits, This improves security (hopefully) :P. Follow th below instructions and it should go fine. Updates: -Only one image can be on the web server per user -Images cannot be used more then twice to save space -Crons / Extra sql is no longer needed -Security update -Variables Fixed Few Details: Size can be edited, File extentions can be added. Enjoy.... Before you do the below on your FTP under public_html create a new directory called "profilepics" Create uploadpic.php with the code: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Open preferences.php and change You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. To... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Delete from preferences.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Can be seen working @ www.amazon-survival.com Nice..+1 Quote Link to comment Share on other sites More sharing options...
Z?v?? Posted July 14, 2007 Share Posted July 14, 2007 Re: [Free] [v1] Profile Image Uploader Anyone else get errors in the uploadpic.php? Quote Link to comment Share on other sites More sharing options...
Isomerizer Posted July 14, 2007 Author Share Posted July 14, 2007 Re: [Free] [v1] Profile Image Uploader Anyone else get errors in the uploadpic.php? What errors you get zaver? Quote Link to comment Share on other sites More sharing options...
Magictallguy Posted July 15, 2007 Share Posted July 15, 2007 Re: [Free] [v1] Profile Image Uploader Anyone else get errors in the uploadpic.php? Parse error: syntax error, unexpected '}', expecting ',' or ';' in not/telling/you/this/bit!!/public_html/uploadpic.php on line 36 Quote Link to comment Share on other sites More sharing options...
Isomerizer Posted July 15, 2007 Author Share Posted July 15, 2007 Re: [Free] [v1] Profile Image Uploader Anyone else get errors in the uploadpic.php? Parse error: syntax error, unexpected '}', expecting ',' or ';' in not/telling/you/this/bit!!/public_html/uploadpic.php on line 36 Was missing a ; fixed now. Quote Link to comment Share on other sites More sharing options...
Magictallguy Posted July 17, 2007 Share Posted July 17, 2007 Re: [Free] [v1] Profile Image Uploader Haha, oh yea! Lol. Always the little things that I miss! ^_^ Quote Link to comment Share on other sites More sharing options...
Zaza Posted July 21, 2007 Share Posted July 21, 2007 Re: [Free] [v1] Profile Image Uploader i dont get where to put profilepics ??? Quote Link to comment Share on other sites More sharing options...
Isomerizer Posted July 21, 2007 Author Share Posted July 21, 2007 Re: [Free] [v1] Profile Image Uploader i dont get where to put profilepics ??? Before you do the below on your FTP under public_html create a new directory called "profilepics" Open up your FTP server, wait until it connects, then double click public_html. Then create a new file / directory in there called "profilepics" and it should work fine. :wink: Quote Link to comment Share on other sites More sharing options...
Zaza Posted July 21, 2007 Share Posted July 21, 2007 Re: [Free] [v1] Profile Image Uploader lol whats the FTP server? sorry but i barly ever use FTP.... Quote Link to comment Share on other sites More sharing options...
N00b Posted July 21, 2007 Share Posted July 21, 2007 Re: [Free] [v1] Profile Image Uploader This is way better than the standard 1 and i was looking for that for ages awesome!! +1 Quote Link to comment Share on other sites More sharing options...
Isomerizer Posted July 22, 2007 Author Share Posted July 22, 2007 Re: [Free] [v1] Profile Image Uploader lol whats the FTP server? sorry but i barly ever use FTP.... The address? :| Well it will be hosted on yours... So most probaly ftp://sitename.com Quote Link to comment Share on other sites More sharing options...
Zaza Posted July 22, 2007 Share Posted July 22, 2007 Re: [Free] [v1] Profile Image Uploader oo lmao haha i knew that thanks +1 :mrgreen: Quote Link to comment Share on other sites More sharing options...
John99 Posted July 25, 2007 Share Posted July 25, 2007 Re: [Free] [v1] Profile Image Uploader Yeah its a nice mod +1 Quote Link to comment Share on other sites More sharing options...
Jesse60905 Posted July 28, 2007 Share Posted July 28, 2007 Re: [Free] [v1] Profile Image Uploader V2 uploadpic.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. The rest should be the same. Quote Link to comment Share on other sites More sharing options...
-CrAzY- Posted August 9, 2007 Share Posted August 9, 2007 Re: [Free] [v1] Profile Image Uploader Great Mod!!< Very Clear Instructions Works Fine, +1 Quote Link to comment Share on other sites More sharing options...
iseeyou94056 Posted August 22, 2007 Share Posted August 22, 2007 Re: [Free] [v1] Profile Image Uploader how do i make it go into just public html beacuse i am addin it to a mates site and hiss ftp is mested up Quote Link to comment Share on other sites More sharing options...
HITMAN 17 Posted September 22, 2007 Share Posted September 22, 2007 Re: [Free] [v1] Profile Image Uploader dont work Quote Link to comment Share on other sites More sharing options...
Isomerizer Posted September 22, 2007 Author Share Posted September 22, 2007 Re: [Free] [v1] Profile Image Uploader dont work What doesnt work? A bit more detail please. PHP error? Images wont upload? I can only fix it if i know the exactly whats wrong. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.