home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / MISSING / REGISTRY.ZIP / REGISTRY.H < prev    next >
Text File  |  1992-02-13  |  5KB  |  72 lines

  1. /*==============================================================================
  2. +                           Registry Version 1.3                               +
  3. +                             by Jon Dietrich                                  +
  4. +                       Dietrich Software Enterprises                          +
  5. +                                                                              +
  6. +                           Modification for WWIV                              +
  7. +                                                                              +
  8. +                             - HEADER FILE -                                  +
  9. +                                                                              +
  10. ==============================================================================*/
  11.  
  12. #define REGISTRY_LOG_ON_STUFF  \
  13.  if(!registry_files_exist()) {                                             \
  14.   ansic(7);                                                                \
  15.   pl("The registry data files do not exist...");                           \
  16.   prt(7,"Do you want to create them now? ");                               \
  17.   if(yn())                                                                 \
  18.     registry();                                                            \
  19.   else {                                                                   \
  20.    nl();                                                                   \
  21.    ansic(3);                                                               \
  22.    pl("You can access the registry by pressing '$' at the main menu.");    \
  23.   }                                                                        \
  24.  }                                                                         \
  25.  if(registry_files_exist() && find_offset(usernum) ==0L ) {                \
  26.   nl();                                                                    \
  27.   ansic(7);                                                                \
  28.   pl("You haven't filled out a registry yet...");                          \
  29.   prt(7,"Do you want to fill it out now? ");                               \
  30.   ansic(1);                                                                \
  31.   if(yn())                                                                 \
  32.     registry();                                                            \
  33.   else {                                                                   \
  34.     nl();                                                                  \
  35.     ansic(3);                                                              \
  36.     pl("You can access the registry by pressing '$' at the main menu.");   \
  37.     }                                                                      \
  38.   }
  39.  
  40. #define REGISTRY_FROM_MESSAGE_BASE \
  41.    grab_user_name(&(msgs[msgnum].msg),subboards[curlsub].filename);        \
  42.    ss=syscfg.sl[thisuser.sl];                                              \
  43.    if( (lcs()) || (ss.ability & ability_read_post_anony) ||                \
  44.        (msgs[msgnum].anony==0) )                                           \
  45.     if(msgs[msgnum].ownersys==0)                                           \
  46.      registry_from_message_base(msgs[msgnum].owneruser);                   \
  47.     else {                                                                 \
  48.      nl();                                                                 \
  49.      pl("Can't view registry of user on another system...");               \
  50.      nl();                                                                 \
  51.     }                                                                      \
  52.    else {                                                                  \
  53.     nl();                                                                  \
  54.     pl("Can't view registry of anonymous user...");                        \
  55.     nl();                                                                  \
  56.    }                                                                       \
  57.   break;
  58.  
  59. #define REGISTRY  \
  60.   if(thisuser.sl>=getminsl2() )                                            \
  61.    registry();                                                             \
  62.   else {                                                                   \
  63.    nl();                                                                   \
  64.    pl("Your Security Level is not high enough to access the registry.");   \
  65.    nl();                                                                   \
  66.   }                                                                        \
  67.  break;
  68.  
  69. /*----------------------------------------------------------------------------
  70. +                     REGISTRY OF USERS Ver 1.3                              +
  71. +                         February 13, 1992                                  +
  72. ----------------------------------------------------------------------------*/