Solutions for php permission settings and management
Source: Internet
Author: User
The idea of setting and managing php permissions is divided into administrators and common users. Users can modify their personal information only once. to modify the personal information only once, they must have the administrator's authorization, the user can perform the second information modification operation ....., the initial value of the added field is 0. after the user modifies the information, the field is automatically updated to 1. the administrator will evaluate the php permission setting and management ideas.
Divided into administrators and common users. Users can modify personal information only once. to modify personal information, they must be authorized by the administrator. they just want to get a button for the administrator to perform the second modification operation, could you give me some advice .....
------ Solution --------------------
The initial value of the added field is 0. after the user modifies the information, the field is automatically updated to 1, and the administrator authorizes the field to be reset to 0.
Each time you modify the information, check this field. if the value is 0, you can modify it. if the value is 1, you need to authorize
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