logo

rc-status-page

Unnamed repository; edit this file 'description' to name the repository.
commit: 91aab9e48cad59cff783ddebd3dde94702ef57df
parent 2d9903eaf5fc3aa789ceceb33fd654a1570bc8a7
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat,  8 Jun 2024 19:29:08 +0200

Set <title>

Diffstat:

Mrc-status-page.c5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/rc-status-page.c b/rc-status-page.c @@ -77,14 +77,15 @@ main() { char timestamp[BUFSIZ]; time_t now = time(NULL); struct tm *tm = gmtime(&now); + static char *title = "Status page of hacktivis.me"; strftime(timestamp, sizeof(timestamp), "%FT%TZ", tm); levels = rc_stringlist_new(); rc_stringlist_add(levels, "hacktivism"); - printf("<html><head><link rel=stylesheet href=\"rc-status-page.css\"/></head><body>"); - printf("<h1>Status page of hacktivis.me</h1>"); + printf("<html><head><link rel=stylesheet href=\"rc-status-page.css\"/><title>%s</title></head>\n", title); + printf("<h1>%s</h1>\n", title); TAILQ_FOREACH(l, levels, entries) { services = rc_services_in_runlevel(l->value);