Chapter 6: Central User Management System 187 $ERRORS[ US ][ UNAUTHORIZED_ACCESS ] (Cheap web hosting)

Chapter 6: Central User Management System 187 $ERRORS[ US ][ UNAUTHORIZED_ACCESS ] = You do not have privilege to access this application. ; $ERRORS[ US ][ INVALID_REQUEST ] = Invalid request. ; $ERRORS[ US ][ USERNAME_MISSING ] = Please enter email as the username. ; $ERRORS[ US ][ PASSWORD1_MISSING ] = Please enter password. ; $ERRORS[ US ][ PASSWORD2_MISSING ] = Please enter confirmation password. ; $ERRORS[ US ][ USER_TYPE_MISSING ] = Please select user type. ; $ERRORS[ US ][ PASSWORD_MISMATCH ] = Passwords do not match. ; $ERRORS[ US ][ PASSWORD_MISMATCH ] = Password and confirmation password do not match. ; $ERRORS[ US ][ INVALID_PASSWORD ] = This password is too short or invalid . ; $ERRORS[ US ][ USER_DELETE_NOT_ALLOWED ] = This (root) user cannot be deleted. ; $ERRORS[ US ][ USER_NOT_FOUND ] = User not found. ; $ERRORS[ US ][ INACTIVE_NOT_OK ] = This (root) user cannot be deactivated. ; $ERRORS[ US ][ OPERATION_NOT_ALLOWED ] = You cannot reduce privilege of a root user. ; ?> Testing the user management application After you ve created class.User.php, user_mngr.php, user_mngr.conf, user_mngr.messages, and user_mngr.errors files in the appropriate directories as configured in user_mngr.conf, you can test the application. In this section, I will assume that the user manager application is installed in the following directory structure and accessible by http://php.evoknow.com/ /user_mngr/apps/ user_mngr.php. (%DOCUMENT_ROOT) +—user_mngr | +—apps | +—templates

Leave a Reply