Changed user editor

This commit is contained in:
Michiel Broek 2004-02-24 20:27:41 +00:00
parent e1e0abbc27
commit 1d91200972
5 changed files with 116 additions and 96 deletions

View File

@ -21,6 +21,11 @@ v0.51.1 21-Feb-2004
area. Also added global edit for character set. area. Also added global edit for character set.
In several places where groups need to be tagged, there is now In several places where groups need to be tagged, there is now
a switch (*) to select/deslect all groups at once. a switch (*) to select/deslect all groups at once.
In the user editor the sex is now changed with the spacebar to
prevent typing errors.
In the user editor added character set edit in the second
screen.
Removed users fullscreen chat setting, not used.
mbsebbs: mbsebbs:
Writes the ^aCHRS: kludge again in new created messages. Writes the ^aCHRS: kludge again in new created messages.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.6 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -14,7 +14,7 @@
</HEAD> </HEAD>
<BODY> <BODY>
<BLOCKQUOTE> <BLOCKQUOTE>
<div align='right'><h5>Last update 01-May-2002</h5></div> <div align='right'><h5>Last update 24-Feb-2004</h5></div>
<div align='center'><H1>MBSE BBS Setup - BBS Users.</H1></div> <div align='center'><H1>MBSE BBS Setup - BBS Users.</H1></div>
<H3>Introduction.</H3> <H3>Introduction.</H3>
@ -79,6 +79,7 @@ system password file and the users home directory manually.
<strong>Sex </strong>Users sex, male or female. <strong>Sex </strong>Users sex, male or female.
<strong>Protocol </strong>The selected file transfer protocol. <strong>Protocol </strong>The selected file transfer protocol.
<strong>Archiver </strong>The selected archiver. <strong>Archiver </strong>The selected archiver.
<strong>Charset </strong>The users preffered character set.
<strong>Screenlen </strong>The length (lines) of the users screen. <strong>Screenlen </strong>The length (lines) of the users screen.
<strong>Language </strong>The language the user uses. <strong>Language </strong>The language the user uses.
<strong>Hotkeys </strong>Hotkeys on/off. <strong>Hotkeys </strong>Hotkeys on/off.

View File

