Thread: Protected Files
View Single Post
  #14  
Old 05-25-2012, 10:26 PM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
Quote:
Originally Posted by cbk1994 View Post
We protect a few images (doors, bullets, etc.) from being tampered with, yes.
If you stored all of the default images on your server and added the protection to all of the images, would there be a way to overwrite the tampered images? If not, an alert would work too. At least the staff are getting notified if players have an edited image, or an image that doesn't match the uploaded one.

How do you do it? Do you calculate how many bytes the image has and compare it with the uploaded one? That shouldn't be too tasking to write.

Edit: There is a filesize() function, so I guess it could be done. If you stored all of the default images in a file on your server, and then used loadfolder() to grab a list of the image files and check their file size against the player's image...

Last edited by Emera; 05-25-2012 at 10:47 PM..
Reply With Quote