#ifndef BLOG_H #define BLOG_H #define PASSWORD_FILE "/blog/password" #define DATA_DIRECTORY "/jakob" #define DOCTYPE "\n" #define HTML "\n" #define META "\n" #define TITLE "%s\n" #define ICON "\n" #define STYLE "\n" #define BODY "\n\n" #define HTML_HEAD DOCTYPE HTML META TITLE ICON STYLE BODY #define ADDRESS "
Copyright © %d Jakob Kaivo <jakob@kaivo.net>\n" #define HTML_TAIL "\n" ADDRESS "\n\n" void read_post_data(void); char *find_post_data(char *key); int authenticate(const char *username, const char *password); int handle_post(void); int show_entry(const char *path); void add_to_index(const char *path, const char *title); #endif