@ -99,7 +99,7 @@ struct userrec {
unsigned GraphMode : 1; /* ANSI Mode ON/OFF */ unsigned GraphMode : 1; /* ANSI Mode ON/OFF */
unsigned Deleted : 1; /* Deleted Status */ unsigned Deleted : 1; /* Deleted Status */
unsigned NeverDelete : 1; /* Never Delete User */ unsigned NeverDelete : 1; /* Never Delete User */
unsigned Chat : 1; /* Has IEMSI Chatmode */ unsigned xChat : 1;
unsigned LockedOut : 1; /* User is locked out */ unsigned LockedOut : 1; /* User is locked out */
unsigned DoNotDisturb : 1; /* DoNot disturb */ unsigned DoNotDisturb : 1; /* DoNot disturb */
unsigned Cls : 1; /* CLS on/off */ unsigned Cls : 1; /* CLS on/off */

View File

@ -295,20 +295,20 @@ void Screen2(void)
mvprintw(15, 2, "10. Sex"); mvprintw(15, 2, "10. Sex");
mvprintw(16, 2, "11. Protocol"); mvprintw(16, 2, "11. Protocol");
mvprintw(17, 2, "12. Archiver"); mvprintw(17, 2, "12. Archiver");
mvprintw(18, 2, "13. Screenlen"); mvprintw(18, 2, "13. Charset");
mvprintw( 6,63, "14. Language"); mvprintw( 7,63, "14. Screenlen");
mvprintw( 7,63, "15. Hotkeys"); mvprintw( 8,63, "15. Language");
mvprintw( 8,63, "16. Color"); mvprintw( 9,63, "16. Hotkeys");
mvprintw( 9,63, "17. Fs Chat"); mvprintw(10,63, "17. Color");
mvprintw(10,63, "18. Silent"); mvprintw(11,63, "18. Silent");
mvprintw(11,63, "19. CLS"); mvprintw(12,63, "19. CLS");
mvprintw(12,63, "20. More"); mvprintw(13,63, "20. More");
mvprintw(13,63, "21. Editor"); mvprintw(14,63, "21. Editor");
mvprintw(14,63, "22. MailScan"); mvprintw(15,63, "22. MailScan");
mvprintw(15,63, "23. ShowNews"); mvprintw(16,63, "23. ShowNews");
mvprintw(16,63, "24. NewFiles"); mvprintw(17,63, "24. NewFiles");
mvprintw(17,63, "25. Emacs"); mvprintw(18,63, "25. Emacs");
} }
@ -330,28 +330,28 @@ void Fields2(void)
show_str( 15,17, 7,usrconfig.sSex); show_str( 15,17, 7,usrconfig.sSex);
show_str( 16,17,12,usrconfig.sProtocol); show_str( 16,17,12,usrconfig.sProtocol);
show_str( 17,17, 5,usrconfig.Archiver); show_str( 17,17, 5,usrconfig.Archiver);
show_int( 18,17, usrconfig.iScreenLen); show_charset(18,17,usrconfig.Charset);
show_int( 7,76, usrconfig.iScreenLen);
sprintf(temp, "%c",usrconfig.iLanguage); sprintf(temp, "%c",usrconfig.iLanguage);
show_str( 6,76,1, temp); show_str( 8,76,1, temp);
show_bool( 7,76, usrconfig.HotKeys); show_bool( 9,76, usrconfig.HotKeys);
show_bool( 8,76, usrconfig.GraphMode); show_bool(10,76, usrconfig.GraphMode);
show_bool( 9,76, usrconfig.Chat); show_bool(11,76, usrconfig.DoNotDisturb);
show_bool(10,76, usrconfig.DoNotDisturb); show_bool(12,76, usrconfig.Cls);
show_bool(11,76, usrconfig.Cls); show_bool(13,76, usrconfig.More);
show_bool(12,76, usrconfig.More); show_msgeditor(14,76, usrconfig.MsgEditor);
show_msgeditor(13,76, usrconfig.MsgEditor); show_bool(15,76, usrconfig.MailScan);
show_bool(14,76, usrconfig.MailScan); show_bool(16,76, usrconfig.ieNEWS);
show_bool(15,76, usrconfig.ieNEWS); show_bool(17,76, usrconfig.ieFILE);
show_bool(16,76, usrconfig.ieFILE); show_bool(18,76, usrconfig.FSemacs);
show_bool(17,76, usrconfig.FSemacs);
} }
int EditUsrRec2(void) int EditUsrRec2(void)
{ {
int j = 0; int j = 0, ch;
char temp[PATH_MAX]; char temp[PATH_MAX];
Screen2(); Screen2();
@ -390,7 +390,21 @@ int EditUsrRec2(void)
working(2, 0, 0); working(2, 0, 0);
} }
break; break;
case 10:strcpy(usrconfig.sSex, tl(edit_str(15,17,7, usrconfig.sSex, (char *)"^Male^ or ^Female^"))); case 10:showhelp((char *)"Toggle ^Sex^ with spacebar, press <Enter> when done.");
do {
set_color(YELLOW, BLUE);
show_str(15,17,7, usrconfig.sSex);
ch = readkey(15, 17, YELLOW, BLUE);
if (ch == ' ') {
if (strcmp(usrconfig.sSex, "Male") == 0)
strcpy(usrconfig.sSex, "Female");
else {
strcpy(usrconfig.sSex, "Male\0\0");
}
}
} while (ch != KEY_ENTER && ch != '\012');
set_color(WHITE, BLACK);
show_str(15,17,7, usrconfig.sSex);
break; break;
case 11:strcpy(temp, PickProtocol(15)); case 11:strcpy(temp, PickProtocol(15));
if (strlen(temp) != 0) if (strlen(temp) != 0)
@ -404,24 +418,24 @@ int EditUsrRec2(void)
clr_index(); clr_index();
Screen2(); Screen2();
break; break;
case 13:E_INT( 18,17,usrconfig.iScreenLen, "Users ^Screen length^ in lines (about 24)") case 13:usrconfig.Charset = edit_charset(18,17, usrconfig.Charset); break;
case 14:usrconfig.iLanguage = PickLanguage((char *)"15.14"); case 14:E_INT( 7,76,usrconfig.iScreenLen, "Users ^Screen length^ in lines (about 24)")
case 15:usrconfig.iLanguage = PickLanguage((char *)"15.15");
clr_index(); clr_index();
Screen2(); Screen2();
break; break;
case 15:E_BOOL( 7,76,usrconfig.HotKeys, "Is user using ^HotKeys^ for menus") case 16:E_BOOL( 9,76,usrconfig.HotKeys, "Is user using ^HotKeys^ for menus")
case 16:E_BOOL( 8,76,usrconfig.GraphMode, "Is user using ^ANSI^ colors") case 17:E_BOOL(10,76,usrconfig.GraphMode, "Is user using ^ANSI^ colors")
case 17:E_BOOL( 9,76,usrconfig.Chat, "User has ^IEMSI Chat^ capability") case 18:E_BOOL(11,76,usrconfig.DoNotDisturb, "User will not be ^disturbed^")
case 18:E_BOOL(10,76,usrconfig.DoNotDisturb, "User will not be ^disturbed^") case 19:E_BOOL(12,76,usrconfig.Cls, "Send ^ClearScreen code^ to users terminal")
case 19:E_BOOL(11,76,usrconfig.Cls, "Send ^ClearScreen code^ to users terminal") case 20:E_BOOL(13,76,usrconfig.More, "User uses the ^More prompt^")
case 20:E_BOOL(12,76,usrconfig.More, "User uses the ^More prompt^") case 21:usrconfig.MsgEditor = edit_msgeditor(14,76,usrconfig.MsgEditor);
case 21:usrconfig.MsgEditor = edit_msgeditor(13,76,usrconfig.MsgEditor);
break; break;
case 22:E_BOOL(14,76,usrconfig.MailScan, "Don't check for ^new mail^") case 22:E_BOOL(15,76,usrconfig.MailScan, "Don't check for ^new mail^")
case 23:E_BOOL(15,76,usrconfig.ieNEWS, "Show ^News Bulletins^ when logging in") case 23:E_BOOL(16,76,usrconfig.ieNEWS, "Show ^News Bulletins^ when logging in")
case 24:E_BOOL(16,76,usrconfig.ieFILE, "Show ^New Files^ when logging in") case 24:E_BOOL(17,76,usrconfig.ieFILE, "Show ^New Files^ when logging in")
case 25:E_BOOL(17,76,usrconfig.FSemacs, "Use ^Emacs^ or Wordstart shorcut keys in FS editor") case 25:E_BOOL(18,76,usrconfig.FSemacs, "Use ^Emacs^ or Wordstart shorcut keys in FS editor")
} }
} }
} }