diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-03-18 07:33:11 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-03-18 07:33:11 +0000 |
commit | c8c61ac6a643d1c51c1546a6e346c566bb34f3b2 (patch) | |
tree | 4adfb1de29cd2402554f16b4b540d4aa6295e269 /source3/web/cgi.c | |
parent | e12cb8b6107272b625c8f34f3346b8314404f567 (diff) | |
download | samba-c8c61ac6a643d1c51c1546a6e346c566bb34f3b2.tar.gz samba-c8c61ac6a643d1c51c1546a6e346c566bb34f3b2.tar.bz2 samba-c8c61ac6a643d1c51c1546a6e346c566bb34f3b2.zip |
changed the method used for auto-reload on the status page to use
JavaScript. This avoids the nasty inetd problem.
(This used to be commit 9d9b13880963a0e3cf5213ce2a24c52f4a11a472)
Diffstat (limited to 'source3/web/cgi.c')
-rw-r--r-- | source3/web/cgi.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/source3/web/cgi.c b/source3/web/cgi.c index c5b2ac55f1..065c524cb8 100644 --- a/source3/web/cgi.c +++ b/source3/web/cgi.c @@ -26,7 +26,7 @@ /* set the expiry on fixed pages */ #define EXPIRY_TIME (60*60*24*7) -#define CGI_LOGGING 0 +#define CGI_LOGGING 1 #ifdef DEBUG_COMMENTS extern void print_title(char *fmt, ...); @@ -688,3 +688,15 @@ char *cgi_remote_addr(void) } return getenv("REMOTE_ADDR"); } + + +/*************************************************************************** +return True if the request was a POST + ***************************************************************************/ +BOOL cgi_waspost(void) +{ + if (baseurl) { + return request_post; + } + return strequal(getenv("REQUEST_METHOD"), "POST"); +} |