#include "support.h"
#include "room_ops.h"
#include "msgbase.h"
+#include "tools.h"
void cmd_delf(char *filename)
{
fclose(ofp);
cprintf("%d File '%s' has been sent to %s.\n",OK,filename,destsys);
- system("nohup ./netproc >/dev/null 2>&1 &");
+ system("nohup ./netproc -i >/dev/null 2>&1 &");
return;
}
* It examines the file and displays the OK result code and some information
* about the file. NOTE: this stuff is Unix dependent.
*/
-void OpenCmdResult(void) {
+void OpenCmdResult(char *filename, char *mime_type) {
struct stat statbuf;
fstat(fileno(CC->download_fp), &statbuf);
- cprintf("%d %ld|%ld\n", OK, statbuf.st_size, statbuf.st_mtime);
+ cprintf("%d %ld|%ld|%s|%s\n", OK, statbuf.st_size, statbuf.st_mtime,
+ filename, mime_type);
}
return;
}
- OpenCmdResult();
+ OpenCmdResult(filename, "application/octet-stream");
}
/*
return;
}
- OpenCmdResult();
+ OpenCmdResult(pathname, "image/gif");
}
/*
fprintf(fp,"NEW UPLOAD: '%s'\n %s\n",CC->upl_file,CC->upl_comment);
putc(0,fp);
fclose(fp);
- save_message(CC->temp, "", 0, M_LOCAL, 1);
+ save_message(CC->temp, "", "", M_LOCAL, 1);
}
else {