Skip to content
Snippets Groups Projects
Commit 420c2f22 authored by rswindell's avatar rswindell
Browse files

Added use of 'const' keyword to make values read-only.

parent 0bdc7cc8
Branches
Tags
No related merge requests found
...@@ -37,333 +37,333 @@ ...@@ -37,333 +37,333 @@
load("nodedefs.js"); load("nodedefs.js");
/********************************************/ /********************************************/
/* system.settings */ /* system.settings */
/********************************************/ /********************************************/
SYS_CLOSED =(1<<0) /* System is closed to New Users */ const SYS_CLOSED =(1<<0) /* System is closed to New Users */
SYS_SYSSTAT =(1<<1) /* Sysops activity included in statistics */ const SYS_SYSSTAT =(1<<1) /* Sysops activity included in statistics */
SYS_NOBEEP =(1<<2) /* No beep sound locally */ const SYS_NOBEEP =(1<<2) /* No beep sound locally */
SYS_PWEDIT =(1<<3) /* Allow users to change their passwords */ const SYS_PWEDIT =(1<<3) /* Allow users to change their passwords */
SYS_RA_EMU =(1<<4) /* Reverse R/A commands at msg read prompt */ const SYS_RA_EMU =(1<<4) /* Reverse R/A commands at msg read prompt */
SYS_ANON_EM =(1<<5) /* Allow anonymous e-mail */ const SYS_ANON_EM =(1<<5) /* Allow anonymous e-mail */
SYS_LISTLOC =(1<<6) /* Use location of caller in user lists */ const SYS_LISTLOC =(1<<6) /* Use location of caller in user lists */
SYS_WILDCAT =(1<<7) /* Expand Wildcat color codes in messages */ const SYS_WILDCAT =(1<<7) /* Expand Wildcat color codes in messages */
SYS_PCBOARD =(1<<8) /* Expand PCBoard color codes in messages */ const SYS_PCBOARD =(1<<8) /* Expand PCBoard color codes in messages */
SYS_WWIV =(1<<9) /* Expand WWIV color codes in messages */ const SYS_WWIV =(1<<9) /* Expand WWIV color codes in messages */
SYS_CELERITY =(1<<10) /* Expand Celerity color codes in messages */ const SYS_CELERITY =(1<<10) /* Expand Celerity color codes in messages */
SYS_RENEGADE =(1<<11) /* Expand Renegade color codes in messages */ const SYS_RENEGADE =(1<<11) /* Expand Renegade color codes in messages */
SYS_ECHO_PW =(1<<12) /* Echo passwords locally */ const SYS_ECHO_PW =(1<<12) /* Echo passwords locally */
SYS_REQ_PW =(1<<13) /* Require passwords locally */ const SYS_REQ_PW =(1<<13) /* Require passwords locally */
SYS_L_SYSOP =(1<<14) /* Allow local sysop logon/commands */ const SYS_L_SYSOP =(1<<14) /* Allow local sysop logon/commands */
SYS_R_SYSOP =(1<<15) /* Allow remote sysop logon/commands */ const SYS_R_SYSOP =(1<<15) /* Allow remote sysop logon/commands */
SYS_QUOTE_EM =(1<<16) /* Allow quoting of e-mail */ const SYS_QUOTE_EM =(1<<16) /* Allow quoting of e-mail */
SYS_EURODATE =(1<<17) /* Europian date format (DD/MM/YY) */ const SYS_EURODATE =(1<<17) /* Europian date format (DD/MM/YY) */
SYS_MILITARY =(1<<18) /* Military time format */ const SYS_MILITARY =(1<<18) /* Military time format */
SYS_TIMEBANK =(1<<19) /* Allow time bank functions */ const SYS_TIMEBANK =(1<<19) /* Allow time bank functions */
SYS_FILE_EM =(1<<20) /* Allow file attachments in E-mail */ const SYS_FILE_EM =(1<<20) /* Allow file attachments in E-mail */
SYS_SHRTPAGE =(1<<21) /* Short sysop page */ const SYS_SHRTPAGE =(1<<21) /* Short sysop page */
SYS_TIME_EXP =(1<<22) /* Set to expired values if out-of-time */ const SYS_TIME_EXP =(1<<22) /* Set to expired values if out-of-time */
SYS_FASTMAIL =(1<<23) /* Fast e-mail storage mode */ const SYS_FASTMAIL =(1<<23) /* Fast e-mail storage mode */
SYS_QVALKEYS =(1<<24) /* Quick validation keys enabled */ const SYS_QVALKEYS =(1<<24) /* Quick validation keys enabled */
SYS_ERRALARM =(1<<25) /* Error beeps on */ const SYS_ERRALARM =(1<<25) /* Error beeps on */
SYS_FWDTONET =(1<<26) /* Allow forwarding of e-mail to netmail */ const SYS_FWDTONET =(1<<26) /* Allow forwarding of e-mail to netmail */
SYS_DELREADM =(1<<27) /* Delete read mail automatically */ const SYS_DELREADM =(1<<27) /* Delete read mail automatically */
SYS_NOCDTCVT =(1<<28) /* No credit to minute conversions allowed */ const SYS_NOCDTCVT =(1<<28) /* No credit to minute conversions allowed */
SYS_DELEMAIL =(1<<29) /* Physically remove deleted e-mail immed. */ const SYS_DELEMAIL =(1<<29) /* Physically remove deleted e-mail immed. */
SYS_USRVDELM =(1<<30) /* Users can see deleted msgs */ const SYS_USRVDELM =(1<<30) /* Users can see deleted msgs */
SYS_SYSVDELM =(1<<31) /* Sysops can see deleted msgs */ const SYS_SYSVDELM =(1<<31) /* Sysops can see deleted msgs */
/********************************************/ /********************************************/
/********************************************/ /********************************************/
/* bbs.sys_status */ /* bbs.sys_status */
/********************************************/ /********************************************/
SS_UNUSED =(1<<0) /* Unused */ const SS_UNUSED =(1<<0) /* Unused */
SS_INITIAL =(1<<1) /* The bbs data has been initialized. */ const SS_INITIAL =(1<<1) /* The bbs data has been initialized. */
SS_TMPSYSOP =(1<<2) /* Temporary Sysop Status */ const SS_TMPSYSOP =(1<<2) /* Temporary Sysop Status */
SS_USERON =(1<<3) /* A User is logged on to the BBS */ const SS_USERON =(1<<3) /* A User is logged on to the BBS */
SS_LCHAT =(1<<4) /* Local chat in progress */ const SS_LCHAT =(1<<4) /* Local chat in progress */
SS_CAP =(1<<5) /* Capture is on */ const SS_CAP =(1<<5) /* Capture is on */
SS_ANSCAP =(1<<6) /* Capture ANSI codes too */ const SS_ANSCAP =(1<<6) /* Capture ANSI codes too */
SS_FINPUT =(1<<7) /* Using file for input */ const SS_FINPUT =(1<<7) /* Using file for input */
SS_COMISR =(1<<8) /* Com port ISR is installed */ const SS_COMISR =(1<<8) /* Com port ISR is installed */
SS_DAILY =(1<<9) /* Execute System Daily Event on logoff */ const SS_DAILY =(1<<9) /* Execute System Daily Event on logoff */
SS_INUEDIT =(1<<10) /* Inside Alt-Useredit section */ const SS_INUEDIT =(1<<10) /* Inside Alt-Useredit section */
SS_ABORT =(1<<11) /* Global abort input or output flag */ const SS_ABORT =(1<<11) /* Global abort input or output flag */
SS_SYSPAGE =(1<<12) /* Paging sysop */ const SS_SYSPAGE =(1<<12) /* Paging sysop */
SS_SYSALERT =(1<<13) /* Notify sysop when users hangs up */ const SS_SYSALERT =(1<<13) /* Notify sysop when users hangs up */
SS_GURUCHAT =(1<<14) /* Guru chat in progress */ const SS_GURUCHAT =(1<<14) /* Guru chat in progress */
SS_UNUSED2 =(1<<15) /* not used in v3 (used to be SS_NODEDAB) */ const SS_UNUSED2 =(1<<15) /* not used in v3 (used to be SS_NODEDAB) */
SS_EVENT =(1<<16) /* Time shortened due to upcoming event */ const SS_EVENT =(1<<16) /* Time shortened due to upcoming event */
SS_PAUSEON =(1<<17) /* Pause on, overriding user default */ const SS_PAUSEON =(1<<17) /* Pause on, overriding user default */
SS_PAUSEOFF =(1<<18) /* Pause off, overriding user default */ const SS_PAUSEOFF =(1<<18) /* Pause off, overriding user default */
SS_IN_CTRLP =(1<<19) /* Inside ctrl-p send node message func */ const SS_IN_CTRLP =(1<<19) /* Inside ctrl-p send node message func */
SS_NEWUSER =(1<<20) /* New User online */ const SS_NEWUSER =(1<<20) /* New User online */
SS_MDMDEBUG =(1<<21) /* Modem debug output */ const SS_MDMDEBUG =(1<<21) /* Modem debug output */
SS_NEST_PF =(1<<22) /* Nested in printfile function */ const SS_NEST_PF =(1<<22) /* Nested in printfile function */
SS_DCDHIGH =(1<<23) /* Assume DCD is high always */ const SS_DCDHIGH =(1<<23) /* Assume DCD is high always */
SS_SPLITP =(1<<24) /* Split-screen private chat */ const SS_SPLITP =(1<<24) /* Split-screen private chat */
SS_NEWDAY =(1<<25) /* Date changed while online */ const SS_NEWDAY =(1<<25) /* Date changed while online */
SS_RLOGIN =(1<<26) /* Current login via BSD RLogin */ const SS_RLOGIN =(1<<26) /* Current login via BSD RLogin */
SS_FILEXFER =(1<<27) /* File transfer in progress, halt spy */ const SS_FILEXFER =(1<<27) /* File transfer in progress, halt spy */
/********************************************/ /********************************************/
/********************************************/ /********************************************/
/* console.status */ /* console.status */
/********************************************/ /********************************************/
CON_R_ECHO =(1<<0) /* Echo remotely */ const CON_R_ECHO =(1<<0) /* Echo remotely */
CON_R_ECHOX =(1<<1) /* Echo X's to remote user */ const CON_R_ECHOX =(1<<1) /* Echo X's to remote user */
CON_R_INPUT =(1<<2) /* Accept input remotely */ const CON_R_INPUT =(1<<2) /* Accept input remotely */
CON_L_ECHO =(1<<3) /* Echo locally */ const CON_L_ECHO =(1<<3) /* Echo locally */
CON_L_ECHOX =(1<<4) /* Echo X's locally */ const CON_L_ECHOX =(1<<4) /* Echo X's locally */
CON_L_INPUT =(1<<5) /* Accept input locally */ const CON_L_INPUT =(1<<5) /* Accept input locally */
CON_RAW_IN =(1<<8) /* Raw input mode - no editing capabilities */ const CON_RAW_IN =(1<<8) /* Raw input mode - no editing capabilities */
CON_ECHO_OFF =(1<<10) /* Remote & Local echo disabled for ML/MF */ const CON_ECHO_OFF =(1<<10) /* Remote & Local echo disabled for ML/MF */
CON_UPARROW =(1<<11) /* Up arrow hit - move up one line */ const CON_UPARROW =(1<<11) /* Up arrow hit - move up one line */
CON_NO_INACT =(1<<13) /* User inactivity detection disabled */ const CON_NO_INACT =(1<<13) /* User inactivity detection disabled */
/********************************************/ /********************************************/
/********************************************/ /********************************************/
/* console.attributes, also used for ansi() */ /* console.attributes, also used for ansi() */
/********************************************/ /********************************************/
BLINK =0x80 /* blink bit */ const BLINK =0x80 /* blink bit */
HIGH =0x08 /* high intensity foreground bit */ const HIGH =0x08 /* high intensity foreground bit */
/* foreground colors */ /* foreground colors */
BLACK =0 /* dark colors (HIGH bit unset) */ const BLACK =0 /* dark colors (HIGH bit unset) */
BLUE =1 const BLUE =1
GREEN =2 const GREEN =2
CYAN =3 const CYAN =3
RED =4 const RED =4
MAGENTA =5 const MAGENTA =5
BROWN =6 const BROWN =6
LIGHTGRAY =7 const LIGHTGRAY =7
DARKGRAY =8 /* light colors (HIGH bit set) */ const DARKGRAY =8 /* light colors (HIGH bit set) */
LIGHTBLUE =9 const LIGHTBLUE =9
LIGHTGREEN =10 const LIGHTGREEN =10
LIGHTCYAN =11 const LIGHTCYAN =11
LIGHTRED =12 const LIGHTRED =12
LIGHTMAGENTA =13 const LIGHTMAGENTA =13
YELLOW =14 const YELLOW =14
WHITE =15 const WHITE =15
/* background colors */ /* background colors */
ANSI_NORMAL =0x100 /* special value for ansi() */ const ANSI_NORMAL =0x100 /* special value for ansi() */
BG_BLACK =0x200 /* special value for ansi() */ const BG_BLACK =0x200 /* special value for ansi() */
BG_BLUE =(BLUE<<4) const BG_BLUE =(BLUE<<4)
BG_GREEN =(GREEN<<4) const BG_GREEN =(GREEN<<4)
BG_CYAN =(CYAN<<4) const BG_CYAN =(CYAN<<4)
BG_RED =(RED<<4) const BG_RED =(RED<<4)
BG_MAGENTA =(MAGENTA<<4) const BG_MAGENTA =(MAGENTA<<4)
BG_BROWN =(BROWN<<4) const BG_BROWN =(BROWN<<4)
BG_LIGHTGRAY =(LIGHTGRAY<<4) const BG_LIGHTGRAY =(LIGHTGRAY<<4)
/********************************************/ /********************************************/
/* user.settings */ /* user.settings */
/********************************************/ /********************************************/
USER_DELETED =(1<<0) /* Deleted user slot */ const USER_DELETED =(1<<0) /* Deleted user slot */
USER_ANSI =(1<<1) /* Supports ANSI terminal emulation */ const USER_ANSI =(1<<1) /* Supports ANSI terminal emulation */
USER_COLOR =(1<<2) /* Send color codes */ const USER_COLOR =(1<<2) /* Send color codes */
USER_RIP =(1<<3) /* Supports RIP terminal emulation */ const USER_RIP =(1<<3) /* Supports RIP terminal emulation */
USER_PAUSE =(1<<4) /* Pause on every screen full */ const USER_PAUSE =(1<<4) /* Pause on every screen full */
USER_SPIN =(1<<5) /* Spinning cursor - Same as K_SPIN */ const USER_SPIN =(1<<5) /* Spinning cursor - Same as K_SPIN */
USER_INACTIVE =(1<<6) /* Inactive user slot */ const USER_INACTIVE =(1<<6) /* Inactive user slot */
USER_EXPERT =(1<<7) /* Expert menu mode */ const USER_EXPERT =(1<<7) /* Expert menu mode */
USER_ANFSCAN =(1<<8) /* Auto New file scan */ const USER_ANFSCAN =(1<<8) /* Auto New file scan */
USER_CLRSCRN =(1<<9) /* Clear screen before each message */ const USER_CLRSCRN =(1<<9) /* Clear screen before each message */
USER_QUIET =(1<<10) /* Quiet mode upon logon */ const USER_QUIET =(1<<10) /* Quiet mode upon logon */
USER_BATCHFLAG =(1<<11) /* File list allow batch dl flags */ const USER_BATCHFLAG=(1<<11) /* File list allow batch dl flags */
USER_NETMAIL =(1<<12) /* Forward e-mail to fidonet addr */ const USER_NETMAIL =(1<<12) /* Forward e-mail to fidonet addr */
USER_CURSUB =(1<<13) /* Remember current sub-board/dir */ const USER_CURSUB =(1<<13) /* Remember current sub-board/dir */
USER_ASK_NSCAN =(1<<14) /* Ask for newscanning upon logon */ const USER_ASK_NSCAN=(1<<14) /* Ask for newscanning upon logon */
USER_NO_EXASCII =(1<<15) /* Don't send extended ASCII */ const USER_NO_EXASCII=(1<<15) /* Don't send extended ASCII */
USER_ASK_SSCAN =(1<<16) /* Ask for messages to you at logon */ const USER_ASK_SSCAN=(1<<16) /* Ask for messages to you at logon */
USER_AUTOTERM =(1<<17) /* Autodetect terminal type */ const USER_AUTOTERM =(1<<17) /* Autodetect terminal type */
USER_COLDKEYS =(1<<18) /* No hot-keys */ const USER_COLDKEYS =(1<<18) /* No hot-keys */
USER_EXTDESC =(1<<19) /* Extended file descriptions */ const USER_EXTDESC =(1<<19) /* Extended file descriptions */
USER_AUTOHANG =(1<<20) /* Auto-hang-up after transfer */ const USER_AUTOHANG =(1<<20) /* Auto-hang-up after transfer */
USER_WIP =(1<<21) /* Supports WIP terminal emulation */ const USER_WIP =(1<<21) /* Supports WIP terminal emulation */
USER_AUTOLOGON =(1<<22) /* AutoLogon via IP */ const USER_AUTOLOGON=(1<<22) /* AutoLogon via IP */
/********************************************/ /********************************************/
/************************************************************************/ /************************************************************************/
/* Valid flags for user.security.exempt/restrict/flags */ /* Valid flags for user.security.exempt/restrict/flags */
/************************************************************************/ /************************************************************************/
UFLAG_A =(1<<0) const UFLAG_A =(1<<0)
UFLAG_B =(1<<1) const UFLAG_B =(1<<1)
UFLAG_C =(1<<2) const UFLAG_C =(1<<2)
UFLAG_D =(1<<3) const UFLAG_D =(1<<3)
UFLAG_E =(1<<4) const UFLAG_E =(1<<4)
UFLAG_F =(1<<5) const UFLAG_F =(1<<5)
UFLAG_G =(1<<6) const UFLAG_G =(1<<6)
UFLAG_H =(1<<7) const UFLAG_H =(1<<7)
UFLAG_I =(1<<8) const UFLAG_I =(1<<8)
UFLAG_J =(1<<9) const UFLAG_J =(1<<9)
UFLAG_K =(1<<10) const UFLAG_K =(1<<10)
UFLAG_L =(1<<11) const UFLAG_L =(1<<11)
UFLAG_M =(1<<12) const UFLAG_M =(1<<12)
UFLAG_N =(1<<13) const UFLAG_N =(1<<13)
UFLAG_O =(1<<14) const UFLAG_O =(1<<14)
UFLAG_P =(1<<15) const UFLAG_P =(1<<15)
UFLAG_Q =(1<<16) const UFLAG_Q =(1<<16)
UFLAG_R =(1<<17) const UFLAG_R =(1<<17)
UFLAG_S =(1<<18) const UFLAG_S =(1<<18)
UFLAG_T =(1<<19) const UFLAG_T =(1<<19)
UFLAG_U =(1<<20) const UFLAG_U =(1<<20)
UFLAG_V =(1<<21) const UFLAG_V =(1<<21)
UFLAG_W =(1<<22) const UFLAG_W =(1<<22)
UFLAG_X =(1<<23) const UFLAG_X =(1<<23)
UFLAG_Y =(1<<24) const UFLAG_Y =(1<<24)
UFLAG_Z =(1<<25) const UFLAG_Z =(1<<25)
/********************************************/ /********************************************/
/* Bits in 'mode' for getkey and getstr */ /* Bits in 'mode' for getkey and getstr */
/********************************************/ /********************************************/
K_UPPER =(1<<0) /* Converts all letters to upper case */ const K_UPPER =(1<<0) /* Converts all letters to upper case */
K_UPRLWR =(1<<1) /* Upper/Lower case automatically */ const K_UPRLWR =(1<<1) /* Upper/Lower case automatically */
K_NUMBER =(1<<2) /* Allow numbers only */ const K_NUMBER =(1<<2) /* Allow numbers only */
K_WRAP =(1<<3) /* Allows word wrap */ const K_WRAP =(1<<3) /* Allows word wrap */
K_MSG =(1<<4) /* Allows ANSI, ^N ^A ^G */ const K_MSG =(1<<4) /* Allows ANSI, ^N ^A ^G */
K_SPIN =(1<<5) /* Spinning cursor (same as SPIN) */ const K_SPIN =(1<<5) /* Spinning cursor (same as SPIN) */
K_LINE =(1<<6) /* Input line (inverse color) */ const K_LINE =(1<<6) /* Input line (inverse color) */
K_EDIT =(1<<7) /* Edit string passed */ const K_EDIT =(1<<7) /* Edit string passed */
K_CHAT =(1<<8) /* In chat multi-chat */ const K_CHAT =(1<<8) /* In chat multi-chat */
K_NOCRLF =(1<<9) /* Don't print CRLF after string input */ const K_NOCRLF =(1<<9) /* Don't print CRLF after string input */
K_ALPHA =(1<<10) /* Only allow alphabetic characters */ const K_ALPHA =(1<<10) /* Only allow alphabetic characters */
K_GETSTR =(1<<11) /* getkey called from getstr() */ const K_GETSTR =(1<<11) /* getkey called from getstr() */
K_LOWPRIO =(1<<12) /* low priority input */ const K_LOWPRIO =(1<<12) /* low priority input */
K_NOEXASC =(1<<13) /* No extended ASCII allowed */ const K_NOEXASC =(1<<13) /* No extended ASCII allowed */
K_E71DETECT =(1<<14) /* Detect E-7-1 terminal type */ const K_E71DETECT =(1<<14) /* Detect E-7-1 terminal type */
K_AUTODEL =(1<<15) /* Auto-delete text (used with K_EDIT) */ const K_AUTODEL =(1<<15) /* Auto-delete text (used with K_EDIT) */
K_COLD =(1<<16) /* Possible cold key mode */ const K_COLD =(1<<16) /* Possible cold key mode */
K_NOECHO =(1<<17) /* Don't echo input */ const K_NOECHO =(1<<17) /* Don't echo input */
K_TAB =(1<<18) /* Treat TAB key as CR */ const K_TAB =(1<<18) /* Treat TAB key as CR */
/********************************************/ /********************************************/
/********************************************/ /********************************************/
/* Bits in 'mode' for putmsg and printfile */ /* Bits in 'mode' for putmsg and printfile */
/********************************************/ /********************************************/
P_NOABORT =(1<<0) /* Disallows abortion of a message */ const P_NOABORT =(1<<0) /* Disallows abortion of a message */
P_SAVEATR =(1<<1) /* Save the new current attributres after */ const P_SAVEATR =(1<<1) /* Save the new current attributres after */
/* msg has printed */ /* msg has printed */
P_NOATCODES =(1<<2) /* Don't allow @ codes */ const P_NOATCODES =(1<<2) /* Don't allow @ codes */
P_OPENCLOSE =(1<<3) /* Open and close the file */ const P_OPENCLOSE =(1<<3) /* Open and close the file */
/********************************************/ /********************************************/
/********************************************/ /********************************************/
/* system.new_user_questions */ /* system.new_user_questions */
/********************************************/ /********************************************/
UQ_ALIASES =(1<<0) /* Ask for alias */ const UQ_ALIASES =(1<<0) /* Ask for alias */
UQ_LOCATION =(1<<1) /* Ask for location */ const UQ_LOCATION =(1<<1) /* Ask for location */
UQ_ADDRESS =(1<<2) /* Ask for address */ const UQ_ADDRESS =(1<<2) /* Ask for address */
UQ_PHONE =(1<<3) /* Ask for phone number */ const UQ_PHONE =(1<<3) /* Ask for phone number */
UQ_HANDLE =(1<<4) /* Ask for chat handle */ const UQ_HANDLE =(1<<4) /* Ask for chat handle */
UQ_DUPHAND =(1<<5) /* Search for duplicate handles */ const UQ_DUPHAND =(1<<5) /* Search for duplicate handles */
UQ_SEX =(1<<6) /* Ask for sex */ const UQ_SEX =(1<<6) /* Ask for sex */
UQ_BIRTH =(1<<7) /* Ask for birth date */ const UQ_BIRTH =(1<<7) /* Ask for birth date */
UQ_COMP =(1<<8) /* Ask for computer type */ const UQ_COMP =(1<<8) /* Ask for computer type */
UQ_MC_COMP =(1<<9) /* Multiple choice computer type */ const UQ_MC_COMP =(1<<9) /* Multiple choice computer type */
UQ_REALNAME =(1<<10) /* Ask for real name */ const UQ_REALNAME =(1<<10) /* Ask for real name */
UQ_DUPREAL =(1<<11) /* Search for duplicate real names */ const UQ_DUPREAL =(1<<11) /* Search for duplicate real names */
UQ_COMPANY =(1<<12) /* Ask for company name */ const UQ_COMPANY =(1<<12) /* Ask for company name */
UQ_NOEXASC =(1<<13) /* Don't allow ex-ASCII in user text */ const UQ_NOEXASC =(1<<13) /* Don't allow ex-ASCII in user text */
UQ_CMDSHELL =(1<<14) /* Ask for command shell */ const UQ_CMDSHELL =(1<<14) /* Ask for command shell */
UQ_XEDIT =(1<<15) /* Ask for external editor */ const UQ_XEDIT =(1<<15) /* Ask for external editor */
UQ_NODEF =(1<<16) /* Don't ask for default settings */ const UQ_NODEF =(1<<16) /* Don't ask for default settings */
UQ_NOCOMMAS =(1<<17) /* Do not require commas in location */ const UQ_NOCOMMAS =(1<<17) /* Do not require commas in location */
/********************************************/ /********************************************/
/********************************************/ /********************************************/
/* node.settings */ /* node.settings */
/********************************************/ /********************************************/
NM_ANSALARM =(1<<0) /* Alarm locally on answer */ const NM_ANSALARM =(1<<0) /* Alarm locally on answer */
NM_WFCSCRN =(1<<1) /* Wait for call screen */ const NM_WFCSCRN =(1<<1) /* Wait for call screen */
NM_WFCMSGS =(1<<2) /* Include total messages/files on WFC */ const NM_WFCMSGS =(1<<2) /* Include total messages/files on WFC */
NM_LCL_EDIT =(1<<3) /* Use local editor to create messages */ const NM_LCL_EDIT =(1<<3) /* Use local editor to create messages */
NM_EMSOVL =(1<<4) /* Use expanded memory of overlays */ const NM_EMSOVL =(1<<4) /* Use expanded memory of overlays */
NM_WINOS2 =(1<<5) /* Use Windows/OS2 time slice API call */ const NM_WINOS2 =(1<<5) /* Use Windows/OS2 time slice API call */
NM_INT28 =(1<<6) /* Make int 28 DOS idle calls */ const NM_INT28 =(1<<6) /* Make int 28 DOS idle calls */
NM_NODV =(1<<7) /* Don't detect and use DESQview API */ const NM_NODV =(1<<7) /* Don't detect and use DESQview API */
NM_NO_NUM =(1<<8) /* Don't allow logons by user number */ const NM_NO_NUM =(1<<8) /* Don't allow logons by user number */
NM_LOGON_R =(1<<9) /* Allow logons by user real name */ const NM_LOGON_R =(1<<9) /* Allow logons by user real name */
NM_LOGON_P =(1<<10) /* Secure logons (always ask for password) */ const NM_LOGON_P =(1<<10) /* Secure logons (always ask for password) */
NM_NO_LKBRD =(1<<11) /* No local keyboard (at all) */ const NM_NO_LKBRD =(1<<11) /* No local keyboard (at all) */
NM_SYSPW =(1<<12) /* Protect WFC keys and Alt keys with SY: */ const NM_SYSPW =(1<<12) /* Protect WFC keys and Alt keys with SY: */
NM_NO_INACT =(1<<13) /* No local inactivity alert/logoff */ const NM_NO_INACT =(1<<13) /* No local inactivity alert/logoff */
NM_NOBEEP =(1<<14) /* Don't beep locally */ const NM_NOBEEP =(1<<14) /* Don't beep locally */
NM_LOWPRIO =(1<<15) /* Always use low priority input */ const NM_LOWPRIO =(1<<15) /* Always use low priority input */
NM_7BITONLY =(1<<16) /* Except 7-bit input only (E71 terminals) */ const NM_7BITONLY =(1<<16) /* Except 7-bit input only (E71 terminals) */
NM_RESETVID =(1<<17) /* Reset video mode between callers? */ const NM_RESETVID =(1<<17) /* Reset video mode between callers? */
NM_NOPAUSESPIN =(1<<18) /* No spinning cursor at pause prompt */ const NM_NOPAUSESPIN=(1<<18) /* No spinning cursor at pause prompt */
/********************************************/ /********************************************/
/********************************************/ /********************************************/
/* netmail_misc */ /* netmail_misc */
/********************************************/ /********************************************/
NMAIL_ALLOW =(1<<0) /* Allow NetMail */ const NMAIL_ALLOW =(1<<0) /* Allow NetMail */
NMAIL_CRASH =(1<<1) /* Default netmail to crash */ const NMAIL_CRASH =(1<<1) /* Default netmail to crash */
NMAIL_HOLD =(1<<2) /* Default netmail to hold */ const NMAIL_HOLD =(1<<2) /* Default netmail to hold */
NMAIL_KILL =(1<<3) /* Default netmail to kill after sent */ const NMAIL_KILL =(1<<3) /* Default netmail to kill after sent */
NMAIL_ALIAS =(1<<4) /* Use Aliases in NetMail */ const NMAIL_ALIAS =(1<<4) /* Use Aliases in NetMail */
NMAIL_FILE =(1<<5) /* Allow file attachments */ const NMAIL_FILE =(1<<5) /* Allow file attachments */
NMAIL_DIRECT =(1<<6) /* Default netmail to direct */ const NMAIL_DIRECT =(1<<6) /* Default netmail to direct */
/********************************************/ /********************************************/
/********************************************/ /********************************************/
/* Bit values for sub[x].settings */ /* Bit values for sub[x].settings */
/********************************************/ /********************************************/
SUB_QNET =(1<<3) /* Sub-board is netted via QWK network */ const SUB_QNET =(1<<3) /* Sub-board is netted via QWK network */
SUB_PNET =(1<<4) /* Sub-board is netted via PostLink */ const SUB_PNET =(1<<4) /* Sub-board is netted via PostLink */
SUB_FIDO =(1<<5) /* Sub-board is netted via FidoNet */ const SUB_FIDO =(1<<5) /* Sub-board is netted via FidoNet */
SUB_PRIV =(1<<6) /* Allow private posts on sub */ const SUB_PRIV =(1<<6) /* Allow private posts on sub */
SUB_PONLY =(1<<7) /* Private posts only */ const SUB_PONLY =(1<<7) /* Private posts only */
SUB_ANON =(1<<8) /* Allow anonymous posts on sub */ const SUB_ANON =(1<<8) /* Allow anonymous posts on sub */
SUB_AONLY =(1<<9) /* Anonymous only */ const SUB_AONLY =(1<<9) /* Anonymous only */
SUB_NAME =(1<<10) /* Must use real names */ const SUB_NAME =(1<<10) /* Must use real names */
SUB_DEL =(1<<11) /* Allow users to delete messages */ const SUB_DEL =(1<<11) /* Allow users to delete messages */
SUB_DELLAST =(1<<12) /* Allow users to delete last msg only */ const SUB_DELLAST =(1<<12) /* Allow users to delete last msg only */
SUB_FORCED =(1<<13) /* Sub-board is forced scanning */ const SUB_FORCED =(1<<13) /* Sub-board is forced scanning */
SUB_NOTAG =(1<<14) /* Don't add tag or origin lines */ const SUB_NOTAG =(1<<14) /* Don't add tag or origin lines */
SUB_TOUSER =(1<<15) /* Prompt for to user on posts */ const SUB_TOUSER =(1<<15) /* Prompt for to user on posts */
SUB_ASCII =(1<<16) /* ASCII characters only */ const SUB_ASCII =(1<<16) /* ASCII characters only */
SUB_QUOTE =(1<<17) /* Allow online quoting */ const SUB_QUOTE =(1<<17) /* Allow online quoting */
SUB_NSDEF =(1<<18) /* New-Scan on by default */ const SUB_NSDEF =(1<<18) /* New-Scan on by default */
SUB_INET =(1<<19) /* Sub-board is netted via Internet */ const SUB_INET =(1<<19) /* Sub-board is netted via Internet */
SUB_FAST =(1<<20) /* Fast storage mode */ const SUB_FAST =(1<<20) /* Fast storage mode */
SUB_KILL =(1<<21) /* Kill read messages automatically */ const SUB_KILL =(1<<21) /* Kill read messages automatically */
SUB_KILLP =(1<<22) /* Kill read pvt messages automatically */ const SUB_KILLP =(1<<22) /* Kill read pvt messages automatically */
SUB_SYSPERM =(1<<23) /* Sysop messages are permament */ const SUB_SYSPERM =(1<<23) /* Sysop messages are permament */
SUB_GATE =(1<<24) /* Gateway between Network types */ const SUB_GATE =(1<<24) /* Gateway between Network types */
SUB_LZH =(1<<25) /* Use LZH compression for msgs */ const SUB_LZH =(1<<25) /* Use LZH compression for msgs */
SUB_SSDEF =(1<<26) /* Default ON for Scan for Your msgs */ const SUB_SSDEF =(1<<26) /* Default ON for Scan for Your msgs */
SUB_HYPER =(1<<27) /* Hyper allocation */ const SUB_HYPER =(1<<27) /* Hyper allocation */
/********************************************/ /********************************************/
/********************************************/ /********************************************/
/* Bit values for dir[x].settings */ /* Bit values for dir[x].settings */
/********************************************/ /********************************************/
DIR_FCHK =(1<<0) /* Check for file existance */ const DIR_FCHK =(1<<0) /* Check for file existance */
DIR_RATE =(1<<1) /* Force uploads to be rated G,R, or X */ const DIR_RATE =(1<<1) /* Force uploads to be rated G,R, or X */
DIR_MULT =(1<<2) /* Ask for multi-disk numbering */ const DIR_MULT =(1<<2) /* Ask for multi-disk numbering */
DIR_DUPES =(1<<3) /* Search this dir for upload dupes */ const DIR_DUPES =(1<<3) /* Search this dir for upload dupes */
DIR_FREE =(1<<4) /* Free downloads */ const DIR_FREE =(1<<4) /* Free downloads */
DIR_TFREE =(1<<5) /* Time to download is free */ const DIR_TFREE =(1<<5) /* Time to download is free */
DIR_CDTUL =(1<<6) /* Credit Uploads */ const DIR_CDTUL =(1<<6) /* Credit Uploads */
DIR_CDTDL =(1<<7) /* Credit Downloads */ const DIR_CDTDL =(1<<7) /* Credit Downloads */
DIR_ANON =(1<<8) /* Anonymous uploads */ const DIR_ANON =(1<<8) /* Anonymous uploads */
DIR_AONLY =(1<<9) /* Anonymous only */ const DIR_AONLY =(1<<9) /* Anonymous only */
DIR_ULDATE =(1<<10) /* Include upload date in listing */ const DIR_ULDATE =(1<<10) /* Include upload date in listing */
DIR_DIZ =(1<<11) /* FILE_ID.DIZ and DESC.SDI support */ const DIR_DIZ =(1<<11) /* FILE_ID.DIZ and DESC.SDI support */
DIR_NOSCAN =(1<<12) /* Don't new-scan this directory */ const DIR_NOSCAN =(1<<12) /* Don't new-scan this directory */
DIR_NOAUTO =(1<<13) /* Don't auto-add this directory */ const DIR_NOAUTO =(1<<13) /* Don't auto-add this directory */
DIR_ULTIME =(1<<14) /* Deduct time during uploads */ const DIR_ULTIME =(1<<14) /* Deduct time during uploads */
DIR_CDTMIN =(1<<15) /* Give uploader minutes instead of cdt */ const DIR_CDTMIN =(1<<15) /* Give uploader minutes instead of cdt */
DIR_SINCEDL =(1<<16) /* Purge based on days since last dl */ const DIR_SINCEDL =(1<<16) /* Purge based on days since last dl */
DIR_MOVENEW =(1<<17) /* Files marked as new when moved */ const DIR_MOVENEW =(1<<17) /* Files marked as new when moved */
/********************************************/ /********************************************/
/********************************************/ /********************************************/
/* Bit values for file.settings */ /* Bit values for file.settings */
/********************************************/ /********************************************/
FILE_EXTDESC =(1<<0) /* Extended description exists */ const FILE_EXTDESC =(1<<0) /* Extended description exists */
FILE_ANON =(1<<1) /* Anonymous upload */ const FILE_ANON =(1<<1) /* Anonymous upload */
/********************************************/ /********************************************/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment