- Joined
- 9 Aug 2008
- Posts
- 35,708
@visibleman is that you doing the coding on github?
@visibleman is that you doing the coding on github?
Will do a PR once i get chance to test some bits. But it's worth mentioning that what i'm submitting is ropey at best and whilst it "works", i'm not entirely sure how well it'll stand up with load plus i suspect it's open to abuse (to some degree).
i suspect it's open to abuse (to some degree).
Edit - Re. IP address, note GDPR.
We literally need one more thing and that's to copy the file into the folder that does the URL rendering and it's a working site!
In which case expand the if statement (line 77) and add a copy() function, after the directory is created, to copy across the script - after that, i think you're all good to go
Worth pointing out that I would add caching control headers if you're binary reading the image as i suspect a browser will attempt to cache it and you might not end up with the signature "rotating". Oh and the content-type needs to be updated to gif rather than jpeg.
Edit - GDPR; true true, i think you're right but it's worth mentioning that PII is stored either way (which you've done, so no biggie).
Oh and the content-type needs to be updated to gif rather than jpeg.
When your available would you mind doing part A and B for me on GitHub? I don't know where to start with that part. Thanks
Done (on fork) - it's scruffy but works.
Just added the code to live site and it doesn't appear to copy the index.php file.
Currently, it'll only copy across when the /signatures/{username}/ directory is being created. But i've pushed another version that will continuously check (on upload) to see if the script exists within the users directory and copy across accordingly.
Just added the code to live site and it doesn't appear to copy the index.php file.
Wouldn't it be easier to have that file once in the signature root directory and have the urls given to the users a path to that file with their username as a parameter, then you can search for files in the user's folder using the passed username parameter. Then if you need to change the file you don't need to go through every directory and update them all.
Sorry, just delete anything I've added. Didn't think I've committed anything. I've never used git before so I was just trying it out to see how it all works. I only use VisualStudio so I could get it all connected up and download the files but it doesn't run PHP so I couldn't test anything and didn't want to break stuff.
I don't see any code changes in your fork?