Roxen.git / server / modules / examples / userdb_ex.pike

version» Context lines:

Roxen.git/server/modules/examples/userdb_ex.pike:3:      // Some defines for the translation system   //   //<locale-token project="mod_auth">LOCALE</locale-token>   #define LOCALE(X,Y) _DEF_LOCALE("mod_auth",X,Y)   // end of the locale related stuff            inherit UserDB; + inherit "module";   //! A user database module should inherit @[UserDB]. - //! However, you can inherit module and implement all the functions - //! that have stub defenitions in the UserDB module on your own. +    //!   //! Which those are will be indicated in the documentation for those   //! functions below. Also, please note that a userdb module has to   //! have the thread_safe flag set to 1.    - inherit "module"; +       constant name = "example";   //! The name of the userdatbase, used to identify it from modules or   //! htaccess files or similar that wants to authenticate against a   //! specific database instead of against any of them.   //!   //! The name should be reasonably short and should be unique, however,   //! nothing will break if more than one database has the same name, it   //! will be impossible to know which of them will be used when   //! authentication is done, however..    - constant cvs_version="$Id: userdb_ex.pike,v 1.1 2001/10/09 15:01:44 per Exp $"; + constant cvs_version="$Id: userdb_ex.pike,v 1.2 2001/10/09 15:03:43 per Exp $";      LocaleString module_name = LOCALE(1,"RefDoc for MODULE_USERDB");      LocaleString module_doc =    LOCALE(2,"This module does nothing special, it implements a simple "    "user database with the passwords and usernames in a string list, "    "but its inlined documentation gets imported into the Roxen "    "programmer manual.\n"    "You definetely don't want to use this module in your virtual "    "servers, since anybody with access to your admin interface or "