home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / UTILITY / WWCD-ROM.ARJ / 2ORMORE.MOD < prev    next >
Text File  |  1992-04-20  |  5KB  |  135 lines

  1.  ////////----------------------------------------\\\\\\\\\\\\
  2. <<<<<<<< This is for adding 2+ CDROM's to the BBS >>>>>>>>>>>>
  3.  \\\\\\\\----------------------------------------////////////
  4.  
  5.  
  6.  
  7. CDROM.MOD  [04-20-92]
  8.  
  9. This mod is really simple.  All it actually does is takes external programs
  10. and runs them remotely.  Thus you can add CD-ROMs to your BBS as I have.
  11. I don't claim that this is the best way to do this however I have not found
  12. any way better without switching Software.  Good luck and if you have any 
  13. questions feel free to EMAIL me at 1@9986.
  14.  
  15. FILES NEEDED!!!
  16. Before this MOD will work you need the following files.  Also avalible from
  17. FRINC BBS.  They are as follows.
  18.  
  19. CDCOM.ZIP    = This is the Door program that accesses the CD-ROM.
  20.  
  21. AVIEW54A.ZIP = This lets you look into ZIP files and download parts of the ZIP
  22.            it also allows you to read TXT files inside of ZIPs on the CD.
  23.  
  24. DM56.ZIP     = This is Door Master and it converts CHAIN.TXT to Wildcat format
  25.            so the door will work.  You can use any converter you wish.
  26.  
  27.  
  28. Again these files are avalible on FRINC BBS. (919) 768-2556 (USR Dual Standard)
  29.  
  30. Ok Now on with the actual MOD.  Please Back up your Source!!!!
  31.  
  32.  
  33.  
  34. 1. Go to BBSUTL.C and insert this void right below - void reqchat().
  35.  
  36. void cdsys()                          
  37. {                                     
  38.  int done;                            
  39.  char ch,s1[81],s2[81];               
  40.                       
  41.  done=0;                              
  42.  while (done<=4) {                    
  43.    nl();                              
  44.    outchr(12);                        
  45.    printfile("CDMENU");               
  46.    nl();                              
  47.    outstr("2() Which 1(1,2,Q) 2(> ");
  48.    ch=onek("12Q");                    
  49.    switch (ch) {                      
  50.      case '1':                        
  51.      {
  52.     strcpy(s1,"CDCOM.BAT");                                     /* ????? */
  53.     if (!exist(s1)) {
  54.       nl();
  55.       prt(6,"Sorry, the CDROM's are currently unavailable.");
  56.       prt(6,"Please notify Sysop");
  57.       nl();
  58.     } else {
  59.       sprintf(s2,"!Ran (Night Owls CD)");                       /* ????? */
  60.       sysoplog(s2);
  61.       nl();
  62.       prt(5,"Loading Night Owls CD, please wait..."); nl();     /* ????? */
  63.       chatcall=0;
  64.       create_chain_file("CHAIN.TXT");
  65.       sprintf(s2," %s\\CHAIN.TXT",cdir);
  66.       strcat(s1,s2);
  67.       shrink_out(s1,1,0,1,1);
  68.     }
  69.   }
  70.      case '2':
  71.      {
  72.     strcpy(s1,"SIGDOOR.BAT");                                   /* ????? */
  73.     if (!exist(s1)) {
  74.       nl();
  75.       prt(6,"Sorry, the CDROM's are currently unavailable.");
  76.       prt(6,"Please notify Sysop");
  77.       nl();
  78.     } else {
  79.       sprintf(s2,"!Ran (PC-SIG)");                              /* ????? */
  80.       sysoplog(s2);
  81.       nl();
  82.       prt(5,"Loading PC-SIG Library, please wait..."); nl();    /* ????? */
  83.       chatcall=0;
  84.       create_chain_file("CHAIN.TXT");
  85.       sprintf(s2," %s\\CHAIN.TXT",cdir);
  86.       strcat(s1,s2);
  87.       shrink_out(s1,1,0,1,1);
  88.     }
  89.   }
  90.      case 'Q':                        
  91.     done=5;                       
  92.     break;                        
  93.     }                                 
  94.   }                                   
  95. }                                     
  96.  
  97. 2. The lines marked /* ????? */ must be edited to the correct names of
  98.    BAT files and Descriptions that match your CD Software.
  99.  
  100. 3. In BBS.C search for - void dlmainmenu().  
  101. 4. then search for - case 'C': And make the following changes.
  102.  
  103.       case 'C':
  104.       /*  helpl=3;   */         /* CD Change */
  105.       /*  reqchat(); */         /* CD Change */
  106.     cdsys();                /* CD Change */
  107.     break;                  /* CD Change */
  108.  
  109.  
  110. 5. Make your MENU so your users can select which CD ROM they want to access.
  111.    The following is a copy of the one I use.  I have it named CDMENU.MSG, if 
  112.    you want true ANSI make it and name it CDMENU.ANS.  However you need one
  113.    with the MSG extension.
  114.  
  115. 7 ███████████████████████████████████████████
  116. 7 ████2┌─────────────────────────────────┐7░███
  117. 7 ████2│   1FRINC's CD ROM Access Menu    2│7░███
  118. 7 ████2│                                 │7░███
  119. 7 ████2│   13. 5Night Owl CD  (550 meg)    2│7░███
  120. 7 ████2│   23. 5PC-SIG Library Vol 9       2│7░███
  121. 7 ████2└─────────────────────────────────┘7░███
  122. 7 ██████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░███
  123. 7 ███████████████████████████████████████████
  124.                          
  125.  
  126. ******************************************************************************
  127.  
  128. This is really simple.  The hardest thing you will be doing is getting the
  129. BATCH file that converts the CHAIN.TXT to Wildcat format.  Then running the
  130. CDROM program.  After you get it working you will say.  Boy that took sometime
  131. but it was worth it.  Look at all the files I have now!
  132.  
  133.  
  134. Any Questions please direct them to Repo Man 1 @9986
  135.