added menu 317, toggle FS edit shortcut keys
This commit is contained in:
parent
887d09ab31
commit
f368072f1a
@ -2,7 +2,7 @@
|
|||||||
*
|
*
|
||||||
* File ..................: bbs/change.c
|
* File ..................: bbs/change.c
|
||||||
* Purpose ...............: Change user settings
|
* Purpose ...............: Change user settings
|
||||||
* Last modification date : 28-Jun-2001
|
* Last modification date : 27-Oct-2001
|
||||||
*
|
*
|
||||||
*****************************************************************************
|
*****************************************************************************
|
||||||
* Copyright (C) 1997-2001
|
* Copyright (C) 1997-2001
|
||||||
@ -203,6 +203,7 @@ void Chg_Password()
|
|||||||
exitinfo.iPassword = crc;
|
exitinfo.iPassword = crc;
|
||||||
memset(&exitinfo.Password, 0, sizeof(exitinfo.Password));
|
memset(&exitinfo.Password, 0, sizeof(exitinfo.Password));
|
||||||
sprintf(exitinfo.Password, "%s", temp2);
|
sprintf(exitinfo.Password, "%s", temp2);
|
||||||
|
exitinfo.tLastPwdChange = time(NULL);
|
||||||
Enter(1);
|
Enter(1);
|
||||||
/* Password Change Successful */
|
/* Password Change Successful */
|
||||||
language(10, 0, 124);
|
language(10, 0, 124);
|
||||||
@ -381,6 +382,31 @@ void Chg_FsMsged()
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Toggle Fullscreen Editor Shotcut keys
|
||||||
|
*/
|
||||||
|
void Chg_FsMsgedKeys()
|
||||||
|
{
|
||||||
|
ReadExitinfo();
|
||||||
|
Enter(2);
|
||||||
|
|
||||||
|
if (exitinfo.FSemacs) {
|
||||||
|
exitinfo.FSemacs = FALSE;
|
||||||
|
/* Fullscreen Editor shortcut keys set to Wordstar */
|
||||||
|
pout(10, 0, (char *) Language(473));
|
||||||
|
} else {
|
||||||
|
exitinfo.FSemacs = TRUE;
|
||||||
|
/* Fullscreen Editor shortcut keys set to Emacs */
|
||||||
|
pout(10, 0, (char *) Language(472));
|
||||||
|
}
|
||||||
|
Enter(2);
|
||||||
|
sleep(2);
|
||||||
|
Syslog('+', "FS editor shortcut keys changed to %s", exitinfo.FSemacs?"Emacs":"Wordstar");
|
||||||
|
WriteExitinfo();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Function to toggle DoNotDisturb Flag
|
* Function to toggle DoNotDisturb Flag
|
||||||
*/
|
*/
|
||||||
@ -455,6 +481,58 @@ void Chg_Location()
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
void Chg_Address()
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
char temp[41];
|
||||||
|
|
||||||
|
ReadExitinfo();
|
||||||
|
Syslog('+', "Old address \"%s\"", exitinfo.address[0]);
|
||||||
|
Syslog('+', " \"%s\"", exitinfo.address[1]);
|
||||||
|
Syslog('+', " \"%s\"", exitinfo.address[2]);
|
||||||
|
|
||||||
|
while (TRUE) {
|
||||||
|
Enter(1);
|
||||||
|
/* Old address: */
|
||||||
|
pout(WHITE, BLACK, (char *) Language(476));
|
||||||
|
Enter(1);
|
||||||
|
colour(LIGHTBLUE, BLACK);
|
||||||
|
printf("%s\n", exitinfo.address[0]);
|
||||||
|
printf("%s\n", exitinfo.address[1]);
|
||||||
|
printf("%s\n", exitinfo.address[2]);
|
||||||
|
Enter(1);
|
||||||
|
/* Your address, maximum 3 lines (only visible for the sysop): */
|
||||||
|
pout(YELLOW, BLACK, (char *) Language(474));
|
||||||
|
Enter(1);
|
||||||
|
|
||||||
|
for (i = 0; i < 3; i++ ) {
|
||||||
|
colour(YELLOW, BLACK);
|
||||||
|
printf("%d: ", i+1);
|
||||||
|
colour(CFG.InputColourF, CFG.InputColourB);
|
||||||
|
fflush(stdout);
|
||||||
|
alarm_on();
|
||||||
|
GetstrC(temp, 40);
|
||||||
|
if (strcmp(temp, ""))
|
||||||
|
Setup(exitinfo.address[i], temp);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (strlen(exitinfo.address[0]) || strlen(exitinfo.address[1]) || strlen(exitinfo.address[2]))
|
||||||
|
break;
|
||||||
|
|
||||||
|
Enter(1);
|
||||||
|
/* You need to enter your address here */
|
||||||
|
pout(LIGHTRED, BLACK, (char *)Language(475));
|
||||||
|
Enter(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
Syslog('+', "New address \"%s\"", exitinfo.address[0]);
|
||||||
|
Syslog('+', " \"%s\"", exitinfo.address[1]);
|
||||||
|
Syslog('+', " \"%s\"", exitinfo.address[2]);
|
||||||
|
WriteExitinfo();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Toggle Graphics
|
* Toggle Graphics
|
||||||
*/
|
*/
|
||||||
|
@ -2,24 +2,26 @@
|
|||||||
#define _CHANGE_H
|
#define _CHANGE_H
|
||||||
|
|
||||||
|
|
||||||
int Chg_Language(int); /* Change language */
|
int Chg_Language(int); /* Change language */
|
||||||
void Chg_Password(void); /* Change BBS Password */
|
void Chg_Password(void); /* Change BBS Password */
|
||||||
void Chg_Handle(void); /* Change Handle */
|
void Chg_Handle(void); /* Change Handle */
|
||||||
void Chg_Hotkeys(void); /* Toggle Hotkeys */
|
void Chg_Hotkeys(void); /* Toggle Hotkeys */
|
||||||
void Chg_Disturb(void); /* Toggle "Do not disturb" */
|
void Chg_Disturb(void); /* Toggle "Do not disturb" */
|
||||||
void Chg_MailCheck(void); /* Toggle New Mail Check */
|
void Chg_MailCheck(void); /* Toggle New Mail Check */
|
||||||
void Chg_FileCheck(void); /* Toggle New Files Check */
|
void Chg_FileCheck(void); /* Toggle New Files Check */
|
||||||
void Chg_FsMsged(void); /* Toggle Fullscreen Editor */
|
void Chg_FsMsged(void); /* Toggle Fullscreen Editor */
|
||||||
void Chg_Location(void); /* Change location */
|
void Chg_FsMsgedKeys(void); /* Toggle FS editor shortcut keys */
|
||||||
void Chg_Graphics(void); /* Toggle graphics */
|
void Chg_Location(void); /* Change location */
|
||||||
void Chg_VoicePhone(void); /* Change voicephone */
|
void Chg_Address(void); /* Change address */
|
||||||
void Chg_DataPhone(void); /* Change dataphone */
|
void Chg_Graphics(void); /* Toggle graphics */
|
||||||
void Chg_News(void); /* Toggle News Bulletins */
|
void Chg_VoicePhone(void); /* Change voicephone */
|
||||||
void Chg_ScreenLen(void); /* Change screen len */
|
void Chg_DataPhone(void); /* Change dataphone */
|
||||||
int Test_DOB(char *); /* Test of Date of Birth is valid */
|
void Chg_News(void); /* Toggle News Bulletins */
|
||||||
void Chg_DOB(void); /* Change Date of Birth */
|
void Chg_ScreenLen(void); /* Change screen len */
|
||||||
void Chg_Protocol(void); /* Change default transfer protocol. */
|
int Test_DOB(char *); /* Test of Date of Birth is valid */
|
||||||
void Set_Protocol(char *); /* Set default protocol */
|
void Chg_DOB(void); /* Change Date of Birth */
|
||||||
|
void Chg_Protocol(void); /* Change default transfer protocol. */
|
||||||
|
void Set_Protocol(char *); /* Set default protocol */
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
*
|
*
|
||||||
* File ..................: bbs/menu.c
|
* File ..................: bbs/menu.c
|
||||||
* Purpose ...............: Display and handle the menus.
|
* Purpose ...............: Display and handle the menus.
|
||||||
* Last modification date : 17-Oct-2001
|
* Last modification date : 27-Oct-2001
|
||||||
*
|
*
|
||||||
*****************************************************************************
|
*****************************************************************************
|
||||||
* Copyright (C) 1997-2001
|
* Copyright (C) 1997-2001
|
||||||
@ -639,6 +639,14 @@ void DoMenu(int Type)
|
|||||||
Chg_FsMsged();
|
Chg_FsMsged();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 317:
|
||||||
|
Chg_FsMsgedKeys();
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 318:
|
||||||
|
Chg_Address();
|
||||||
|
break;
|
||||||
|
|
||||||
case 401:
|
case 401:
|
||||||
Oneliner_Add();
|
Oneliner_Add();
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user