Three pages are included. cogfig pages are contained pages, denglu pages are responsible for submission, session assignment, and so on. denglu_link pages are responsible for permission judgment demonstration. In this example, the test database and user_list table already exist, the table contains... three pages are included. cogfig pages are contained pages, denglu pages are responsible for submission, session assignment, and so on. denglu_link pages are responsible for permission judgment demonstration. In this example, the test database and user_list table already exist, the table contains four fields: uid, m_id, username, and password. the password field has been encrypted by md5 in the form of md5 ("user password ". ALL_PS), that is, the password entered by the user plus a constant for judgment.
First, let's look at the configuration file. the code is as follows:
On the PHP logon page, the code is as follows:
denglu_link
PHP permission judgment page, the code is as follows:
Article address:
Reprint at will ^ please include the address of this article!