Quote:
Originally Posted by cbk1994
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...