diff options
Diffstat (limited to 'src/IO.c')
-rw-r--r-- | src/IO.c | 50 |
1 files changed, 23 insertions, 27 deletions
@@ -166,24 +166,6 @@ static int IOFileListener(cGH *GH, const char *filename, return 0; } -static const char *cactus_header = -"</HEAD>\n" -"<BODY BGCOLOR=\"#FFFFFF\"" -" link=\"#1B831D\" vlink=\"#768000\" alink=\"#00FF00\">\n" -"<center>" -"</A>" -"<table width=70% border=0><tr><td>" -"\n"; - -static const char *cactus_footer = -"</table>" -"\n" -"<HR size=1>\n" -"<ADDRESS><DIV ALIGN=left>\n" -"<SMALL>\n" -"<A HREF=\"http://www.cactuscode.org/\">Cactus Home Page</A><BR>\n" -"Cactus Web Interface by <A HREF=\"mailto:cactusmaint@cactuscode.org\">The Cactus Team</A><BR>\n" -"</SMALL></DIV></ADDRESS></BODY></HTML>\n"; /*@@ @routine AdvertisedFilePage @@ -217,20 +199,30 @@ static int AdvertisedFilePage(cGH *cctkGH, httpRequest *request, void *data) /* Start the page */ strcpy(message, "<HTML><HEAD><TITLE>Cactus Downloadable Files</TITLE>\n"); - strcat(message, cactus_header); - strcat(message, "<center><h1>Downloadable Files</h1></center>"); + HTTP_Write(request, message, strlen(message)); + + /* HTTP_Write out the header part. */ + + HTTP_ContentHeader(0,4098,message); HTTP_Write(request, message, strlen(message)); - strcpy(message, "<center>"); + strcpy(message, "<center><h1>Downloadable Files</h1></center>"); + HTTP_Write(request, message, strlen(message)); strcpy(message, - "<center>[<A HREF=\"/\">This Simulation Homepage</A>]</center>\n" - "</center><p>From this page you can download various output files \n" - "from the simulation. \n" - "<table cellspacing=5 border=0\n>" + "<p>From this page you can download various output files \n" + "from the simulation. Depending on the software available on your" + " local machine, you can change the browser properties to lauch" + " files directly to visualization clients.</p> \n " + "<p>Many IO methods have <i>steerable</i> parameters which " + "allow you to e.g. add fields and customise behaviour." + "Depending on your authorisation, you can access the" + " <a href=\"/Parameters/index.html\">parameter steering page</a></p>" + "<center>" + "<table cellspacing=5 cellpadding=5 border=0\n>" "<tr><th>File Name</th><th>Variable</th><th>Description</th></tr>\n"); HTTP_Write(request, message, strlen(message)); @@ -239,7 +231,7 @@ static int AdvertisedFilePage(cGH *cctkGH, httpRequest *request, void *data) { sprintf(message, "<tr><td valign=top><A HREF=\"/Output/%s\">%s</A></td>" - "<td valign=top>%s</td><td valign=top>%s</td></tr>", + "<td valign=top>%s</td><td valign=top>%s</td></tr>\n", list->linkname, list->filename, list->data.varname, list->data.description); HTTP_Write(request, message, strlen(message)); @@ -250,7 +242,11 @@ static int AdvertisedFilePage(cGH *cctkGH, httpRequest *request, void *data) /* Write out the footer part. */ - retval = HTTP_Write(request, cactus_footer, strlen(cactus_footer)); + /* HTTP_Write out the footer part. */ + + HTTP_ContentFooter(0,4098,message); + + retval = HTTP_Write(request, message, strlen(message)); return retval; } |