remy/mit-license — pull request #421 by ariporad (2013-12-28 16:21:10+00:00)
Title: Added Controls For The Copyright Year To user.json, A System to update users without pull requests, and a way to automatically update the server from the github repo.

Hi,

Sorry, I would have liked to make this 3 pull requests, but I don't know how.

First Pull Request:
I added the ability to set the years for the copyright in your user file, see the new README.md for more docs.

Also, I added some stuff to .htaccess and index.php to make it able to run on localhost.

---------

Second Pull Request:

Now Users Can Update their user.json without a pull request!
Simply:

*When You First Use curl -d'' .mit-license.org, make sure you put a password property (this is now required).
*when you want to update your entry, run the same curl command, but with new data, remember to put in the same password.
*If you have the correct password, your user.json will be updated and pushed to github.
*your password is automatically hashed.

If you have already uploaded a user.json, just upload a user.json with one.

If for some reason someone needs to add a user via a pull request after merging this one, just hash their plain-text password with sha512.

---------

Third Pull Request:

You may or may not alredy have this, but I added a system so that when the reposotory is updated you can have it automatilcy update the server.

To set up:

* Upload this pull request to the server the old way
* Go to the mit-license repo
* Click "Settings" on the right hand side
* Click "Service Hooks" on the left
* Add a web url hook for `githubupdate.mit-license.org`
* Now when ever you push to github, the server will `cd /WWW/mit-license && /usr/bin/git pull origin master` then exit

Thanks
Ari