Added mbfido areas command, bulk create msg areas works
This commit is contained in:
@@ -224,6 +224,8 @@ int AppendFGroup(void)
|
||||
fgroup.VirScan = TRUE;
|
||||
fgroup.Announce = TRUE;
|
||||
fgroup.FileId = TRUE;
|
||||
fgroup.DupCheck = TRUE;
|
||||
fgroup.Replace = TRUE;
|
||||
fwrite(&fgroup, sizeof(fgroup), 1, fil);
|
||||
fclose(fil);
|
||||
FGrpUpdated = 1;
|
||||
@@ -307,9 +309,9 @@ void FgScreen(void)
|
||||
int EditFGrpRec(int Area)
|
||||
{
|
||||
FILE *fil;
|
||||
char mfile[PATH_MAX];
|
||||
char mfile[PATH_MAX], temp[13];
|
||||
long offset;
|
||||
int j, tmp;
|
||||
int i, j, tmp;
|
||||
unsigned long crc, crc1;
|
||||
|
||||
clr_index();
|
||||
@@ -399,7 +401,21 @@ int EditFGrpRec(int Area)
|
||||
|
||||
case 1: if (CheckFgroup())
|
||||
break;
|
||||
E_UPS( 6,16,12,fgroup.Name, "The ^name^ of this file group")
|
||||
strcpy(fgroup.Name, edit_ups(6,16,12, fgroup.Name, (char *)"The ^name^ of this file group"));
|
||||
if (strlen(mgroup.BasePath) == 0) {
|
||||
memset(&temp, 0, sizeof(temp));
|
||||
strcpy(temp, fgroup.Name);
|
||||
for (i = 0; i < strlen(temp); i++) {
|
||||
if (temp[i] == '.')
|
||||
temp[i] = '/';
|
||||
if (isupper(temp[i]))
|
||||
temp[i] = tolower(temp[i]);
|
||||
}
|
||||
sprintf(fgroup.BasePath, "%s/%s", CFG.ftp_base, temp);
|
||||
}
|
||||
if (strlen(fgroup.BbsGroup) == 0)
|
||||
strcpy(fgroup.BbsGroup, fgroup.Name);
|
||||
break;
|
||||
case 2: E_STR( 7,16,55,fgroup.Comment, "The ^description^ of this file group")
|
||||
case 3: E_PTH( 8,16,64,fgroup.BasePath, "The ^base path^ for new created file areas")
|
||||
case 4: tmp = PickAka((char *)"10.1.4", TRUE);
|
||||
|
@@ -451,9 +451,9 @@ int EditConnections(FILE *fil)
|
||||
|
||||
if (System.aka.zone) {
|
||||
set_color(CYAN,BLACK);
|
||||
sprintf(temp, "%3d. %s %d:%d/%d.%d@%s", o+i, status,
|
||||
System.aka.zone, System.aka.net, System.aka.node,
|
||||
System.aka.point, System.aka.domain);
|
||||
sprintf(temp, "%3d. %s %s", o+i, status, aka2str(System.aka));
|
||||
// System.aka.zone, System.aka.net, System.aka.node,
|
||||
// System.aka.point, System.aka.domain);
|
||||
} else {
|
||||
set_color(LIGHTBLUE, BLACK);
|
||||
sprintf(temp, "%3d.", o+i);
|
||||
@@ -1290,7 +1290,7 @@ void EditMsgarea(void)
|
||||
fread(&msgs, msgshdr.recsize, 1, fil);
|
||||
if (msgs.Active) {
|
||||
set_color(CYAN, BLACK);
|
||||
sprintf(temp, "%3d. %-8s %-25s %-40s", o + i, getmsgtype(msgs.Type), msgs.Tag, msgs.Name);
|
||||
sprintf(temp, "%3d. %-8s %-23s %-40s", o + i, getmsgtype(msgs.Type), msgs.Tag, msgs.Name);
|
||||
} else {
|
||||
set_color(LIGHTBLUE, BLACK);
|
||||
sprintf(temp, "%3d.", o+i);
|
||||
|
Reference in New Issue
Block a user