Commit a4db5157 authored by rswindell's avatar rswindell
Browse files

Added new system toggle options: SM_NOSYSINFO and SM_NONODELIST used to

suppress hard-coded displays (system info and active node list) during logon.
parent 5e74ebd2
......@@ -132,7 +132,7 @@
/* Different bits in sys_misc */
#define SM_CLOSED (1L<<0) /* System is clsoed to New Users */
#define SM_SYSSTAT (1L<<1) /* Sysops activity included in statistics */
#define SM_NOBEEP (1L<<2) /* No beep sound locally */
#define SM_NOSYSINFO (1L<<2) /* Suppress system info display at logon */
#define SM_PWEDIT (1L<<3) /* Allow users to change their passwords */
#define SM_RA_EMU (1L<<4) /* Reverse R/A commands at msg read prompt */
#define SM_ANON_EM (1L<<5) /* Allow anonymous e-mail */
......@@ -154,7 +154,7 @@
#define SM_SHRTPAGE (1L<<21) /* Short sysop page */
#define SM_TIME_EXP (1L<<22) /* Set to expired values if out-of-time */
#define SM_FASTMAIL (1L<<23) /* Fast e-mail storage mode */
#define SM_QVALKEYS (1L<<24) /* Quick validation keys enabled */
#define SM_NONODELIST (1L<<24) /* Suppress active node list during logon */
#define SM_ERRALARM (1L<<25) /* Error beeps on */
#define SM_FWDTONET (1L<<26) /* Allow forwarding of e-mail to netmail */
#define SM_DELREADM (1L<<27) /* Delete read mail automatically */
......
......@@ -259,6 +259,10 @@ be able to logon as New, leave this option blank.
,cfg.sys_misc&SM_EURODATE ? "Yes" : "No");
sprintf(opt[i++],"%-33.33s%s","User Expires When Out-of-time"
,cfg.sys_misc&SM_TIME_EXP ? "Yes" : "No");
sprintf(opt[i++],"%-33.33s%s","Display Sys Info During Logon"
,cfg.sys_misc&SM_NOSYSINFO ? "No" : "Yes");
sprintf(opt[i++],"%-33.33s%s","Display Node List During Logon"
,cfg.sys_misc&SM_NONODELIST ? "No" : "Yes");
opt[i][0]=0;
uifc.savnum=0;
SETHELP(WHERE);
......@@ -577,6 +581,48 @@ time online, then set this option to Yes.
else if(i==1 && cfg.sys_misc&SM_TIME_EXP) {
cfg.sys_misc&=~SM_TIME_EXP;
uifc.changes=1; }
break;
case 14:
strcpy(opt[0],"Yes");
strcpy(opt[1],"No");
opt[2][0]=0;
i=cfg.sys_misc&SM_NOSYSINFO ? 1:0;
SETHELP(WHERE);
/*
Display System Information During Logon:
If you want system information displayed during logon, set this option
to Yes.
*/
i=uifc.list(WIN_MID|WIN_SAV,0,0,0,&i,0
,"Display System Information During Logon",opt);
if(!i && cfg.sys_misc&SM_NOSYSINFO) {
cfg.sys_misc&=~SM_NOSYSINFO;
uifc.changes=1; }
else if(i==1 && !(cfg.sys_misc&SM_NOSYSINFO)) {
cfg.sys_misc|=SM_NOSYSINFO;
uifc.changes=1; }
break;
case 15:
strcpy(opt[0],"Yes");
strcpy(opt[1],"No");
opt[2][0]=0;
i=cfg.sys_misc&SM_NONODELIST ? 1:0;
SETHELP(WHERE);
/*
Display Active Node List During Logon:
If you want the active nodes displayed during logon, set this option
to Yes.
*/
i=uifc.list(WIN_MID|WIN_SAV,0,0,0,&i,0
,"Display Active Node List During Logon",opt);
if(!i && cfg.sys_misc&SM_NONODELIST) {
cfg.sys_misc&=~SM_NONODELIST;
uifc.changes=1; }
else if(i==1 && !(cfg.sys_misc&SM_NONODELIST)) {
cfg.sys_misc|=SM_NONODELIST;
uifc.changes=1; }
break;
} }
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment