Added tic areas switch to default set nodes SR
This commit is contained in:
parent
699e71b0a2
commit
4ae090065b
@ -47,6 +47,8 @@ v0.71.3 13-Jun-2005
|
|||||||
When message areas are autocreated, golded.inc and msg.txt are
|
When message areas are autocreated, golded.inc and msg.txt are
|
||||||
recreated for the external editors.
|
recreated for the external editors.
|
||||||
The web stats can now limit the size of mailhistory.html
|
The web stats can now limit the size of mailhistory.html
|
||||||
|
The FileMgr command connects news nodes SR if set for the tic
|
||||||
|
area.
|
||||||
|
|
||||||
mbmon:
|
mbmon:
|
||||||
Made Internet BBS Chat final.
|
Made Internet BBS Chat final.
|
||||||
@ -66,6 +68,8 @@ v0.71.3 13-Jun-2005
|
|||||||
logfile. If defined then downloads via www and or ftp can
|
logfile. If defined then downloads via www and or ftp can
|
||||||
be counted.
|
be counted.
|
||||||
Dropped support for file areas on CDrom.
|
Dropped support for file areas on CDrom.
|
||||||
|
In menu 10 added a switch to default connect downlinks SR
|
||||||
|
instead if S.
|
||||||
|
|
||||||
|
|
||||||
v0.71.2 16-Jan-2005 - 13-Jun-2005
|
v0.71.2 16-Jan-2005 - 13-Jun-2005
|
||||||
|
2
TODO
2
TODO
@ -97,8 +97,6 @@ mbfido:
|
|||||||
N: Implement areamgr/filemgr %avail command to list available areas
|
N: Implement areamgr/filemgr %avail command to list available areas
|
||||||
from areas files.
|
from areas files.
|
||||||
|
|
||||||
N: Add switch to tic areas that new links connect SR to the area.
|
|
||||||
|
|
||||||
N: Someday make retoss from bad possible (volonteers?).
|
N: Someday make retoss from bad possible (volonteers?).
|
||||||
|
|
||||||
mbcico:
|
mbcico:
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* Purpose ...............: Create TIC Area and BBS file area.
|
* Purpose ...............: Create TIC Area and BBS file area.
|
||||||
*
|
*
|
||||||
*****************************************************************************
|
*****************************************************************************
|
||||||
* Copyright (C) 1997-2004
|
* Copyright (C) 1997-2005
|
||||||
*
|
*
|
||||||
* Michiel Broek FIDO: 2:280/2802
|
* Michiel Broek FIDO: 2:280/2802
|
||||||
* Beekmansbos 10
|
* Beekmansbos 10
|
||||||
@ -179,7 +179,7 @@ int CheckTicGroup(char *Area, int SendUplink, faddr *f)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Some peaple write taglists with lowercase tagnames...
|
* Some people write taglists with lowercase tagnames...
|
||||||
*/
|
*/
|
||||||
for (i = 0; i < strlen(tag); i++)
|
for (i = 0; i < strlen(tag); i++)
|
||||||
tag[i] = toupper(tag[i]);
|
tag[i] = toupper(tag[i]);
|
||||||
|
@ -547,6 +547,8 @@ void F_Connect(faddr *t, char *Area, FILE *tmp)
|
|||||||
memset(&Sys, 0, sizeof(Sys));
|
memset(&Sys, 0, sizeof(Sys));
|
||||||
memcpy(&Sys.aka, faddr2fido(t), sizeof(fidoaddr));
|
memcpy(&Sys.aka, faddr2fido(t), sizeof(fidoaddr));
|
||||||
Sys.sendto = TRUE;
|
Sys.sendto = TRUE;
|
||||||
|
if (tic.NewSR)
|
||||||
|
Sys.receivefrom = TRUE;
|
||||||
|
|
||||||
if (TicSystemConnected(Sys)) {
|
if (TicSystemConnected(Sys)) {
|
||||||
MacroVars("SsP", "sss", CFG.sysop_name, nodes.Sysop,"Filemgr");
|
MacroVars("SsP", "sss", CFG.sysop_name, nodes.Sysop,"Filemgr");
|
||||||
@ -657,6 +659,8 @@ void F_All(faddr *t, int Connect, FILE *tmp, char *Grp)
|
|||||||
memset(&Sys, 0, sizeof(Sys));
|
memset(&Sys, 0, sizeof(Sys));
|
||||||
memcpy(&Sys.aka, faddr2fido(t), sizeof(fidoaddr));
|
memcpy(&Sys.aka, faddr2fido(t), sizeof(fidoaddr));
|
||||||
Sys.sendto = TRUE;
|
Sys.sendto = TRUE;
|
||||||
|
if (tic.NewSR)
|
||||||
|
Sys.receivefrom = TRUE;
|
||||||
fseek(fp, - sizeof(Sys), SEEK_CUR);
|
fseek(fp, - sizeof(Sys), SEEK_CUR);
|
||||||
fwrite(&Sys, sizeof(Sys), 1, fp);
|
fwrite(&Sys, sizeof(Sys), 1, fp);
|
||||||
Mgrlog("FileMgr: Connected %s", tic.Name);
|
Mgrlog("FileMgr: Connected %s", tic.Name);
|
||||||
|
@ -281,7 +281,7 @@ void EditTicSystem(sysconnect *Sys)
|
|||||||
if (refresh) {
|
if (refresh) {
|
||||||
clr_index();
|
clr_index();
|
||||||
set_color(WHITE, BLACK);
|
set_color(WHITE, BLACK);
|
||||||
mbse_mvprintw( 5,6, "10.2.26 EDIT CONNECTION");
|
mbse_mvprintw( 5,6, "10.2.27 EDIT CONNECTION");
|
||||||
set_color(CYAN, BLACK);
|
set_color(CYAN, BLACK);
|
||||||
mbse_mvprintw( 7,6, "1. Aka");
|
mbse_mvprintw( 7,6, "1. Aka");
|
||||||
mbse_mvprintw( 8,6, "2. Send to");
|
mbse_mvprintw( 8,6, "2. Send to");
|
||||||
@ -301,7 +301,7 @@ void EditTicSystem(sysconnect *Sys)
|
|||||||
switch(select_menu(5)) {
|
switch(select_menu(5)) {
|
||||||
case 0: (* Sys) = S;
|
case 0: (* Sys) = S;
|
||||||
return;
|
return;
|
||||||
case 1: S.aka = PullUplink((char *)"10.2.26");
|
case 1: S.aka = PullUplink((char *)"10.2.27");
|
||||||
refresh = TRUE;
|
refresh = TRUE;
|
||||||
break;
|
break;
|
||||||
case 2: E_BOOL( 8,24, S.sendto, "^Send^ files ^to^ this node")
|
case 2: E_BOOL( 8,24, S.sendto, "^Send^ files ^to^ this node")
|
||||||
@ -321,6 +321,8 @@ void EditTicSystem(sysconnect *Sys)
|
|||||||
*/
|
*/
|
||||||
if ((S.aka.zone) && (!zone)) {
|
if ((S.aka.zone) && (!zone)) {
|
||||||
S.sendto = 1;
|
S.sendto = 1;
|
||||||
|
if (tic.NewSR)
|
||||||
|
S.receivefrom = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -341,7 +343,7 @@ int EditTicConnections(FILE *fil)
|
|||||||
for (;;) {
|
for (;;) {
|
||||||
clr_index();
|
clr_index();
|
||||||
set_color(WHITE, BLACK);
|
set_color(WHITE, BLACK);
|
||||||
mbse_mvprintw( 5, 5, "10.2.26 TIC AREA CONNECTIONS");
|
mbse_mvprintw( 5, 5, "10.2.27 TIC AREA CONNECTIONS");
|
||||||
set_color(CYAN, BLACK);
|
set_color(CYAN, BLACK);
|
||||||
y = 7;
|
y = 7;
|
||||||
x = 2;
|
x = 2;
|
||||||
@ -435,10 +437,11 @@ void SetTicScreen(void)
|
|||||||
mbse_mvprintw( 9,60, "20. Send org.");
|
mbse_mvprintw( 9,60, "20. Send org.");
|
||||||
mbse_mvprintw(10,60, "21. Mandatory");
|
mbse_mvprintw(10,60, "21. Mandatory");
|
||||||
mbse_mvprintw(11,60, "22. Notified");
|
mbse_mvprintw(11,60, "22. Notified");
|
||||||
mbse_mvprintw(12,60, "23. Upl discon");
|
mbse_mvprintw(12,60, "23. Upl disc.");
|
||||||
mbse_mvprintw(13,60, "24. Deleted");
|
mbse_mvprintw(13,60, "24. Deleted");
|
||||||
mbse_mvprintw(14,60, "25. Active");
|
mbse_mvprintw(14,60, "25. Active");
|
||||||
mbse_mvprintw(15,60, "26. Systems");
|
mbse_mvprintw(15,60, "26. New SR");
|
||||||
|
mbse_mvprintw(16,60, "27. Systems");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -865,15 +868,17 @@ int EditTicRec(int Area)
|
|||||||
show_bool(12,74, tic.UplDiscon);
|
show_bool(12,74, tic.UplDiscon);
|
||||||
show_bool(13,74, tic.Deleted);
|
show_bool(13,74, tic.Deleted);
|
||||||
show_bool(14,74, tic.Active);
|
show_bool(14,74, tic.Active);
|
||||||
|
show_bool(15,74, tic.NewSR);
|
||||||
|
|
||||||
fseek(ttfil, 0, SEEK_SET);
|
fseek(ttfil, 0, SEEK_SET);
|
||||||
connections = 0;
|
connections = 0;
|
||||||
while (fread(&System, sizeof(System), 1, ttfil) == 1) {
|
while (fread(&System, sizeof(System), 1, ttfil) == 1) {
|
||||||
if (System.aka.zone)
|
if (System.aka.zone)
|
||||||
connections++;
|
connections++;
|
||||||
}
|
}
|
||||||
show_int( 15,74, connections);
|
show_int( 16,74, connections);
|
||||||
|
|
||||||
switch(select_menu(26)) {
|
switch(select_menu(27)) {
|
||||||
case 0:
|
case 0:
|
||||||
crc1 = 0xffffffff;
|
crc1 = 0xffffffff;
|
||||||
crc1 = upd_crc32((char *)&tic, crc1, tichdr.recsize);
|
crc1 = upd_crc32((char *)&tic, crc1, tichdr.recsize);
|
||||||
@ -978,7 +983,8 @@ int EditTicRec(int Area)
|
|||||||
case 23:E_BOOL(12,74, tic.UplDiscon, "Is the uplink ^disconnected^ from this area");
|
case 23:E_BOOL(12,74, tic.UplDiscon, "Is the uplink ^disconnected^ from this area");
|
||||||
case 24:E_BOOL(13,74, tic.Deleted, "Is this area ^deleted^");
|
case 24:E_BOOL(13,74, tic.Deleted, "Is this area ^deleted^");
|
||||||
case 25:E_BOOL(14,74, tic.Active, "Is this area ^active^");
|
case 25:E_BOOL(14,74, tic.Active, "Is this area ^active^");
|
||||||
case 26:if (EditTicConnections(ttfil))
|
case 26:E_BOOL(15,74, tic.NewSR, "Give new connected nodes the status ^SR^ instead of ^R^");
|
||||||
|
case 27:if (EditTicConnections(ttfil))
|
||||||
changed = TRUE;
|
changed = TRUE;
|
||||||
SetTicScreen();
|
SetTicScreen();
|
||||||
break;
|
break;
|
||||||
@ -1328,6 +1334,7 @@ int tic_areas_doc(FILE *fp, FILE *toc, int page)
|
|||||||
add_webtable(wp, (char *)"Announce files", getboolean(tic.Announce));
|
add_webtable(wp, (char *)"Announce files", getboolean(tic.Announce));
|
||||||
add_webtable(wp, (char *)"Update magic name", getboolean(tic.UpdMagic));
|
add_webtable(wp, (char *)"Update magic name", getboolean(tic.UpdMagic));
|
||||||
add_webtable(wp, (char *)"Get FILE_ID.DIZ", getboolean(tic.FileId));
|
add_webtable(wp, (char *)"Get FILE_ID.DIZ", getboolean(tic.FileId));
|
||||||
|
add_webtable(wp, (char *)"New link SR status", getboolean(tic.NewSR));
|
||||||
add_webtable(wp, (char *)"Mandatory area", getboolean(tic.Mandat));
|
add_webtable(wp, (char *)"Mandatory area", getboolean(tic.Mandat));
|
||||||
add_webtable(wp, (char *)"Uplink disconnect", getboolean(tic.UplDiscon));
|
add_webtable(wp, (char *)"Uplink disconnect", getboolean(tic.UplDiscon));
|
||||||
add_webtable(wp, (char *)"Notified uplink", getboolean(tic.Notified));
|
add_webtable(wp, (char *)"Notified uplink", getboolean(tic.Notified));
|
||||||
@ -1361,6 +1368,7 @@ int tic_areas_doc(FILE *fp, FILE *toc, int page)
|
|||||||
fprintf(fp, " Announce %s\n", getboolean(tic.Announce));
|
fprintf(fp, " Announce %s\n", getboolean(tic.Announce));
|
||||||
fprintf(fp, " Upd. magic %s\n", getboolean(tic.UpdMagic));
|
fprintf(fp, " Upd. magic %s\n", getboolean(tic.UpdMagic));
|
||||||
fprintf(fp, " FILE_ID.DIZ %s\n", getboolean(tic.FileId));
|
fprintf(fp, " FILE_ID.DIZ %s\n", getboolean(tic.FileId));
|
||||||
|
fprintf(fp, " New link SR %s\n", getboolean(tic.NewSR));
|
||||||
fprintf(fp, " Mandatory %s\n", getboolean(tic.Mandat));
|
fprintf(fp, " Mandatory %s\n", getboolean(tic.Mandat));
|
||||||
fprintf(fp, " Upl. discon %s\n", getboolean(tic.UplDiscon));
|
fprintf(fp, " Upl. discon %s\n", getboolean(tic.UplDiscon));
|
||||||
fprintf(fp, " Notified %s\n\n", getboolean(tic.Notified));
|
fprintf(fp, " Notified %s\n\n", getboolean(tic.Notified));
|
||||||
|
Reference in New Issue
Block a user