Skip to content

Code modularization#8

Closed
elrido wants to merge 2 commits into
sebsauvage:masterfrom
elrido:master
Closed

Code modularization#8
elrido wants to merge 2 commits into
sebsauvage:masterfrom
elrido:master

Conversation

@elrido
Copy link
Copy Markdown

@elrido elrido commented Apr 29, 2012

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

…, started working on a PDO based DB connector
@erwanlr
Copy link
Copy Markdown
Contributor

erwanlr commented Apr 29, 2012

Awesome work :)

But, conf.ini is unprotected :p
A directory separator is missing somewhere (i have some dataa1, data66 etc dirs created at the root path)
And the data dir is unprotected too (the .htaccess is missing, it was created with the data dir : index.php line 135)

…to lib & cfg directories. If those are not present, the application will create them for you.
@elrido elrido closed this Apr 30, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants