sebsauvage/ZeroBin — pull request #8 by elrido (2012-04-29 17:32:18+00:00)
Title: Code modularization

Hi Sebsauvage,

First of all: Thank you very much for sharing this nice project of yours!

I like the simple yet disruptive idea of ZeroBin very much and i am really impressed what is possible with javascript. As my javascript skills are not that great, i am sorry, i can't support you on that side of ZeroBin. But as a PHP coder i wanted to at least help you with that part of the project. One of the first modification i made when i played around with ZeroBin was to store the data outside of the webservers document root. While hunting for all those paths in the skript, i learned a bit about the working of the code.

This weekend i took the time to refactor your project a little. The goal was to make it a bit more modular and to add a mechanism for some basic configuration. The path prefix for includes can now be changed in the index file. Other settings, like the path where the pastes are stored or the traffic limit can be configured through an ini file.

One next step could be an alternative storage model for databases. But that is up for another weekend.

Hope you can to use some of my changes.

El RIDO