sebsauvage/ZeroBin — pull request #10 by elrido (2012-04-30 21:04:36+00:00)
Title: Refactoring again :-)

Merged legions syntax highlighting patch. THX-a-lot!

additional changes include:
- Refactoring of php code to be more modular and object oriented, including a basic separation in to model, view (RainTPL) and controller.
- Added configuration for traffic limit and size limit.
- Now month and year durations for paste lifetime are actually calculated instead of 30 or 365 day approximations.
- Purge old entries from the traffic limiter.
- Automatically add .htaccess files to directories containing configuration, data or php code, if they are missing.
- Started preparations for later introduction of database storage.
- Added autoloader, so we no longer have to track all those "require"s.
- Fixed JS to calculate localized times instead of UTC from timestamp.