GoAhead2.5 Source Code Analysis 3-User Management instance (UMUI.C)

Source: Internet
Author: User

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 :

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.