- Joined
- 9 Aug 2008
- Posts
- 35,708
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.
Done (on fork) - it's scruffy but works.
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.
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.
The index file under /signatures/ needs to exist otherwise it'll throw that nondescript error message as there's nothing to copy.
Also make sure all the defines are correct if you're manually copy the changes.
I will do a rewrite rule variant when I get half an hour, as the current solution is pretty horrible.