home *** CD-ROM | disk | FTP | other *** search
/ The Arcade BBS / arcadebbs.zip / arcadebbs / bbstools / MODS / DRMSTP10.ZIP / DRMSTRIP.MOD < prev    next >
Encoding:
Text File  |  1994-02-16  |  5.1 KB  |  107 lines

  1. ╔───────────────────────────────────────────────────────────────────────────╗
  2. │ Mod Name:  Drmstrip.Mod                 Date : February 15, 1994          │
  3. │ Difficulty: █▒▒▒▒▒▒▒▒▒                  Author: Unca Scrooge/Top Cat      │
  4. │ WWIV Version: 4.23                              1@8398 /1 @8389 WWIVnet   │
  5. │ Files Affected: BBSOVL1.C                       1@8398 / 1@0    ICEnet    │
  6. │ Description:  Allows the use of DreamSTRIP      1@8351 / 1@1  ImagiNet    │
  7. │     while extracting posts to remove the routing info and tags.           │
  8. ╠───────────────────────────────────────────────────────────────────────────╣
  9. │  This mod is copyright 1993-94 by Andy Stewart, aka Unca Scrooge, and is  │
  10. │  distributed as freeware.  Permission is granted to distribute and post   │
  11. │   this mod on BBS systems and online services, provided no alterations    │
  12. │   are made (removal of message headers/taglines allowed).  This mod may   │
  13. │  contain some parts of WWIV source code, which is copyright 1988-1994 by  │
  14. │   Wayne Bell and licensed only to registered users of WWIV.  Use of WWIV  │
  15. │   source without registration constitutes a license violation and could   │
  16. │                lead to legal prosecution and certain doom.                │
  17. │                                                                           │
  18. │   Shareware distributors and CDRom publishers may not distribute this mod │
  19. │      without express written permission of the Author or WWIV Software    │
  20. │                                 Services.                                 │
  21. ╠───────────────────────────────────────────────────────────────────────────╣
  22. │                      ─ ── ──══[ Disclaimer ]══── ── ─                     │
  23. │ Though this mod has been tested extensivly, there are no guaruntees.  You │
  24. │   should have a current backup of your source should something go wrong   │
  25. │ while installing this mod.  The Author(s) and/or DreamWARE Communications │
  26. │  and DreamWARE Modding services CANNOT and WILL NOT be held  responsible  │
  27. │          for any ill effects resulting from anyone using this mod.        │
  28. │                                                                           │
  29. │     . ─ ── ───═══[ ALWAYS BACK UP YOUR SOURCE-CODE!!!! ]═══─── ── ─ .     │
  30. ╠─────────────────────────╦─────────────────────────────────────────────────╝
  31. │─ ─═[ Modding codes ]═─ ─│
  32. │  ─────────────────────  │
  33. │ =    Existing Code      │
  34. │ +    Add This Code      │
  35. │ -    Delete This Code   │
  36. │ %    Modify This Code   │
  37. ╚─────────────────────────╝
  38.  
  39.  Long Desc :  Welp, I've read a LOT of people complaining about the
  40.               net_routing info in extracted posts (I've griped
  41.               myself at times.. <g>) wasting space and such... sooo
  42.               I wrote DRMSTRIP.EXE to get rid of all lines that begin
  43.               with ^PD (Diamond code)...  so it'll strip out the
  44.               net_routing info, and the taglines (IF the owner of the
  45.               tagline starts it with ^PD)...  I'll be expanding on this
  46.               a bit to get rid of the heart_codes, etc.. a little later,
  47.               but wanted to get this out now...   Platypus Programming
  48.               wrote WWSTRIP.COM which does the same thing and is GREAT,
  49.               I was just having some problems trying to run it inside
  50.               the bbs with all the parameter strings, so I wrote DRMSTRIP
  51.               with only one parameter string.  If you use WWSTRIP.COM,
  52.               register it!  It's only $2.  If you use DRMSTRIP, then
  53.               thanx and it's free to use.
  54.  
  55.               Also, thanx go out to Top Cat (1@8389 WWIVnet)...  he
  56.               originally wrote this mod to work for WWSTRIP.COM
  57.               (TC01A.MOD I think), I just changed it to work with
  58.               DRMSTRIP.  Thanx TC! :)
  59.  
  60.  NOTE!!     : DRMSTRIP.EXE MUST be in your path for this mod to work!
  61.  
  62.  Step 1     : Back up BBSOVL1.C (the only file affected)
  63.  
  64.  Step 2     : Open up BBSOVL1.C and make the following changes....
  65.  
  66. in  void extract_out(char *b, long len, char *title)  do the following
  67.  
  68. %  char s1[81],s2[81],s3[81],s4[101],ch=26,ch1,ch2;  // Add s4;
  69.  
  70. further down
  71.  
  72. =          sh_write(i,title,strlen(title));
  73. =          sh_write(i,"\r\n",2);
  74. =          sh_write(i,(void *)b,len);
  75. =          sh_write(i,&ch,1);
  76. =          sh_close(i);
  77. +          sprintf(s4,"DRMSTRIP.EXE %s",s3);
  78. +          do_remote(s4,0);
  79. +          topscreen();
  80. =          outstr(get_string(677));
  81. =          pl(s3);
  82.  
  83. further down in  void extract_mod(char *b, long len)  do the following
  84.  
  85. %  char s1[81],s2[81],s4[81],s5[81],s6[101],ch=26,ch1,*ptr,*ss1;  // add s6
  86.  
  87. further down
  88.  
  89. =    i=sh_open(s4,O_RDWR | O_BINARY | O_CREAT, S_IREAD | S_IWRITE);
  90. =    sh_lseek(i,0L,SEEK_END);
  91. =    sh_write(i,(void *)b,len);
  92. =    sh_write(i,&ch,1);
  93. =    sh_close(i);
  94. =    npr("%s%s\r\n",get_string(1202),s4);
  95. +    sprintf(s6,"DRMSTRIP.EXE %s",s4);
  96. +    do_remote(s6,0);
  97. +    topscreen();
  98. =    compress_file(s2,s1);
  99. =    nl();nl();
  100. =    prt(2,get_string(1203));
  101.  
  102.  
  103.                        Save BBSOVL1.C and recompile...
  104.  
  105.  
  106.  
  107.               Email me if ya need help, have suggestions, etc...