From 4c04e1d2aea64ba0b53846c04235669eef0b28ca Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 18 Mar 1998 07:44:27 +0000 Subject: moved the refresh script to the end of the page so that silly things like a refresh of 0 actually work. --- source/web/statuspage.c | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'source/web/statuspage.c') diff --git a/source/web/statuspage.c b/source/web/statuspage.c index 98c0982b99d..5f89eee43a4 100644 --- a/source/web/statuspage.c +++ b/source/web/statuspage.c @@ -142,15 +142,6 @@ void status_page(void) printf("\n"); printf("
Refresh Interval: %d\n", refresh_interval); printf("\n"); - /* this little JavaScript allows for automatic refresh - of the page. There are other methods but this seems - to be the best alternative */ - printf("\n"); } printf("

\n"); @@ -242,5 +233,17 @@ void status_page(void) fclose(f); printf("\n"); + + if (autorefresh) { + /* this little JavaScript allows for automatic refresh + of the page. There are other methods but this seems + to be the best alternative */ + printf("\n"); + } } -- cgit