#ifndef BLOG_H #define BLOG_H #define PASSWORD_FILE "/blog/password" #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 © %1$d %2$s <%3$s>\n" #define HTML_TAIL "\n" ADDRESS "\n\n" void read_post_data(void); char *find_post_data(char *key); char *user_name(const char *user); char *user_email(const char *user); int authenticate(const char *username, const char *password); int handle_post(void); int show_entry(const char *path); void add_to_index(const char *user, const char *path, const char *title); int current_year(void); #endif