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 >
Text File  |  1992-08-04  |  2KB  |  99 lines

  1. void sublista()
  2. {
  3.   int ok,i,abort,a,b;
  4.   char s[80],s1[50],sdf[120];
  5.   int sam;
  6.  
  7.   abort=0;
  8.   nl();
  9.   pla("e Num7  Sub Typ      1Message Base Topic                   2Msgs",&abort);
  10.   pla("f╔════╦═══════╦═════════════════════════════════════════╦════╗",&abort);
  11.   i=0;
  12.   while ((i<64) && (usub[i].subnum!=-1)) {
  13.     if (strcmp(usub[cursub].keys,usub[i].keys))
  14.       strcpy(s1,"Yes");
  15.     else
  16.       strcpy(s1,"No");
  17.     strcpy(s,"f║ e");
  18.     strcat(s,usub[i].keys);
  19.     s[8]=0;
  20.     if (s[7]==0)
  21.       s[8]=64;
  22.     if (i<=8)
  23.       strcat(s," ");
  24.     strcat(s," f║ ");
  25.     if (subboards[usub[i].subnum].type)
  26.       strcat(s,"7>Net< f║ 1");
  27.     else
  28.       strcat(s,"2Local f║ 1");
  29.     strcat(s,subboards[usub[i].subnum].name);
  30.     a=(67-(strlen(s)));
  31.     for (b=0; b<a; b++)
  32.       strcat(s," ");
  33.       strcat(s,"f║");
  34.       iscan(i);
  35.       sam=1;
  36.     while ((sam<=nummsgs) && (msgs[sam].qscan<=thisuser.qscnptr[usub[i].subnum]))
  37.     ++sam;
  38.     sprintf(sdf,"%67s2%4df║",s,nummsgs);
  39.     if (strcmp(s1,"Yes"))
  40.       strcat(sdf," 6<You're Here");
  41.     pla(sdf,&abort);
  42.     i++;
  43.   }
  44.   pla("f╚════╩═══════╩═════════════════════════════════════════╩════╝ ",&abort);
  45.   if (i==0)
  46.     pla("6None.",&abort);
  47.   nl();
  48. }
  49.  
  50. void sublist()
  51. {
  52.   int i,abort;
  53.   char s[80];
  54.  
  55.   if (okansi())
  56.     sublista();
  57.   else
  58.     abort=0;
  59.     nl();
  60.     pla("Subs available: ",&abort);
  61.     nl();
  62.     i=0;
  63.   while ((i<MAX_SUBS) && (usub[i].subnum!=-1)) {
  64.     strcpy(s,usub[i].keys);
  65.     s[2]=0;
  66.     if (s[1]==0)
  67.       s[1]=32;
  68.     if (usub[i].subnum<32) {
  69.       if ((1L << (usub[i].subnum)) & thisuser.qscn)
  70.         strcat(s," - ");
  71.       else
  72.         strcat(s,"   ");
  73.     } else {
  74. #if MAX_SUBS>32
  75.       if ((1L << (usub[i].subnum-32)) & thisuser.qscn2)
  76.         strcat(s," - ");
  77.       else
  78.         strcat(s,"   ");
  79. #else
  80.       strcat(s,"   ");
  81. #endif
  82.     }
  83. /*    if (syscfg.systemnumber) {
  84.       if (subboards[usub[i].subnum].type) {
  85.         if (subboards[usub[i].subnum].anony & anony_val_net)
  86.           strcat(s,"[NET] ");
  87.         else
  88.           strcat(s,"<NET> ");
  89.       } else
  90.         strcat(s,"      ");
  91.     } */
  92.     strcat(s,subboards[usub[i].subnum].name);
  93.     pla(s,&abort);
  94.     i++;
  95.   }
  96.   if (i==0)
  97.     pla("None.",&abort);
  98.   nl();
  99. }