Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- dBsee 4.6 - The Library - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

   The first operation for activating password protection, is setting the
   Password management parameter in the Projects - Subprojects -
   Properties environment to Password.

   The next step is optional, but allows additional protection to be added.
   It consists in editing the injection points, and entering a set of
   instructions for verifying the user's security level.

Example:

     dfLogin() // Call the login procedure
     
     // Verify the user's security level
     IF dfUserLev() < 3
        dbMsgErr( "User " +dfUserName() + "//" +;
                  "is not authorised"   )
        // I quit, because the user has
        // no sufficient rights
        QUIT
     ENDIF
     
     // Continue the process
     // Call the change procedure
     dfCngPwd()

   As can be seen in the previous example, for verifying the user's security
   level, the dfUserLev() function must be used, which returns a number
   from 1 to 99.
    The dfUserName() function returns the user's name. For both
   functions, additional information can be found in the Library Norton
   Guides.

   If manual modifications are made entirely inside dBsee, all sources
   touched must be regenerated, by using for instance the Ctrl-F10 key,
   and, by using the Generator button in the main menu, generating the
   Configuration files GenCfg option for the dBLogin.dbf file.

   At this point, by recompiling and linking, the application will ask,
   before opening the main menu, to enter the password. Enter for example
   ISA001.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson