From 02fb378aecebcfebc874e11b98650f4bc24e1337 Mon Sep 17 00:00:00 2001 From: allen Date: Sat, 5 Jul 2003 14:38:38 +0000 Subject: Added more info to front page and fixed wrong compile date (was using the compile date just for that thorn). Fixes Cactus/1227 (except for adding start time but did not feel like adding more string functions for these, although they would be useful to have) git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@176 1faa4e14-9dd3-4be0-9f0e-ffe519881164 --- src/Content.c | 37 ++++++++++++++++++++++++++++--------- 1 file changed, 28 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/Content.c b/src/Content.c index 825d634..2a28462 100644 --- a/src/Content.c +++ b/src/Content.c @@ -27,6 +27,7 @@ #include "cctk_ActiveThorns.h" #include "util_String.h" +#include "util_Network.h" #include "http_Request.h" @@ -63,6 +64,8 @@ struct httpLink int flags; }; +#define HOSTLENGTH 255 + /******************************************************************** ********************* Local Routine Prototypes ********************* ********************************************************************/ @@ -305,8 +308,10 @@ static int MainPage(const cGH *cctkGH, httpRequest *request, void *data) char menu[4098]; char *dir; char *file; + char *user; struct httpLink *hlink; int seconds,minutes,hours,days,weeks,months,years,millenia; + char host[HOSTLENGTH+1]; /* avoid compiler warning about unused parameter */ data = data; @@ -427,9 +432,9 @@ static int MainPage(const cGH *cctkGH, httpRequest *request, void *data) "

Simulation:

\n" "