mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-06-12 19:14:46 +02:00
+- Some more VFS/PHTML fixes, it actually works now, thanks to butter
This commit is contained in:
@@ -839,3 +839,4 @@ seen. gmtime warning still there
|
||||
- Moved /svso and /svsnick to modules
|
||||
- Updated the win32 makefile
|
||||
- modulize documentation, some web server fixes, preparation for uabr
|
||||
- Some more VFS/PHTML fixes, it actually works now, thanks to butter
|
||||
|
||||
@@ -117,7 +117,7 @@ $ STATUSLINE
|
||||
$ SECTION
|
||||
</span></i></div>
|
||||
<center><table border="0" cellpadding="20" cellspacing="0" width="470" height="250" borderColorDark="black" borderColorLight="black"><tr><td valign="top" borderColorDark="#ffffff" borderColorLight="#ffffff">
|
||||
$ DATA
|
||||
$ DATA
|
||||
</td></tr></table></center>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -386,7 +386,9 @@ void sockprintf(HTTPd_Request *r, char *format, ...)
|
||||
vsprintf(r->inbuf, format, ap);
|
||||
strcat(r->inbuf, "\r\n");
|
||||
va_end(ap);
|
||||
send(r->fd, r->inbuf, strlen(r->inbuf), 0);
|
||||
set_blocking(r->fd, NULL);
|
||||
send(r->fd, r->inbuf, strlen(r->inbuf), 0),
|
||||
set_non_blocking(r->fd, NULL);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -161,7 +161,6 @@ DLLFUNC int h_u_phtml(HTTPd_Request *r)
|
||||
if (!strcmp(s, "DATA"))
|
||||
{
|
||||
time_t tmpnow;
|
||||
sockprintf(r, "%i<br>", section);
|
||||
if (section == SECTION_STATS)
|
||||
{
|
||||
tmpnow = TStime() - me.since;
|
||||
|
||||
@@ -155,8 +155,6 @@ DLLFUNC int h_u_vfs(HTTPd_Request *r)
|
||||
j = send(r->fd, &p->cache[i], p->cachesize - i, 0);
|
||||
if (j == -1)
|
||||
{
|
||||
ircd_log(LOG_ERROR, "send() error: %s",
|
||||
strerror(ERRNO));
|
||||
set_non_blocking(r->fd, NULL);
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user