[dev] Anyone interested in C "blogging platform"?

From: Dimitris Zervas <dzervas_AT_dzervas.gr>
Date: Fri, 23 May 2014 18:17:46 +0300

In 2 weeks I will be done with my finals (yay! no more school!) and I will concentrate on my projects.

My main project is the C blogging platform which is, well, a blogging platform - you didn't see that coming huh?. It's based on the suckless ideology (or at least the way I understand it) and I would really like someone to join me with this.
So here's the concept. It's split in to 2 pieces:
1. Uploading and interpreting/caching a post
2. Adding some dynamic code while serving the page (via CGI)

1: I use git (for versioning and easy management). The posts are written in markup.
Once you make a new commit, a program (or a script?) is triggered and scans the commit, finds the files altered and either interprets the markup files (smu [1] is used) and store them as html, so you don't have to do that on serve time, or deletes the old cached file.
Also, it alters a navigation.html file (used in the second piece)

The git integration and the navigation altering is not done yet.

2: Blog preprocessor (bpp [2]). It's a small cgi program that just finds keywords in the asked page and replaces them with file contents. This is used to be able to have a navigation bar and (much later) comment system.

so, if you ask for myfile.html (the post that smu has cached), bpp will scan the file for the "==navigation" keyword and replace it with the contents of navigation.html

I hope that you get the whole logic. The project has some *serious* security flaws (such as local file inclusion attack and not only), so do not use it yet. Not that you can do anything useful right now, but just saying... :P

[1]: http://git.dzervas.gr/smu
SMU is not mine. I just forked it from here:
https://github.com/Gottox/smu

[2]: http://git.dzervas.gr/bpp
Received on Fri May 23 2014 - 17:17:46 CEST

This archive was generated by hypermail 2.3.0 : Fri May 23 2014 - 17:24:07 CEST