From 339cd70e8b9864a3d575a538112f9a7100b1a750 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Fri, 19 Jul 2019 21:14:51 -0400 Subject: remove hard-coding of my name and email address from postings --- blog.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'blog.h') diff --git a/blog.h b/blog.h index 590c18b..85bf490 100644 --- a/blog.h +++ b/blog.h @@ -2,7 +2,6 @@ #define BLOG_H #define PASSWORD_FILE "/blog/password" -#define DATA_DIRECTORY "/jakob" #define DOCTYPE "\n" #define HTML "\n" @@ -14,20 +13,23 @@ #define HTML_HEAD DOCTYPE HTML META TITLE ICON STYLE BODY -#define ADDRESS "
Copyright © %d Jakob Kaivo <jakob@kaivo.net>\n" +#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 *path, const char *title); +void add_to_index(const char *user, const char *path, const char *title); int current_year(void); -- cgit v1.2.1