Removed timebank and nextuser doors, added signature editor

This commit is contained in:
Michiel Broek
2003-02-02 21:26:46 +00:00
parent daf359577b
commit f27c25d012
29 changed files with 511 additions and 1310 deletions

View File

@@ -2086,8 +2086,6 @@ char *getmenutype(int val)
case 19: return (char *)"Display textfile with more";
case 20: return (char *)"Display .A?? file with Enter";
case 21: return (char *)"Display Text Only";
case 22: return (char *)"Message to nextuser door";
case 23: return (char *)"Time banking system";
case 25: return (char *)"Safe cracker door";
@@ -2150,6 +2148,7 @@ char *getmenutype(int val)
case 316: return (char *)"Change fullscreen editor";
case 317: return (char *)"Change FS edit shortcut keys";
case 318: return (char *)"Change address";
case 319: return (char *)"Change .signature file";
case 401: return (char *)"Add oneliner";
case 402: return (char *)"List oneliners";

View File

@@ -583,7 +583,7 @@ void EditFGroup(void)
working(2, 0, 0);
working(0, 0, 0);
} else {
errmsg("Cannot add group, change global setting in menu 1.13.5");
errmsg("Cannot add group, change global setting in menu 1.11.5");
}
}

View File

@@ -542,34 +542,11 @@ void e_colors(void)
void e_nu_door(void)
{
clr_index();
set_color(WHITE, BLACK);
mvprintw( 5, 2, "1.9 EDIT NEXT USER DOOR");
set_color(CYAN, BLACK);
mvprintw( 7, 2, "1. Text file");
mvprintw( 8, 2, "2. Quote");
for (;;) {
set_color(WHITE, BLACK);
show_str( 7,17,49, CFG.sNuScreen);
show_str( 8,17,64, CFG.sNuQuote);
switch(select_menu(2)) {
case 0: return;
case 1: E_STR(7,17,49, CFG.sNuScreen, "The ^text file^ to display to the next user.")
case 2: E_STR(8,17,64, CFG.sNuQuote, "The ^quote^ to insert in the next user text.")
}
};
}
void e_safe_door(void)
{
clr_index();
set_color(WHITE, BLACK);
mvprintw( 5, 2, "1.10 EDIT SAFE DOOR");
mvprintw( 5, 2, "1.9 EDIT SAFE DOOR");
set_color(CYAN, BLACK);
mvprintw( 7, 2, "1. Digit 1");
mvprintw( 8, 2, "2. Digit 2");
@@ -609,52 +586,11 @@ void e_safe_door(void)
void e_timebank(void)
{
clr_index();
set_color(WHITE, BLACK);
mvprintw( 5, 6, "1.11 EDIT TIME BANK");
set_color(CYAN, BLACK);
mvprintw( 7, 6, "1. Users time balance");
mvprintw( 8, 6, "2. Max time withdraw");
mvprintw( 9, 6, "3. Max time deposit");
mvprintw(10, 6, "4. Users Kb. balance");
mvprintw(11, 6, "5. Max Kb. withdraw");
mvprintw(12, 6, "6. Max Kb. deposit");
mvprintw(13, 6, "7. Users time ratio");
mvprintw(14, 6, "8. Users Kb. ratio");
for (;;) {
set_color(WHITE, BLACK);
show_int( 7,31, CFG.iMaxTimeBalance);
show_int( 8,31, CFG.iMaxTimeWithdraw);
show_int( 9,31, CFG.iMaxTimeDeposit);
show_int(10,31, CFG.iMaxByteBalance);
show_int(11,31, CFG.iMaxByteWithdraw);
show_int(12,31, CFG.iMaxByteDeposit);
show_str(13,31,6, CFG.sTimeRatio);
show_str(14,31,6, CFG.sByteRatio);
switch(select_menu(8)) {
case 0: return;
case 1: E_INT( 7,31, CFG.iMaxTimeBalance, "Maximum ^time balance^")
case 2: E_INT( 8,31, CFG.iMaxTimeWithdraw, "Maximum ^time withdraw^")
case 3: E_INT( 9,31, CFG.iMaxTimeDeposit, "Maximum ^time deposit^")
case 4: E_INT(10,31, CFG.iMaxByteBalance, "Maximum ^bytes balance^")
case 5: E_INT(11,31, CFG.iMaxByteWithdraw, "Maximum ^bytes withdraw^")
case 6: E_INT(12,31, CFG.iMaxByteDeposit, "Maximum ^bytes deposit^")
case 7: E_STR(13,31,6, CFG.sTimeRatio, "^Time ratio^")
case 8: E_STR(14,31,6, CFG.sByteRatio, "^Bytes ratio^")
}
};
}
void e_paging(void)
{
clr_index();
set_color(WHITE, BLACK);
mvprintw( 5, 2, "1.12 EDIT SYSOP PAGING");
mvprintw( 5, 2, "1.10 EDIT SYSOP PAGING");
set_color(CYAN, BLACK);
mvprintw( 7, 2, "1. Ext. Chat");
mvprintw( 8, 2, "2. Chat Device");
@@ -758,7 +694,7 @@ void e_flags(int Users)
if (Users)
mvprintw( 5, 6, "1.6 EDIT USER FLAG DESCRIPTIONS");
else
mvprintw( 5, 6, "1.20 EDIT MANAGER FLAG DESCRIPTIONS");
mvprintw( 5, 6, "1.18 EDIT MANAGER FLAG DESCRIPTIONS");
set_color(CYAN, BLACK);
for (i = 0; i < 32; i++) {
@@ -828,7 +764,7 @@ void e_ticconf(void)
clr_index();
set_color(WHITE, BLACK);
mvprintw( 5, 6, "1.13 EDIT FILEECHO PROCESSING");
mvprintw( 5, 6, "1.11 EDIT FILEECHO PROCESSING");
set_color(CYAN, BLACK);
mvprintw( 7, 2, "1. Keep days");
@@ -920,7 +856,7 @@ void s_fidomailcfg(void)
{
clr_index();
set_color(WHITE, BLACK);
mvprintw( 5, 5, "1.14 EDIT FIDONET MAIL AND ECHOMAIL PROCESSING");
mvprintw( 5, 5, "1.12 EDIT FIDONET MAIL AND ECHOMAIL PROCESSING");
set_color(CYAN, BLACK);
mvprintw( 7, 2, "1. Badboard");
mvprintw( 8, 2, "2. Dupeboard");
@@ -1028,7 +964,7 @@ void s_intmailcfg(void)
{
clr_index();
set_color(WHITE, BLACK);
mvprintw( 5, 5, "1.15 EDIT INTERNET MAIL AND NEWS PROCESSING");
mvprintw( 5, 5, "1.13 EDIT INTERNET MAIL AND NEWS PROCESSING");
set_color(CYAN, BLACK);
mvprintw( 7, 2, "1. POP3 node");
mvprintw( 8, 2, "2. SMTP node");
@@ -1097,7 +1033,7 @@ void e_uucp(void)
clr_index();
set_color(WHITE, BLACK);
mvprintw( 5, 6, "1.15 EDIT UUCP GATEWAY");
mvprintw( 5, 6, "1.13 EDIT UUCP GATEWAY");
set_color(CYAN, BLACK);
mvprintw( 7, 6, "1. Zone");
mvprintw( 8, 6, "2. Net");
@@ -1181,7 +1117,7 @@ void s_newfiles(void)
{
clr_index();
set_color(WHITE, BLACK);
mvprintw( 5, 2, "1.16 ALLFILES & NEWFILES LISTINGS");
mvprintw( 5, 2, "1.14 ALLFILES & NEWFILES LISTINGS");
set_color(CYAN, BLACK);
mvprintw( 7, 2, "1. New days");
mvprintw( 8, 2, "2. Security");
@@ -1372,7 +1308,7 @@ void s_mailer(void)
{
clr_index();
set_color(WHITE, BLACK);
mvprintw( 5, 2, "1.17 EDIT MAILER SETTINGS");
mvprintw( 5, 2, "1.15 EDIT MAILER SETTINGS");
set_color(CYAN, BLACK);
mvprintw( 7, 2, "1. Mailer logl.");
mvprintw( 8, 2, "2. Default phone");
@@ -1407,7 +1343,7 @@ void e_trans(int start)
clr_index();
set_color(WHITE, BLACK);
mvprintw( 5, 6, "1.17 EDIT PHONE TRANSLATION");
mvprintw( 5, 6, "1.15 EDIT PHONE TRANSLATION");
set_color(CYAN, BLACK);
mvprintw( 7, 12, "String to match String to replace");
for (i = 0; i < 10; i++) {
@@ -1459,7 +1395,7 @@ void e_mailer(void)
switch(select_menu(23)) {
case 0: return;
case 1: E_LOGL(CFG.cico_loglevel, "1.17.1", s_mailer)
case 1: E_LOGL(CFG.cico_loglevel, "1.15.1", s_mailer)
case 2: E_STR( 8,23,20,CFG.Phone, "The mailer default ^phone number^ for this system")
case 3: E_STR( 9,23,30,CFG.Flags, "The mailer ^TCP/IP capability flags^ for this system")
case 4: E_INT( 10,23, CFG.Speed, "The mailer ^default linespeed^ for this system")
@@ -1495,7 +1431,7 @@ void e_ftpd(void)
{
clr_index();
set_color(WHITE, BLACK);
mvprintw( 5, 2, "1.18 EDIT FTPD SETTINGS");
mvprintw( 5, 2, "1.16 EDIT FTPD SETTINGS");
set_color(CYAN, BLACK);
mvprintw( 7, 2, "1. Upload pth");
mvprintw( 8, 2, "2. Banner msg");
@@ -1571,7 +1507,7 @@ void e_html(void)
{
clr_index();
set_color(WHITE, BLACK);
mvprintw( 5, 2, "1.19 EDIT HTML SETTINGS");
mvprintw( 5, 2, "1.17 EDIT HTML SETTINGS");
set_color(CYAN, BLACK);
mvprintw( 7, 2, "1. Docs root");
mvprintw( 8, 2, "2. Link to ftp");
@@ -1685,21 +1621,19 @@ void global_menu(void)
mvprintw(12, 6, "6. Edit User flag Descriptions");
mvprintw(13, 6, "7. Edit New Users defaults");
mvprintw(14, 6, "8. Edit Text Colors");
mvprintw(15, 6, "9. Edit Next User Door");
mvprintw(16, 6, "10. Edit Safe Door");
mvprintw(15, 6, "9. Edit Safe Door");
mvprintw(16, 6, "10. Edit Sysop Paging");
mvprintw( 7,46, "11. Edit Time Bank Door");
mvprintw( 8,46, "12. Edit Sysop Paging");
mvprintw( 9,46, "13. Edit Files Processing");
mvprintw(10,46, "14. Edit Fidonet Mail/Echomail");
mvprintw(11,46, "15. Edit Internet Mail/News");
mvprintw(12,46, "16. Edit All-/Newfiles lists");
mvprintw(13,46, "17. Edit Mailer global setup");
mvprintw(14,46, "18. Edit Ftp daemon setup");
mvprintw(15,46, "19. Edit HTML pages setup");
mvprintw(16,46, "20. Edit Mgr flag descriptions");
mvprintw( 7,46, "11. Edit Files Processing");
mvprintw( 8,46, "12. Edit Fidonet Mail/Echomail");
mvprintw( 9,46, "13. Edit Internet Mail/News");
mvprintw(10,46, "14. Edit All-/Newfiles lists");
mvprintw(11,46, "15. Edit Mailer global setup");
mvprintw(12,46, "16. Edit Ftp daemon setup");
mvprintw(13,46, "17. Edit HTML pages setup");
mvprintw(14,46, "18. Edit Mgr flag descriptions");
switch(select_menu(20)) {
switch(select_menu(18)) {
case 0:
crc1 = 0xffffffff;
crc1 = upd_crc32((char *)&CFG, crc1, sizeof(CFG));
@@ -1736,39 +1670,33 @@ void global_menu(void)
e_colors();
break;
case 9:
e_nu_door();
break;
case 10:
e_safe_door();
break;
case 11:
e_timebank();
break;
case 12:
case 10:
e_paging();
break;
case 13:
case 11:
e_ticconf();
break;
case 14:
case 12:
e_fidomailcfg();
break;
case 15:
case 13:
e_intmailcfg();
break;
case 16:
case 14:
e_newfiles();
break;
case 17:
case 15:
e_mailer();
break;
case 18:
case 16:
e_ftpd();
break;
case 19:
case 17:
e_html();
break;
case 20:
case 18:
e_flags(FALSE);
break;
}
@@ -1992,12 +1920,7 @@ int global_doc(FILE *fp, FILE *toc, int page)
fprintf(fp, " File description %s on %s\n", get_color(CFG.FiledescF), get_color(CFG.FiledescB));
fprintf(fp, " Message input %s on %s\n", get_color(CFG.MsgInputColourF), get_color(CFG.MsgInputColourB));
addtoc(fp, toc, 1, 10, page, (char *)"Next user door");
fprintf(fp, " Text file %s\n", CFG.sNuScreen);
fprintf(fp, " Quote %s\n", CFG.sNuQuote);
addtoc(fp, toc, 1, 11, page, (char *)"Safecracker door");
addtoc(fp, toc, 1, 10, page, (char *)"Safecracker door");
fprintf(fp, " Digit nr 1 %d\n", CFG.iSafeFirstDigit);
fprintf(fp, " Digit nr 2 %d\n", CFG.iSafeSecondDigit);
@@ -2010,18 +1933,7 @@ int global_doc(FILE *fp, FILE *toc, int page)
fprintf(fp, " Safe opened file %s\n", CFG.sSafeOpened);
page = newpage(fp, page);
addtoc(fp, toc, 1, 12, page, (char *)"Timebank door");
fprintf(fp, " Users time balance %d\n", CFG.iMaxTimeBalance);
fprintf(fp, " Max. time withdraw %d\n", CFG.iMaxTimeWithdraw);
fprintf(fp, " Max. time deposit %d\n", CFG.iMaxTimeDeposit);
fprintf(fp, " Users kb. balance %d\n", CFG.iMaxByteBalance);
fprintf(fp, " Max. Kb. withdraw %d\n", CFG.iMaxByteWithdraw);
fprintf(fp, " Max. Kb. deposit %d\n", CFG.iMaxByteDeposit);
fprintf(fp, " Users time ratio %s\n", CFG.sTimeRatio);
fprintf(fp, " Users Kb. ratio %s\n", CFG.sByteRatio);
addtoc(fp, toc, 1, 13, page, (char *)"Sysop paging");
addtoc(fp, toc, 1, 11, page, (char *)"Sysop paging");
fprintf(fp, " Ext. Chat program %s\n", CFG.sExternalChat);
fprintf(fp, " Chat device %s\n", CFG.sChatDevice);
@@ -2045,7 +1957,7 @@ int global_doc(FILE *fp, FILE *toc, int page)
fprintf(fp, " Friday %s %s\n", CFG.cStartTime[5], CFG.cStopTime[5]);
fprintf(fp, " Saterday %s %s\n", CFG.cStartTime[6], CFG.cStopTime[6]);
addtoc(fp, toc, 1, 14, page, (char *)"Fileecho processing");
addtoc(fp, toc, 1, 12, page, (char *)"Fileecho processing");
fprintf(fp, " Keep days on hold %d\n", CFG.tic_days);
fprintf(fp, " Hatch password %s\n", CFG.hatchpasswd);
@@ -2064,7 +1976,7 @@ int global_doc(FILE *fp, FILE *toc, int page)
fprintf(fp, " FileMgr: pause %s\n", getboolean(CFG.ct_Pause));
page = newpage(fp, page);
addtoc(fp, toc, 1, 15, page, (char *)"Fidonet Mail and Echomail processing");
addtoc(fp, toc, 1, 13, page, (char *)"Fidonet Mail and Echomail processing");
fprintf(fp, " Max .pkt size %d Kb.\n", CFG.maxpktsize);
fprintf(fp, " Max archive size %d Kb.\n", CFG.maxarcsize);
@@ -2084,7 +1996,7 @@ int global_doc(FILE *fp, FILE *toc, int page)
fprintf(fp, " AreaMgr: passwd %s\n", getboolean(CFG.ca_Passwd));
fprintf(fp, " AreaMgr: pause %s\n", getboolean(CFG.ca_Pause));
addtoc(fp, toc, 1, 16, page, (char *)"Internet Mail and News processing");
addtoc(fp, toc, 1, 14, page, (char *)"Internet Mail and News processing");
fprintf(fp, " Split messages at %d KBytes\n", CFG.new_split);
fprintf(fp, " Force split at %d KBytes\n", CFG.new_force);
@@ -2110,14 +2022,14 @@ int global_doc(FILE *fp, FILE *toc, int page)
fprintf(fp, " Allow control msgs %s\n", getboolean(CFG.allowcontrol));
fprintf(fp, " Don't regate msgs %s\n", getboolean(CFG.dontregate));
addtoc(fp, toc, 1, 17, page, (char *)"Newfile reports");
addtoc(fp, toc, 1, 15, page, (char *)"Newfile reports");
fprintf(fp, " New files days %d\n", CFG.newdays);
fprintf(fp, " Highest sec. level %s\n", get_secstr(CFG.security));
fprintf(fp, " Max. newfile grps %ld\n", CFG.new_groups);
page = newpage(fp, page);
addtoc(fp, toc, 1, 18, page, (char *)"Mailer setup");
addtoc(fp, toc, 1, 16, page, (char *)"Mailer setup");
p = getloglevel(CFG.cico_loglevel);
fprintf(fp, " Mailer loglevel %s\n", p);
@@ -2144,7 +2056,7 @@ int global_doc(FILE *fp, FILE *toc, int page)
fprintf(fp, " Translate %-20s %s\n", CFG.phonetrans[i].match, CFG.phonetrans[i].repl);
page = newpage(fp, page);
addtoc(fp, toc, 1, 19, page, (char *)"FTP server setup");
addtoc(fp, toc, 1, 17, page, (char *)"FTP server setup");
fprintf(fp, " Connections limit %d\n", CFG.ftp_limit);
fprintf(fp, " Login fails %d\n", CFG.ftp_loginfails);
@@ -2164,7 +2076,7 @@ int global_doc(FILE *fp, FILE *toc, int page)
fprintf(fp, " Path filter %s\n", CFG.ftp_pth_filter);
fprintf(fp, " Path message %s\n", CFG.ftp_pth_message);
addtoc(fp, toc, 1, 20, page, (char *)"WWW server setup");
addtoc(fp, toc, 1, 18, page, (char *)"WWW server setup");
fprintf(fp, " HTML root %s\n", CFG.www_root);
fprintf(fp, " Link to FTP base %s\n", CFG.www_link2ftp);
@@ -2175,7 +2087,7 @@ int global_doc(FILE *fp, FILE *toc, int page)
fprintf(fp, " File per webpage %d\n", CFG.www_files_page);
page = newpage(fp, page);
addtoc(fp, toc, 1,21, page, (char *)"Manager flag descriptions");
addtoc(fp, toc, 1,19, page, (char *)"Manager flag descriptions");
fprintf(fp, " 1 1 2 2 3 3\n");
fprintf(fp, " 1 5 0 5 0 5 0 2\n");
fprintf(fp, " --------------------------------\n");

View File

@@ -4,7 +4,7 @@
* Purpose ...............: Edit BBS menus
*
*****************************************************************************
* Copyright (C) 1997-2002
* Copyright (C) 1997-2003
*
* Michiel Broek FIDO: 2:280/2802
* Beekmansbos 10
@@ -186,26 +186,26 @@ int GetSubmenu(int Base, int Max)
int GetMenuType(void);
int GetMenuType(void)
{
clr_index();
set_color(WHITE, BLACK);
mvprintw( 5, 6, "8.3 EDIT MENU - SELECT MENUTYPE");
set_color(CYAN, BLACK);
mvprintw( 7, 6, "1. Global system menus");
mvprintw( 8, 6, "2. File areas menus");
mvprintw( 9, 6, "3. Message areas menus");
mvprintw(10, 6, "4. User setting menus");
mvprintw(11, 6, "5. Oneliner menus");
mvprintw(12, 6, "6. BBS List menus");
clr_index();
set_color(WHITE, BLACK);
mvprintw( 5, 6, "8.3 EDIT MENU - SELECT MENUTYPE");
set_color(CYAN, BLACK);
mvprintw( 7, 6, "1. Global system menus");
mvprintw( 8, 6, "2. File areas menus");
mvprintw( 9, 6, "3. Message areas menus");
mvprintw(10, 6, "4. User setting menus");
mvprintw(11, 6, "5. Oneliner menus");
mvprintw(12, 6, "6. BBS List menus");
switch (select_menu(6)) {
case 1: return GetSubmenu(1, 25);
case 2: return GetSubmenu(101, 19);
case 3: return GetSubmenu(201, 20);
case 4: return GetSubmenu(301, 18);
case 5: return GetSubmenu(401, 5);
case 6: return GetSubmenu(501, 6);
default: return 0;
}
switch (select_menu(6)) {
case 1: return GetSubmenu(1, 25);
case 2: return GetSubmenu(101, 19);
case 3: return GetSubmenu(201, 20);
case 4: return GetSubmenu(301, 19);
case 5: return GetSubmenu(401, 5);
case 6: return GetSubmenu(501, 6);
default: return 0;
}
}

View File

@@ -517,7 +517,7 @@ void EditMGroup(void)
working(2, 0, 0);
working(0, 0, 0);
} else {
errmsg("Cannot add group, change global setting in menu 1.14.12");
errmsg("Cannot add group, change global setting in menu 1.12.12");
}
}

View File

@@ -515,7 +515,7 @@ void EditNewfiles(void)
working(2, 0, 0);
working(0, 0, 0);
} else {
errmsg("Cannot add, change global setting in menu 1.16.3");
errmsg("Cannot add, change global setting in menu 1.14.3");
}
}

View File

@@ -1262,9 +1262,9 @@ void EditNodes(void)
working(0, 0, 0);
} else {
if ((records + 1) > CFG.toss_systems) {
errmsg("Cannot add node, change global setting in menu 1.14.11");
errmsg("Cannot add node, change global setting in menu 1.12.11");
} else {
errmsg("Cannot add node, change global setting in menu 1.13.4");
errmsg("Cannot add node, change global setting in menu 1.11.4");
}
}
}