home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 12 / CD_ASCQ_12_0294.iso / vrac / 5mods_3.zip / DREAM28.MOD next >
Text File  |  1994-01-20  |  5KB  |  138 lines

  1. ┌────────────────────────────────────────────────────────────────────────────┐
  2. │ Mod Name: Dream28.Mod             Date:  January 9, 1994                   │
  3. │ Difficulty:  █▒▒▒▒▒▒▒▒▒▒          Mod Authors:  Unca Scrooge               │
  4. │ WWIV Version:  4.23                             1@8398 WWIVnet             │
  5. │ Files Affected: LILO.C                          1@8398  ICEnet             │
  6. │ Description:  New and improved logon info!      1@8351  ImagiNet           │
  7. └────────────────────────────────────────────────────────────────────────────┘
  8.  
  9.  Long Desc  :  There was a request for a new logon info mod on modnet
  10.                a day or two ago, so here's one! :)  Gives more info than
  11.                the stock version did, and boxes it in nice and neat.
  12.                NOTE:  If you add/delete any of the ^P colors, be SURE to
  13.                       make up for it in the spacing (ie: %-30s...), it can
  14.                       get tricky!
  15.  
  16.  Disclaimer :  Whatever.
  17.  
  18.  Da Mod
  19.  
  20.  Step 1     :  Open up LILO.C and search for void logon(... and edit this line
  21.  
  22.    char s[255],s1[181],s2[81],s3[81],s4[81],s5[101],s6[81],*ss;
  23.                         // add s3 s4 s5 s6
  24.  
  25.  Now, further down in logon(), replace the ENTIRE code from
  26.  
  27.    if (live_user) {
  28.     nl();
  29.  
  30.     outstr(get_string(237));
  31.     pl(nam(&thisuser,usernum));
  32.     outstr(get_string(363)); npr("%d\r\n", (int) ((nsl()+30)/60.0));
  33.  
  34.                 to
  35.  
  36.     npr("%s%d\r\n",get_string(1171),instance);
  37.  
  38.  
  39. with this following chunk...
  40.  
  41.  
  42.   if (live_user) {
  43.    npr("╔%s╗\r\n",charstr(77,'─'));
  44.    npr("│Name/Alias .... %-30s Security Level .. %-12d│\r\n",
  45.         nam(&thisuser,usernum),thisuser.sl);
  46.    sprintf(s3,"%d Minutes",(int) ((nsl()+30)/60.0));
  47.    npr("│Time Allowed .. %-32s Transfer Level .. %-12d│\r\n",
  48.         s3,thisuser.dsl);
  49.    npr("│Mail Waiting .. %-30d Times on Today .. %-12d│\r\n",
  50.         thisuser.waiting,thisuser.ontoday);
  51.     if (!sysop2())
  52.       strcpy(s3,"Not Available");
  53.     else
  54.       strcpy(s3,"Available");
  55.    npr("│Sysop is  ..... %-30s Illegal Logons .. %-12d│\r\n",
  56.         s3,thisuser.illegal);
  57.  
  58.     read_status();
  59.  
  60. /****************************************************************************/
  61. /*
  62.  * Do NOT remove or modify this part of the code.  If the registration number
  63.  * (or an indicator that it is unregistered) is not printed out, it will
  64.  * be plainly obvious that this is a 'pirated' version of the source code.
  65.  */
  66.     if (syscfg.wwiv_reg_number)
  67.       sprintf(s," (Reg #%ld)",syscfg.wwiv_reg_number);
  68.     else
  69.       strcpy(s," (Unregistered)");
  70.  
  71.    strcpy(s3,wwiv_version);
  72.    strcat(s3,s);
  73.    npr("│System is ..... %-36s Post Ratio ...... %-12.3f│\r\n",s3,post_ratio())
  74. ;
  75.  
  76. /****************************************************************************/
  77.  
  78.    npr("│Last Modded ... %-30s File Ratio ...... %-12.3f│\r\n",
  79.         wwiv_date,ratio());
  80.    npr("│Calls Today ... %-30d Files you've UL . %-12d│\r\n",
  81.         status.callstoday,thisuser.uploaded);
  82.    npr("│Posts Today ... %-30d Files you've DL . %-12d│\r\n",
  83.         status.msgposttoday,thisuser.downloaded);
  84.    npr("│Uploads Today . %-30d Min. in Bank .... %-12d│\r\n",
  85.         status.uptoday,thisuser.banktime);
  86.    sprintf(s4,"%d Min.",status.activetoday);
  87.    npr("│Number Users .. %-30d Active Today .... %-18s│\r\n",
  88.         status.users,s4);
  89.     if (multitasker) {
  90.       switch (multitasker) {
  91.         case 1 :
  92.           dv=get_dv_version();
  93.           sprintf(s5,"DESQView %d.%02d",dv/256,dv%256);
  94.         break;
  95.         case 2 :
  96.           win=get_win_version();
  97.           sprintf(s5,"Windows %d.%02d",win%256,win/256);
  98.         break;
  99.         case 3 :
  100.           win=get_win_version();
  101.           dv=get_dv_version();
  102.           sprintf(s5,"Win %d.%02d and DV %d.%02d",
  103.                       win%256,win/256,dv/256,dv%256);
  104.         break;
  105.         case 4 :
  106.           sprintf(s5,"OS/2 %d.%2.2d",_osmajor/10,_osminor);
  107.         break;
  108.         default:
  109.           strcat(s5,"Unknown");
  110.       }
  111.     } else
  112.        strcat(s5,"None");
  113.    npr("│Multitasker ... %-30s Current Node .... %-12d│\r\n",
  114.         s5,instance);
  115.     for (i=0; i<net_num_max; i++) {
  116.       if (net_networks[i].sysnum) {
  117.         sprintf(s,"│%s %s",net_networks[i].name,get_string(370));
  118.         strcat(s,charstr(16-strlen(stripcolors(s)),'.'));
  119.         sprintf(s1,"%s @%u",s,net_networks[i].sysnum);
  120.         if (i)
  121.           npr("%-88s│\r\n",s1);
  122.         else {
  123.           sprintf(s6," (net%u)",status.net_version);
  124.           strcat(s1,s6);
  125.           npr("%-94s│\r\n",s1);
  126.         }
  127.       }
  128.     }
  129.    npr("╚%s╝\r\n",charstr(77,'─'));
  130.  
  131.  Save LILO.C and recompile...
  132.  
  133.  
  134.                   Enjoy and email me if ya have a problem!
  135.  
  136.  
  137.  
  138.