diff options
author | goodale <goodale@1faa4e14-9dd3-4be0-9f0e-ffe519881164> | 2000-09-17 13:19:49 +0000 |
---|---|---|
committer | goodale <goodale@1faa4e14-9dd3-4be0-9f0e-ffe519881164> | 2000-09-17 13:19:49 +0000 |
commit | 704ef2905ec06079fbc00a51eee942f37654d3d4 (patch) | |
tree | b5b8eaaadf047c197c85eff1b886e1a2f68c23fc /src/Content.c | |
parent | 3911e5fe8ce0a87db2fbab4795bc03da5fe12556 (diff) |
Added available options links to main page.
Tom
git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@36 1faa4e14-9dd3-4be0-9f0e-ffe519881164
Diffstat (limited to 'src/Content.c')
-rw-r--r-- | src/Content.c | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/src/Content.c b/src/Content.c index 993747a..2f22bac 100644 --- a/src/Content.c +++ b/src/Content.c @@ -347,6 +347,27 @@ static int MainPage(cGH *cctkGH, httpRequest *request, void *data) HTTP_Write(request, message, strlen(message)); + /*************************************************************************/ + + /* AVAILABLE OPTIONS */ + + if(ContentLinks) + { + strcpy(message, + "<H3>Available options:</H3>\n" + "<ul>\n"); + + for(link = ContentLinks; link; link=link->next) + { + sprintf(message, + "%s<li> <A HREF=\"%s\">%s</a> %s </li>\n", + message, link->URL, link->name, link->description); + + } + + sprintf(message,"%s</ul>\n",message); + HTTP_Write(request, message, strlen(message)); + } /* CONFIGURATION DETAILS */ @@ -478,7 +499,7 @@ static int RegisterParameterPages(void) HTTP_RegisterPage("/Parameters/index.html", MainParameterPage, NULL); HTTP_ContentLink("/Parameters/index.html", "Parameters", - "Parameter Informatiiona and Control", + "Parameter Information and Control", HTTP_QUICKLINK); for (i = 0; i < CCTK_NumCompiledThorns (); i++) |