UMUI.C (user management instance)
The code in the file corresponds to the page in the Webs-2-5\wwwdemo\um,
(Addgroup.asp, addlimit.asp, adduser.asp, delgroup.asp, dellimit.asp, deluser.asp, dspuser.asp, loadcfg.asp, Savecfg.asp, um.htm
is a form, ASP function called by these pages, which helps to understand user management.
void Formdefineusermgmt (void)
Function: Define the form that the page will use, the ASP function Description:
static void Formadduser (webs_t wp, char_t *path, char_t *query)
Function: Add a user description:
static void Formdeleteuser (webs_t wp, char_t *path, char_t *query)
Function: Delete a user description:
static void Formdisplayuser (webs_t wp, char_t *path, char_t *query)
Function: Displays the user's information description:
static int aspgenerateuserlist (int eid, webs_t wp, int argc, char_t **argv)
Features: Lists the user instructions that are used :
static void Formaddgroup (webs_t wp, char_t *path, char_t *query)
Function: Add a group description:
static void Formdeletegroup (webs_t wp, char_t *path, char_t *query)
Function: Delete a group description: When the group is in use, it cannot be deleted, so the group can only be deleted after all users in this group have been deleted.
static int aspgenerategrouplist (int eid, webs_t wp, int argc, char_t **argv)
Features: Lists all the group descriptions:
static void Formaddaccesslimit (webs_t wp, char_t *path, char_t *query)
Function: Add the corresponding access limit path description for the group :
static void Formdeleteaccesslimit (webs_t wp, char_t *path, char_t *query)
function: Delete the corresponding access limit path description for the group :
static int aspgenerateaccesslimitlist (int eid, webs_t wp, int argc, char_t **argv)
Features: Displays a list of all access Restrictions Description:
static int aspgenerateaccessmethodlist (int eid, webs_t wp, int argc, char_t **argv)
Features: Display a list of access methods Description: Full access, BASIC access, DIGEST access, NO access
static int aspgenerateprivilegelist (int eid, webs_t wp, int argc, char_t **argv)
Features: Display a list of access rights Description: READ, EXECUTE, administrate
static void Formsaveusermanagement (webs_t wp, char_t *path, char_t *query)
Function: Save configuration to Umconfig.txt Description:
static void Formloadusermanagement (webs_t wp, char_t *path, char_t *query)
Function: Restore the configuration data in the Umconfig.txt file to the database in the description:
static void Websmsgstart (webs_t wp)
Function: Output the description to the browser :
static void Websmsgend (webs_t wp)
Function: Output the description to the browser :