home *** CD-ROM | disk | FTP | other *** search
- Spotnick #1 @20397
- Mon Jun 05 02:05:03 1995
- 0R 34 06/09 07:13 WWIVNET 4051->8421
- 0R 34 06/08 18:18 WWIVNet 4001->4051
- 0R 34 06/08 14:07 WWIVnet 4000->4001
- 0R 34 06/08 05:34 WWIVnet ->4000
- 0R 34 06/05 22:43 WWIVnet 4001->4000
- 0R 34 06/06 06:35 WWIVnet 20001->4001
- 0R 34 06/05 02:07 WWIVnet 20397->20001
- 0R 34 06/05 02:10 WWIVnet ->20397
-
- ┌┬─── ── ─ ─ ── ───────────────────────────────────────────────────┬─ ∙∙
- ││ Alternative Worlds Presents │
- └┼─────────────────────────────────────────────────────────────────────┐
- ││ Mod Name » FMD-03a.MOD │∙
- ││ Difficulty » █▒▒▒▒▒▒▒▒▒▒ (1/10) │:
- ││ WWIV Version » 4.24 ││
- ││ Date Affected » 06/01/95 ││
- :│ Files Affected » MISCCMD.C / NEWUSER.C ││
- ∙│ Description » New BBS Listing System For WWIV ││
- └─────────────────────────────────────────────────────────────────────┼┐
- │ A French Mod Division Release - (C) 1995 FMD Software ││
- ∙∙ ─┴─────────────────────────────────────────────────── ── ─ ─ ── ───└┘
-
-
- ┌┬══════════════════┐
- ││ Long Description ││
- └══════════════════┴┘
-
- This modification will change your BBS list system. Users will be prompted
- to enter more informations about their BBS (Hard Disk Space, Group Affiliation,
- New User Password). This modification will also create two bbslists, one in
- ANSI, the other in Ascii. There is a new "download" options that will send to
- the user the Ascii version of the BBSlist.
-
- Revision A:
-
- - Updated for WWIV v4.24
- - Filename now defined in WWIV.INI
-
- ┌┬═══════┐
- ││ Tests ││
- └═══════┴┘
-
- This modification has been tested on a virgin WWIV v4.24 source using
- Borland C++ v4.5
-
- ──────────────────────────────────────────────────────────────────────────────
- Legend
- ╔═══╤══════════════════┐
- │ + │ Add This Line │
- │ - │ Delete This Line │
- │ * │ Modify This Line │
- │ = │ Existing Line │
- └═══╧══════════════════╝
- ───[Step 1]────────────────────────────────────────────────────────────────────
-
- Load MISCCMD.C and remplace void bbslist
-
- void bbslist(void)
- {
- int i, f, done, ok;
- char s[150], s1[150], ch, ch1, *ss, *ss1, s2[150], s3[81], s4[150];
- char s5[150], s6[150], phone[13], name[31], speed[6], type[11], meg[11];
- char nup[11], group[11], comment[41], fname[13];
- long l, l1;
-
- done= 0;
- do
- {
- helpl= 0;
- nl();
- prt(2, "BBS list: R:ead, A:dd, N:et, D:ownload, Q:uit :");
- ch= onek("QRNAD");
- switch (ch)
- {
- case 'Q': done= 1; break;
- case 'R':
- existprint("BBSLIST");
- if (okansi()) {
- npr("\x1b[%dA", 1);
- npr("7%s╧════════════╧══════════════╧════════", charstr(40, '═'));
- } else
- npr("7%s+------------+--------------+--------\r\n", charstr(40, '-'));
- nl();
- break;
- case 'N': print_net_listing(0); break;
- case 'A':
- helpl= 25;
- if ((actsl<=10))
- {
- nl();
- nl();
- pl(get_string(490));
- nl();
- break;
- }
- if (thisuser.restrict & restrict_automessage)
- {
- nl();
- nl();
- pl(get_string(491));
- nl();
- break;
- }
- nl();
- pl(get_string(492));
- pl(get_string(493));
- outstr(":");
- mpl(12);
- input(phone, 12);
- if ((phone[3]!='-') || (phone[7]!='-'))
- phone[0]= 0;
- for (i= 0; i<12; i++)
- {
- if (strchr("0123456789-", phone[i])==0)
- phone[0]= 0;
- }
- if (strlen(phone)==12)
- {
- ok= 1;
- sprintf(s1, "%sBBSLIST.MSG", syscfg.gfilesdir);
- f= sh_open1(s1, O_RDONLY | O_BINARY);
- if (f>0)
- {
- sh_lseek(f, 0L, SEEK_SET);
- l= filelength(f);
- if ((ss= malloca(l+500L))==NULL)
- {
- sh_close(f);
- return;
- }
- sh_read(f, ss, (int)l);
- l1= 0L;
- while ((l1<l) && (ok))
- {
- i= 0;
- do
- {
- ch= ss[l1++];
- s1[i]= ch;
- if (ch==13)
- s1[i]= 0;
- ++i;
- } while ((ch!=10) && (i<120) && (l1<l));
- if (strstr(s1, phone)!=NULL)
- ok= 0;
- if (strncmp(s1, phone, 12)==0)
- ok= 0;
- }
- farfree(ss);
- sh_close(f);
- }
- if (ok)
- {
- pl(get_string(494));
- nl();
- nl();
- pl("Enter the BBS name:");
- outstr(":");
- mpl(40);
- inputl(name, 40);
- nl();
- pl(get_string(496));
- pl(get_string(497));
- outstr(":");
- mpl(4);
- input(speed, 4);
- nl();
- pl(get_string(498));
- outstr(":");
- mpl(9);
- input(type, 9);
- nl();
- pl("What size is the hard disk of this BBS (<C/R>=Unknown):");
- outstr(":");
- mpl(10);
- inputl(meg, 10);
- if (meg[0]==0)
- strcpy(meg, "Unknown");
- nl();
- pl("What is the new user password (<C/R>=None):");
- outstr(":");
- mpl(10);
- inputl(nup, 10);
- if (nup[0]==0)
- strcpy(nup, "None");
- nl();
- pl("Enter group affilitions (<C/R>=None):");
- outstr(":");
- mpl(8);
- inputl(group, 8);
- if (group[0]==0)
- strcpy(group, "None");
- nl();
- pl("Enter a comment about this BBS:");
- outstr(":");
- mpl(40);
- inputl(comment, 40);
- nl();
- sprintf(s3, "7%s╪════════════╪══════════════╪════════\r\n", charstr(40, '═'));
- sprintf(s4, "%s+------------+--------------+--------\r\n", charstr(40, '-'));
- sprintf(s, "1%-40s7│9 %-10s 7│ 9%-12s 7│ 9%-5s\r\n", name, type, phone, speed);
- sprintf(s5, "%-40s| %-10s | %-12s | %-5s\r\n", name, type, phone, speed);
- sprintf(s2, "1%-40s7│9 %-10s 7│ 9%-12s 7│ 9%-8.8s\r\n", comment, meg, nup, group);
- sprintf(s6, "%-40s| %-10s | %-12s | %-8.8s\r\n", comment, meg, nup, group);
- nl();
- nl();
- npr(s);
- npr(s2);
- nl();
- prt(9, get_string(499));
- if (ny())
- {
- sprintf(s1, "%sBBSLIST.ANS", syscfg.gfilesdir);
- f= sh_open(s1, O_RDWR | O_CREAT | O_BINARY, S_IREAD | S_IWRITE);
- if (filelength(f))
- {
- sh_lseek(f, -1L, SEEK_END);
- sh_read(f, ((void *)&ch1), 1);
- if (ch1==26)
- sh_lseek(f, -1L, SEEK_END);
- }
- sh_write(f, (void *)s3, strlen(s3));
- sh_write(f, (void *)s, strlen(s));
- sh_write(f, (void *)s2, strlen(s2));
- sh_close(f);
- sprintf(s1, "%sBBSLIST.MSG", syscfg.gfilesdir);
- ch1=0;
- f= sh_open(s1, O_RDWR | O_CREAT | O_BINARY, S_IREAD | S_IWRITE);
- if (filelength(f))
- {
- sh_lseek(f, -1L, SEEK_END);
- sh_read(f, ((void *)&ch1), 1);
- if (ch1==26)
- sh_lseek(f, -1L, SEEK_END);
- }
- sh_write(f, (void *)s4, strlen(s4));
- sh_write(f, (void *)s5, strlen(s5));
- sh_write(f, (void *)s6, strlen(s6));
- sh_close(f);
- nl();
- pl(get_string(500));
- }
- } else {
- pl(get_string(501));
- nl();
- nl();
- }
- } else {
- nl();
- pl(get_string(502));
- nl();
- }
- break;
- case 'D':
- strcpy(fname, "WWIV-BBS");
- if (ini_init("WWIV.INI", "FMD", NULL)==0)
- {
- if ((ss1=ini_get("BBSLIST_NAME", -1, NULL))!=NULL)
- if (ss1)
- strcpy(fname, ss1);
- ini_done();
- }
- sprintf(s, "%s\\BBSLIST.MSG", syscfg.gfilesdir);
- sprintf(s1, "%s\\%s.LST", syscfgovr.tempdir, fname);
- copy_file(s, s1);
- sprintf(s, "%s.LST", fname);
- add_arc(fname, s, 0);
- download_temp_arc(fname, 0);
- sprintf(s, "%s.*", fname);
- remove_from_temp(s, syscfgovr.tempdir, 0);
- break;
- }
- } while ((!done) && (!hangup));
- }
-
- ───[Step 2]────────────────────────────────────────────────────────────────────
-
- Unzip the file BBSLIST.ZIP and place the files in your GFILES directory.
-
- ───[Step 3]────────────────────────────────────────────────────────────────────
-
- If you're using Simple ASV, add the following lines in NEWUSER.C:
-
- = existprint("ASV");
- = nl();
- = pausescr();
- + prt(5, "Do you wish to enter your BBS in our BBSlist? ");
- + if (yn())
- + bbslist();
- = }
- = }
-
- ───[Step 4]────────────────────────────────────────────────────────────────────
-
- Load WWIV.INI and if you don't have a [FMD] section, create it, and add the
- following line in it:
-
- [FMD]
- ; BBS List File Name When Downloaded (No Extention)
- BBSLIST_NAME = WWIV-BBS
-
- ───[Step 5]────────────────────────────────────────────────────────────────────
-
- Recompile and enjoy, I actually did a mod that not require to compile entire
- BBS.
-
- French Proverb: L'argent n'a pas d'odeur
-
- For comments, bug report and suggestion, e-mail at the following address:
-
- Nicolas LeBlanc 2@20302.WWIVnet (aka Spotnick)
- -> spotnick@gamemaster.qc.ca
- Martin Bourdages 242@20306 / 3@20302.WWIVnet (aka Dark Shadow)
- -> martin.bourdages@radio.magicnet.com
-
- => French Mod Division Support Sub <=
- SubType: FMD
- Host: @20302 (WWIVnet)
- Scan sublist for other networks
-
- Read PRODUCTS.FMD for the full list of our support systems.
-
- ───[EOF]──────────────────────────────────────────────────────────────────────
-
- section 1 of 1 of file bbslist.zip < uuencode 5.32 by R.E.M. >
-
- begin 644 bbslist.zip
- M4$L#!!0``H`(````P1Z//P2-Z0```'L"```+`!L`0D)33$E35"Y!3E,'`!<`
- M`.420VA-X50.M)>A8!.)#E\G9N>X2F.UD<].@T`0AQ/W1L([S`O0%$07KI54
- M301)UI8SPBB;R"[9A?)@/H<QOI'0DOY)0UL/SNWW';[);^:*T"1Y7,+*G3@N
- MS&8,GKBNN7@W#=,@].O"^1D->[$3VOV&*"T1S@RAG\0')M_J-E6X`4#\N)`"
- M(6K*5U0#8A5BWJOO9%FBJ.%9K'N<43\$P*HTVZDC;&&A.VW<Y@.Z5[*I_G*&
- M[]&P%__ILB^8%4):\4>C3_;?U%\_?0NZKC>V:]UZU+J>VOZ`'&_B]>:Y0I$5
- M$,H<`K[BFDL!8<H%,%[CD=EVIG!@COJ7':)Y&)C&+U!+`P04``*`"````,$>
- MH9NI\,X```!5`@``"P```$)"4TQ)4U0N35-'K9%-;X)`$(;OF^Q_F+M9(TA;
- M>D6"FA1*0BOG%4;91&;)`G+QQQ<TC>W!CP/O[<EDGLSDA=M)T_4&CL[4=L#S
- M$OA0=:-HSQEGXLE,;L(?Y&RP1[)$>)`3)'K7=-+@&>)"$T+4EELTPZQ"S#E;
- MZ+)$:N"3SE??D:W\?D=F%UF$'7S7O2CN\AZ71K?5Z(^.+OS"K"`MXD-;W_WV
- M="GS%UXL1[RZ;V(^L]Y[M-VIRUE@D+("0IV#KXZJ5IH@E(H@40W^<UGV[`K1
- M4,(5@]#G[`=02P$"%``4``(`"````,$>CS\$C>D```![`@``"P`N```````%
- M`"!3$J$`````0D)33$E35"Y!3E,'`"H`90-EL$4X'[ML#GLYHM/"]26`'W!M
- M>^2L!4#(L'']M-"FAU5U6C^U'CI44$L!`A0`%``"``@```#!'J&;J?#.````
- M50(```L`````````!0`@37MG+0$``$)"4TQ)4U0N35-'4$L%!@`````"``(`
- *H````"0"`````)]X
- `
- end
- sum -r/size 20334/1038 section (from "begin" to "end")
- sum -r/size 2422/730 entire input file
-