[NeoStats-Devel] [Commits] r2705 - trunk/modules/statserv
[email protected] Sat, 13 Aug 2005 01:04:16 +1000
| Newsgroups | gmane.comp.neostats.devel |
|---|---|
| Message-ID | <[email protected]> |
Author: DNB
Date: Fri Aug 12 23:04:08 2005
New Revision: 2705
Modified:
trunk/modules/statserv/htmlstats.c
Log:
call do_copyright at end of stats html page only, not each line
remove case sensitivity for checking end of html template file
change html file umode to include owner write permission so html file can be overwritten
Modified: trunk/modules/statserv/htmlstats.c
==============================================================================
--- trunk/modules/statserv/htmlstats.c (original)
+++ trunk/modules/statserv/htmlstats.c Fri Aug 12 23:04:08 2005
@@ -469,7 +469,7 @@
}
htmlfuncptr++;
}
- buftemp = strstr( bufptr, "</HTML>" );
+ buftemp = strcasestr( bufptr, "</html>" );
if( buftemp ) {
os_fwrite( bufptr,( int )buftemp -( int )bufptr, 1, opf );
put_copyright();
@@ -477,14 +477,13 @@
os_fputs( bufptr, opf );
} else {
os_fputs( bufptr, opf );
- put_copyright();
}
}
os_fclose( tpl );
os_fclose( opf );
#ifndef WIN32
- /* update the umode so others can read it */
- chmod(StatServ.htmlpath, S_IRUSR|S_IRGRP|S_IROTH);
+ /* update the umode so others can read it and owner can overwrite it */
+ chmod(StatServ.htmlpath, S_IRUSR+S_IWUSR|S_IRGRP|S_IROTH);
#endif /* WIN32 */