home *** CD-ROM | disk | FTP | other *** search
- The Inn Keeper #1 @60491▓7█1▓ 3The SYSOP 1▓7█1▓0
- Sun Jun 18 00:41:55 1995
- 4Msg. Status:3▄ 16Please reply!00
- 3 ▀▀▀▀▀▀▀▀▀▀▀▀0
-
- ╔════════════════════════════════════════════════════════════════════════════╗
- ║ Mod Name: Add a cd-rom menu on the way to the transfer area ║
- ║ Date : 06/16/95 ║
- ║ Source : WWIV 4.24 ║
- ║ VERSION : 1.2 ║
- ║ Diff. : ▌░░░░░░░░░ ║
- ║ Author : The INN Keeper #1@6049 WWIVNET ║
- ║ BBS : Howard''INN (704-289-6993) 14,4 ║
- ╚════════════════════════════════════════════════════════════════════════════╝
-
- 7 Key0
- 3 ~~~~~0
- 4+--------------------------------------+0
- 4| == Search For/and or leave this code |0
- 4| -- Remove this line |0
- 4| + Add this whole line |0
- 4| = Leave it, Its Original Code |0
- 4| =!= Change this line. |0
- 4| -->|<-- Move This Line To Connect |0
- 4| With The Previous One |0
- 4+--------------------------------------+0
- qDisclaimer: As Usual BACK Up Source Code (I TAKE NO RESPONCIBILITY0
- If You Screw Up, or this doesnt work on your machine/BBS, But DO Mail Me
- About The Problem)
-
- This Mod was originaly written by the Carolina Cowboy and then I added
- the newfile scan to it also added was the option to go back to the main
- menu and then I updated it for WWIV 4.24. It was written for users of the
- EZ-Rom download door that are registerd sysops to be able to put it as an
- option when going to the transfer area and also so that they can run it
- from within the transfer menu so they will not have to go to chains to find
- it. If a User can not acess any of your regular download dirs they also
- will not be able to acess the download door. This keeps unvalidated users
- out of your transfer area.
-
-
-
- ##########################################################################
- Step 1
- Backup your source code!!!!
-
- ##########################################################################
- Step 2
- Make a batch file in the main dir of your bbs to call the ezrom door. The
- same one you use to call it from chains should work. Just make sure its in
- your main bbs dir.
- Other files that are used are:
- Rom.ans
- Hd.ans
- These will add anis enhancements to the Mod if you dont like them just comment
- out the printfile line that calls them in the part of the mod that goes into
- BBSOVL1.C I think they should go in your main bbs dir but if they do not work
- there copy them over to gfiles.
-
- ##########################################################################
- Step 3
- /* Load up MMENU.C and search for case 'T' then remove the entire function
- and replace it with the one below*/
-
- case 'T':
- if (syscfg.sysconfig & sysconfig_no_xfer) {
- nl();
- pl(get_string(30));
- nl();
- break;
- }
- cdrom();
- break;
-
- ###########################################################################
- Step 4
- /* Open BBSOVL1.C and block copy the following and place it at the end
- of the file. */
- void cdrom()
- {
- char ch;
- unsigned short fl;
- int done;
- do {
- if (udir[0].subnum!=-1) {
- printfile("rom.ans");
- prt(3," Choose The Area You Wish To Enter");
- nl();
- prt(7," [6Q7]1 Quit Back to Main");
- nl();
- prt(7,"[6E7]1 EZ-Rom Download door");
- prt(7," [6H7]1 Hard Drive File Area");
- nl();
- prt(7,"Choice: ");
- ch=onek("EHQ");
- switch (ch) {
- case 'E':
- done=1;
- fl=0;
- fl |= EFLAG_SHRINK|EFLAG_FILES;
- extern_prog("cdrom.bat", fl);
- break;
- case 'Q':
- break;
- case 'H':
- {
- printfile("hd.ans");
- nl();
- prt(6," New file Scan Area");
- num_listed=0;
- tagging=1;
- titled=1;
- nl();
- prt(1," Do You want to Scan for new files?");
- if (ny())
- nscanall();
- else {
- nl();
- if (num_listed) {
- endlist(2);
- } else {
- nl(); ansic(2);
- pl(get_string(1039));
- }
- }
- tagging=0;
- }
-
- if ((udir[0].subnum==-1) && (okconf(&thisuser))) {
- for (curconfdir=0;
- (curconfdir<dirconfnum) &&
- (uconfdir[curconfdir].confnum!=-1);
- curconfdir++) {
- setuconf(CONF_DIRS, curconfdir, -1);
- if (udir[0].subnum!=-1)
- break;
- }
- }
- if (udir[0].subnum!=-1) {
- write_inst(INST_LOC_XFER,udir[curdir].subnum,INST_FLAGS_NONE);
- curdloads=1;
- play_sdf(get_string(1037),0);
- existprint(get_string(1037));
- } else {
- nl();
- pl(get_string(31));
- nl();
- }
- if (menu_on()) {
- rmenu = 300;
- rip_cls();
- //printmenu(310);
- cleared = WASCLEARED;
- }
- break;
- }
- } else {
- nl();
- pl(get_string(31));
- break;
- }
- } while ((!hangup) && (!done));
- }
-
- ###########################################################################
- Step 5
-
- Make fcns or add the function CDROM() to FCNS.H in the BBSOVL1.C section
- Manualy
-
-
-
- ###########################################################################
- /* the next 2 steps are optional if you want the userer to be able to access
- the cd-rom door from within the transfer menu add these. */
- step 1
- = void dlmainmenu(void)
- = {
- = char *s, s1[81],s2[81],ch;
- + unsigned short fl;
- = int i,i1,i2,abort,useconf,ac;
- = int dlredraw = 1;
- = static int ripdlg = 3;
-
-
-
- step 2
-
- = case 'X':
- - helpl=22;
- - batchdl(0);
- + fl=0;
- + fl |= EFLAG_SHRINK|EFLAG_FILES;
- + extern_prog("cdrom.bat", fl);
- = break;
-
-
-
- ###########################################################################
-
- Now just compile and enjoy and send me e-mail to 1@6049 WWivNet to let me
- know how you liked it.
-
-
-
-