Added door32.sys support
This commit is contained in:
parent
4cbb31a07b
commit
94e0f7d7e1
@ -37,6 +37,7 @@ v0.37.2 23-Feb-2003.
|
|||||||
Added new control code: control-U + 8, this displays YES or NO
|
Added new control code: control-U + 8, this displays YES or NO
|
||||||
for the new Extended Info setting.
|
for the new Extended Info setting.
|
||||||
The display file functio now displays the ^U8 code.
|
The display file functio now displays the ^U8 code.
|
||||||
|
Added support for door32.sys dropfile.
|
||||||
|
|
||||||
lang:
|
lang:
|
||||||
Changed language prompts 15 and 16.
|
Changed language prompts 15 and 16.
|
||||||
|
@ -159,7 +159,6 @@ void ExtDoor(char *Program, int NoDoorsys, int Y2Kdoorsys, int Comport, int NoSu
|
|||||||
if (Comport) {
|
if (Comport) {
|
||||||
fprintf(fp, "COM1:\r\n"); /* COM port */
|
fprintf(fp, "COM1:\r\n"); /* COM port */
|
||||||
fprintf(fp, "19200\r\n");/* Effective baudrate */
|
fprintf(fp, "19200\r\n");/* Effective baudrate */
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
fprintf(fp, "COM0:\r\n");/* COM port */
|
fprintf(fp, "COM0:\r\n");/* COM port */
|
||||||
fprintf(fp, "0\r\n"); /* Effective baudrate */
|
fprintf(fp, "0\r\n"); /* Effective baudrate */
|
||||||
@ -184,7 +183,7 @@ void ExtDoor(char *Program, int NoDoorsys, int Y2Kdoorsys, int Comport, int NoSu
|
|||||||
fprintf(fp, "%s\r\n", Gdate(exitinfo.tLastLoginDate, Y2Kdoorsys));
|
fprintf(fp, "%s\r\n", Gdate(exitinfo.tLastLoginDate, Y2Kdoorsys));
|
||||||
fprintf(fp, "%d\r\n", exitinfo.iTimeLeft * 60); /* Seconds */
|
fprintf(fp, "%d\r\n", exitinfo.iTimeLeft * 60); /* Seconds */
|
||||||
fprintf(fp, "%d\r\n", exitinfo.iTimeLeft); /* Minutes */
|
fprintf(fp, "%d\r\n", exitinfo.iTimeLeft); /* Minutes */
|
||||||
fprintf(fp, "%s\r\n", exitinfo.GraphMode?"GR":"NG"); /* Graphics */
|
fprintf(fp, "%s\r\n", exitinfo.GraphMode?"GR":"NG"); /* Graphics GR,RIP,NG */
|
||||||
fprintf(fp, "%d\r\n", exitinfo.iScreenLen);
|
fprintf(fp, "%d\r\n", exitinfo.iScreenLen);
|
||||||
fprintf(fp, "N\r\n"); /* User mode, always N */
|
fprintf(fp, "N\r\n"); /* User mode, always N */
|
||||||
fprintf(fp, "\r\n"); /* Always blank */
|
fprintf(fp, "\r\n"); /* Always blank */
|
||||||
@ -221,6 +220,40 @@ void ExtDoor(char *Program, int NoDoorsys, int Y2Kdoorsys, int Comport, int NoSu
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Always remove the old door32.sys first.
|
||||||
|
*/
|
||||||
|
sprintf(temp1, "%s/%s/door32.sys", CFG.bbs_usersdir, exitinfo.Name);
|
||||||
|
unlink(temp1);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Write door32.sys in users homedirectory
|
||||||
|
*/
|
||||||
|
if (!NoDoorsys) {
|
||||||
|
if ((fp = fopen(temp1, "w+")) == NULL) {
|
||||||
|
WriteError("$Can't create %s", temp1);
|
||||||
|
} else {
|
||||||
|
if (Comport) {
|
||||||
|
fprintf(fp, "1\r\n"); /* COM type, 1=serial, 2=telnet */
|
||||||
|
fprintf(fp, "1\r\n"); /* COM port number */
|
||||||
|
fprintf(fp, "19200\r\n"); /* Effective baudrate */
|
||||||
|
} else {
|
||||||
|
fprintf(fp, "0\r\n"); /* COM type, 0=local */
|
||||||
|
fprintf(fp, "0\r\n"); /* COM port */
|
||||||
|
fprintf(fp, "0\r\n"); /* Effective baudrate */
|
||||||
|
}
|
||||||
|
fprintf(fp, "%s\r\n", CFG.bbs_name); /* BBS name */
|
||||||
|
fprintf(fp, "%d\r\n", grecno); /* User record */
|
||||||
|
fprintf(fp, "%s\r\n", exitinfo.sUserName); /* User's real name */
|
||||||
|
fprintf(fp, "%s\r\n", exitinfo.sHandle); /* User's handle */
|
||||||
|
fprintf(fp, "%d\r\n", exitinfo.Security.level); /* User's security level */
|
||||||
|
fprintf(fp, "%d\r\n", exitinfo.iTimeLeft); /* User's time left in minutes */
|
||||||
|
fprintf(fp, "%s\r\n", exitinfo.GraphMode?"1":"0"); /* User's graphic mode */
|
||||||
|
fprintf(fp, "%d\r\n\032", iNode); /* Node number */
|
||||||
|
fclose(fp);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
clear();
|
clear();
|
||||||
printf("Loading ...\n\n");
|
printf("Loading ...\n\n");
|
||||||
if (NoSuid)
|
if (NoSuid)
|
||||||
|
Reference in New Issue
Block a user