home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
W
/
DEVBBS.ZIP
/
OLDSUBL.C
< prev
next >
Wrap
Text File
|
1992-08-04
|
2KB
|
99 lines
void sublista()
{
int ok,i,abort,a,b;
char s[80],s1[50],sdf[120];
int sam;
abort=0;
nl();
pla("e Num7 Sub Typ 1Message Base Topic 2Msgs",&abort);
pla("f╔════╦═══════╦═════════════════════════════════════════╦════╗",&abort);
i=0;
while ((i<64) && (usub[i].subnum!=-1)) {
if (strcmp(usub[cursub].keys,usub[i].keys))
strcpy(s1,"Yes");
else
strcpy(s1,"No");
strcpy(s,"f║ e");
strcat(s,usub[i].keys);
s[8]=0;
if (s[7]==0)
s[8]=64;
if (i<=8)
strcat(s," ");
strcat(s," f║ ");
if (subboards[usub[i].subnum].type)
strcat(s,"7>Net< f║ 1");
else
strcat(s,"2Local f║ 1");
strcat(s,subboards[usub[i].subnum].name);
a=(67-(strlen(s)));
for (b=0; b<a; b++)
strcat(s," ");
strcat(s,"f║");
iscan(i);
sam=1;
while ((sam<=nummsgs) && (msgs[sam].qscan<=thisuser.qscnptr[usub[i].subnum]))
++sam;
sprintf(sdf,"%67s2%4df║",s,nummsgs);
if (strcmp(s1,"Yes"))
strcat(sdf," 6<You're Here");
pla(sdf,&abort);
i++;
}
pla("f╚════╩═══════╩═════════════════════════════════════════╩════╝ ",&abort);
if (i==0)
pla("6None.",&abort);
nl();
}
void sublist()
{
int i,abort;
char s[80];
if (okansi())
sublista();
else
abort=0;
nl();
pla("Subs available: ",&abort);
nl();
i=0;
while ((i<MAX_SUBS) && (usub[i].subnum!=-1)) {
strcpy(s,usub[i].keys);
s[2]=0;
if (s[1]==0)
s[1]=32;
if (usub[i].subnum<32) {
if ((1L << (usub[i].subnum)) & thisuser.qscn)
strcat(s," - ");
else
strcat(s," ");
} else {
#if MAX_SUBS>32
if ((1L << (usub[i].subnum-32)) & thisuser.qscn2)
strcat(s," - ");
else
strcat(s," ");
#else
strcat(s," ");
#endif
}
/* if (syscfg.systemnumber) {
if (subboards[usub[i].subnum].type) {
if (subboards[usub[i].subnum].anony & anony_val_net)
strcat(s,"[NET] ");
else
strcat(s,"<NET> ");
} else
strcat(s," ");
} */
strcat(s,subboards[usub[i].subnum].name);
pla(s,&abort);
i++;
}
if (i==0)
pla("None.",&abort);
nl();
}