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

From: Dimitris Papastamos <>
Date: Fri, 23 May 2014 16:28:51 +0100

On Fri, May 23, 2014 at 06:17:46PM +0300, Dimitris Zervas wrote:
> 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]:
> SMU is not mine. I just forked it from here:
> [2]:

Wrap your lines to 80 chars or less.
Received on Fri May 23 2014 - 17:28:51 CEST

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