diff options
author | allen <allen@1faa4e14-9dd3-4be0-9f0e-ffe519881164> | 2000-09-28 04:36:02 +0000 |
---|---|---|
committer | allen <allen@1faa4e14-9dd3-4be0-9f0e-ffe519881164> | 2000-09-28 04:36:02 +0000 |
commit | 672cdf715e314fec2df6ba3b6eb8248d1112db44 (patch) | |
tree | fdb44d8e49be065d373157ad5ca7d2b4bb43e6ef /src/Parameters.c | |
parent | aa69bad8e6317c8192c5e89bd88188c2fe511b51 (diff) |
New headers for all pages.
Added new Thorns pages, for now these just have the parameters, but there
will be an easy way for thorns to add their own stuff
git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@89 1faa4e14-9dd3-4be0-9f0e-ffe519881164
Diffstat (limited to 'src/Parameters.c')
-rw-r--r-- | src/Parameters.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/Parameters.c b/src/Parameters.c index 5edbe46..9eaa592 100644 --- a/src/Parameters.c +++ b/src/Parameters.c @@ -96,7 +96,6 @@ int HTTPi_RegisterParameterPages(void) char *namecopy; const cParamData *pData; cParamData *datacopy; - char *value; /* Two ways to do this - can either just have one function * registered as /Parameters which then checks request->residual, @@ -662,12 +661,12 @@ static int ParameterPage(cGH *cctkGH, httpRequest *request, void *data) { int retval=0; int i; - char message[4098]; - char menu[4098]; + char message[10000]; + char menu[10000]; const char *thorn, *menuthorn; int first; const cParamData *pData; - const cParamData *pDataWalk; + const cParamData *pDataWalk=NULL; t_range *range; char *value; const httpArg *argument; @@ -783,6 +782,9 @@ static int ParameterPage(cGH *cctkGH, httpRequest *request, void *data) /* Menu for this page */ first = 1; + printf("Set is %d\n",pData->n_set); + printf("Name is %s\n",pData->name); + printf("Thorn = %s\n",pData->thorn); while(CCTK_ParameterWalk(first, pData->thorn, NULL, &pDataWalk) == 0) { if (first==1) @@ -793,6 +795,7 @@ static int ParameterPage(cGH *cctkGH, httpRequest *request, void *data) sprintf(menu, "%s<DT> <A HREF=\"/Parameters/%s/%s\">%s</A>\n", menu,pDataWalk->thorn,pDataWalk->name,pDataWalk->name); + printf("NEW: %s\n",menu); } HTTP_ContentHeader(cctkGH,0,4098,message,menu); |